class Entity::Pellet

Public Instance Methods

i_hit(others, velocity) click to toggle source
# File lib/game_2d/entity/pellet.rb, line 10
def i_hit(others, velocity)
  puts "#{self}: hit #{others.inspect}.  That's all for me."
  others.each {|other| other.harmed_by(self)}
  @space.doom(self)
end
image_filename() click to toggle source
# File lib/game_2d/entity/pellet.rb, line 16
def image_filename; "pellet.png" end
should_fall?() click to toggle source
# File lib/game_2d/entity/pellet.rb, line 7
def should_fall?; true end
sleep_now?() click to toggle source
# File lib/game_2d/entity/pellet.rb, line 8
def sleep_now?; false end