class Buzzle::Trigger

Defined in:

buzzle/trigger.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 = 0, y = 0, z = 0, origin_x : Int32 = 0, origin_y : Int32 = 0, width = 1, height = 1, enabled : Bool = true) #

[View source]

Instance Method Detail

def draw(screen_x, screen_y) #

[View source]
def enabled? : Bool #

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

[View source]
def update(this_entity : Entity) #

[View source]