abstract class Buzzle::Entity

Direct Known Subclasses

Defined in:

buzzle/entity.cr

Constructors

Instance Method Summary

Instance methods inherited from class Buzzle::Obj

collidable? collidable?, collision?(x, y, width, height)
collision?(objs : Array(Obj))
collision?(obj : Obj)
collision?
, collisions(objs : Array(Obj)) collisions, direction : Direction direction, directional_collision?(objs : Array(Obj), direction : Direction)
directional_collision?(obj : Obj, direction : Direction)
directional_collision?
, draw(_screen_x, _screen_y) draw, draw_sort(obj : Obj) draw_sort, face(entity) face, facing?(entity : Entity, opposite = false) facing?, height : Int32 height, hidden? : Bool hidden?, hide hide, horz_between?(entity) horz_between?, horz_distance_longer?(entity) horz_distance_longer?, layer layer, remove remove, removed? : Bool removed?, show show, to_s(io) to_s, update(frame_time, _entities)
update(_frame_time)
update
, vert_between?(entity) vert_between?, vert_distance_longer?(entity) vert_distance_longer?, width : Int32 width, x : Int32 x, x_draw x_draw, y : Int32 y, y_draw y_draw, z : Int32 z

Constructor methods inherited from class Buzzle::Obj

new(x : Int32, y : Int32, z : Int32 = 0, width : Int32 = 0, height : Int32 = 0, direction : Buzzle::Direction = Direction::Down, hidden : Bool = false) new

Constructor Detail

def self.new(x : Int32 = 0, y : Int32 = 0, z : Int32 = 0, width : Int32 = 0, height : Int32 = 0, direction = Direction::Down, hidden = false) #

[View source]

Instance Method Detail

def action(_entity : Entity) #

[View source]
def actionable? #

[View source]
def actionable_condition?(entity : Entity) #

[View source]
def ascend #

[View source]
def descend #

[View source]
def draw(screen_x, screen_y) #

[View source]
def entities #

[View source]
def lift(amount) #

[View source]
def lift_stopped #

[View source]
def liftable? #

[View source]
def lifting? : Bool #

[View source]
def light_radius #

[View source]
def light_shadow_extension #

[View source]
def light_source? #

[View source]
def traversable? #

[View source]
def trigger?(entity : Entity) #

[View source]
def trigger_facing?(entity : Entity, opposite = false) #

[View source]
def update(frame_time, _entities) #

[View source]
def update(_frame_time) #

[View source]
def update_visibility(visibilities : Array(Visibility)) #

[View source]
def update_visibility(visibility : Visibility) #

[View source]