Class: TestingGame

Inherits:
Game show all
Defined in:
lib/gamebox/spec/helper.rb

Instance Method Summary collapse

Methods inherited from Game

#draw, #update

Instance Method Details

#actor(actor_type) ⇒ Object



330
331
332
# File 'lib/gamebox/spec/helper.rb', line 330

def actor(actor_type)
  stage_manager.current_stage.actors.detect { |act| act.actor_type == actor_type }
end

#actors(actor_type) ⇒ Object



326
327
328
# File 'lib/gamebox/spec/helper.rb', line 326

def actors(actor_type)
  stage_manager.current_stage.actors.select { |act| act.actor_type == actor_type }
end

#configureObject



314
315
316
# File 'lib/gamebox/spec/helper.rb', line 314

def configure
  stage_manager.change_stage_to stage_manager.default_stage
end

#current_stageObject



322
323
324
# File 'lib/gamebox/spec/helper.rb', line 322

def current_stage
  stage_manager.current_stage
end

#stage(&blk) ⇒ Object



318
319
320
# File 'lib/gamebox/spec/helper.rb', line 318

def stage(&blk)
  stage_manager.current_stage.instance_eval &blk
end