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

- (Object) actor(actor_type)



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

- (Object) actors(actor_type)



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

- (Object) configure



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

def configure
  stage_manager.change_stage_to stage_manager.default_stage
end

- (Object) current_stage



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

def current_stage
  stage_manager.current_stage
end

- (Object) stage(&blk)



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

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