Class: Damage
- Inherits:
-
GameObject
- Object
- GameObject
- Damage
- Defined in:
- lib/entities/damage.rb
Constant Summary collapse
- MAX_INSTANCES =
300
- @@instances =
[]
Instance Attribute Summary
Attributes inherited from GameObject
#components, #location, #x, #y
Instance Method Summary collapse
- #effect? ⇒ Boolean
-
#initialize(object_pool, x, y) ⇒ Damage
constructor
A new instance of Damage.
Methods inherited from GameObject
#box, #collide, #draw, #mark_for_removal, #move, #on_collision, #removable?, #update
Constructor Details
#initialize(object_pool, x, y) ⇒ Damage
Returns a new instance of Damage.
5 6 7 8 9 |
# File 'lib/entities/damage.rb', line 5 def initialize(object_pool, x, y) super DamageGraphics.new(self) track(self) end |
Instance Method Details
#effect? ⇒ Boolean
11 12 13 |
# File 'lib/entities/damage.rb', line 11 def effect? true end |