class Dungeon::LivingEntity
 
  - Dungeon::LivingEntity
 - Dungeon::Entity
 - Reference
 - Object
 
Direct Known Subclasses
Defined in:
dungeon/living_entity.crConstant Summary
- 
        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
Instance Method Summary
- #after_hit_flash
 - #dead? : Bool
 - #death_fade(delta_t)
 - #die
 - #draw_hit_points
 - #draw_hit_points?
 - #heal(hit_points)
 - #hit(damage = 0)
 - #hit_flash(delta_t)
 - #hit_points : Int32
 - #invincible?
 - #max_hit_points
 - #max_hit_points?
 - #removed?
 - #tint!(tint : LibRay::Color)
 - #tint_default : LibRay::Color
 - #update(_entities)
 
Instance methods inherited from class Dungeon::Entity
  
  
    
      bottom_layer? : Bool
    bottom_layer?, 
    
  
    
      bump_damage
    bump_damage, 
    
  
    
      centered? : Bool
    centered?, 
    
  
    
      collidable?
    collidable?, 
    
  
    
      collision?(entity : Entity, other_box : Box = entity.collision_box, own_box : Box = collision_box)
    collision?, 
    
  
    
      collision_box : Box
    collision_box, 
    
  
    
      collision_box=(collision_box : Box)
    collision_box=, 
    
  
    
      collisions?(entities : Array(Entity))
    collisions?, 
    
  
    
      draw
    draw, 
    
  
    
      draw_box(box : Box, color = LibRay::WHITE)
    draw_box, 
    
  
    
      draw_collision_box
    draw_collision_box, 
    
  
    
      draw_collision_box?
    draw_collision_box?, 
    
  
    
      draw_hit_box
    draw_hit_box, 
    
  
    
      height : Int32
    height, 
    
  
    
      height=(height : Int32)
    height=, 
    
  
    
      hit_box : Box
    hit_box, 
    
  
    
      loc : Location
    loc, 
    
  
    
      loc=(loc : Location)
    loc=, 
    
  
    
      origin : Location
    origin, 
    
  
    
      origin=(origin : Location)
    origin=, 
    
  
    
      removed?
    removed?, 
    
  
    
      update(_entities)
    update, 
    
  
    
      update_to_camera(camera : Camera)
    update_to_camera, 
    
  
    
      updates_to_camera(camera : Camera)
    updates_to_camera, 
    
  
    
      viewable?(camera : Camera)
    viewable?, 
    
  
    
      width : Int32
    width, 
    
  
    
      width=(width : Int32)
    width=, 
    
  
    
      x
    x, 
    
  
    
      x=(x)
    x=, 
    
  
    
      y
    y, 
    
  
    
      y=(y)
    y=
    
  
    
  Constructor methods inherited from class Dungeon::Entity
  
  
    
      new(loc : Location, width : Int32, height : Int32, collision_box : Box, hit_box : Box, tint : LibRay::Color = TINT_DEFAULT)new(loc, width, height, collision_box : Box, tint = TINT_DEFAULT)
new(loc, width, height, tint = TINT_DEFAULT) new
Constructor Detail
        
        def self.new(loc : Location, width, height, collision_box : Box, hit_box : Box, tint_default : LibRay::Color = TINT_DEFAULT)
        #