Class: Zombie

Inherits:
Human
  • Object
show all
Includes:
ZombieInterface
Defined in:
lib/human.rb

Instance Attribute Summary

Attributes inherited from Human

#successful_step_count

Instance Method Summary collapse

Methods included from ZombieInterface

#actor_direction, #actor_type, #current_symbol

Methods inherited from Human

#actor_direction, #actor_state, #actor_type, #current_symbol, #dead?, #dying?, #finish_dying, #get_eaten, #initialize, new_using_test_unit_handler, #notify_failing_step, #notify_passing_step, #notify_world, #run

Constructor Details

This class inherits a constructor from Human

Instance Method Details

#eat(human) ⇒ Object



171
172
173
174
# File 'lib/human.rb', line 171

def eat(human)
  @status = :attacking #Even if the human's dead, look for leftovers
  human.get_eaten
end