Module: TestStageHelpers
- Defined in:
- lib/gamebox/spec/helper.rb
Instance Attribute Summary collapse
-
#actors ⇒ Object
Returns the value of attribute actors.
Instance Method Summary collapse
Instance Attribute Details
#actors ⇒ Object
Returns the value of attribute actors.
245 246 247 |
# File 'lib/gamebox/spec/helper.rb', line 245 def actors @actors end |
Instance Method Details
#create_actor(actor_type, *args) ⇒ Object
250 251 252 253 254 255 256 257 |
# File 'lib/gamebox/spec/helper.rb', line 250 def create_actor(actor_type, *args) super.tap do |act| actors << act act.when :remove_me do actors.delete act end end end |
#update(time) ⇒ Object
259 260 261 262 |
# File 'lib/gamebox/spec/helper.rb', line 259 def update(time) @physics_manager.update time if @physics_manager super end |