Dungeon::LivingEntity
Inherits Dungeon::Entity < Reference < Object
Constants
DEATH_TIME = 1
DRAW_HIT_POINTS = Game::DEBUG
HIT_FLASH_INTERVAL = (HIT_FLASH_TIME / HIT_FLASHES) / 2
HIT_FLASH_TIME = 0.5
HIT_FLASH_TINT = LibRay::RED
HIT_FLASHES = 2
MAX_HIT_POINTS = 15
Constructors
new(loc : Location, width, height, collision_box : Box, hit_box : Box, tint_default : LibRay::Color = TINT_DEFAULT)
Instance methods
after_hit_flash
dead?
death_fade(delta_t)
die
draw_hit_points
draw_hit_points?
heal(hit_points)
hit(damage = 0)
hit_flash(delta_t)
hit_points
invincible?
max_hit_points
max_hit_points?
removed?
tint!(tint : LibRay::Color)
tint_default
update(_entities)