Class: SDC::Actionshape

Inherits:
Object
  • Object
show all
Defined in:
lib/core/ActionShape.rb

Direct Known Subclasses

Hitshape, Hurtshape

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(active: true, shape_index: nil, attributes: {}) ⇒ Actionshape

Returns a new instance of Actionshape.



11
12
13
14
15
# File 'lib/core/ActionShape.rb', line 11

def initialize(active: true, shape_index: nil, attributes: {})
	@active = active
	@shape_index = shape_index
	@attributes = attributes
end

Instance Attribute Details

#activeObject

Returns the value of attribute active.



9
10
11
# File 'lib/core/ActionShape.rb', line 9

def active
  @active
end

#attributesObject

Returns the value of attribute attributes.



9
10
11
# File 'lib/core/ActionShape.rb', line 9

def attributes
  @attributes
end

#shape_indexObject

Returns the value of attribute shape_index.



9
10
11
# File 'lib/core/ActionShape.rb', line 9

def shape_index
  @shape_index
end

Instance Method Details

#initialize_copy(other) ⇒ Object



17
18
19
20
# File 'lib/core/ActionShape.rb', line 17

def initialize_copy(other)
	super(other)
	@attributes = other.attributes.dup
end