Class: MockHuman
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Human
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Human
#actor_direction, #actor_state, #actor_type, #build_view_queue, #current_symbol, #dead?, #get_eaten, #initialize, new_using_test_unit_handler, #no_other_living_zombies_in?, #notify_finish_dying, #notify_finished, #notify_passing_step, #notify_start_dying, #notify_world, #run, #run_tests, #test_suite_size, #update_view
Methods inherited from Actor
#actor_type, #calculate_x, #calculate_y, #draw, #image, sprites, window, #window, window=, #x, #y, #z
Constructor Details
This class inherits a constructor from Human
Class Method Details
.new_using_results(results, world) ⇒ Object
180 181 182 183 184 |
# File 'lib/zombie-chaser/human.rb', line 180 def self.new_using_results(results, world) test_handler = MockTestHandler.new(results) mock_human = new(test_handler, world) mock_human end |
Instance Method Details
#sleep(duration) ⇒ Object
186 187 188 |
# File 'lib/zombie-chaser/human.rb', line 186 def sleep(duration) @world.sleep(duration) end |