class Buzzle::Door::Cell
- Buzzle::Door::Cell
- Buzzle::Door::Locked
- Buzzle::Door::Base
- Buzzle::Switch
- Buzzle::SpriteEntity
- Buzzle::Entity
- Buzzle::Obj
- Reference
- Object
Defined in:
buzzle/door/cell.crConstructors
Instance Method Summary
Instance methods inherited from class Buzzle::Door::Locked
action(_entity : Entity)
action,
actionable?
actionable?,
actionable_condition?(entity : Entity)
actionable_condition?,
locked? : Bool
locked?,
unlock
unlock,
unlocked?
unlocked?
Constructor methods inherited from class Buzzle::Door::Locked
new(x, y, z = 0, direction = Direction::Down, design = Design::Locked, open = false, locked : Bool = true, darkness = true)
new
Instance methods inherited from class Buzzle::Door::Base
active?
active?,
close(instant = false)
close,
closed?
closed?,
collidable?
collidable?,
directional_collision?(obj : Obj, other_direction : Direction)
directional_collision?,
done_exiting
done_exiting,
draw(screen_x, screen_y)
draw,
enter_trigger?(entity : Entity)
enter_trigger?,
entered?(player : Player)
entered?,
entities
entities,
exit
exit,
exiting? : Bool
exiting?,
layer
layer,
open(instant = false)
open,
open?
open?,
play_sound_done
play_sound_done,
play_sound_start
play_sound_start,
toggle(instant = false)
toggle,
traversable?
traversable?,
x_draw
x_draw,
y_draw
y_draw
Constructor methods inherited from class Buzzle::Door::Base
new(x, y, z = 0, direction = Direction::Down, design : Buzzle::Door::Base::Design = Design::Wooden, open = false, darkness = true)
new
Instance methods inherited from class Buzzle::Switch
action(_entity : Entity)
action,
actionable?
actionable?,
draw(screen_x, screen_y)
draw,
flip(sound = true)
flip,
frame
frame,
frame=(frame)
frame=,
off(sound = true)
off,
off?
off?,
on(sound = true)
on,
on? : Bool
on?,
play_sound_done
play_sound_done,
play_sound_start
play_sound_start,
switch(instant = false, sound = !instant)
switch,
switching? : Bool
switching?,
update(frame_time)
update
Constructor methods inherited from class Buzzle::Switch
new(x, y, z = 0, sprite = "switch", on : Bool = false, width = Game::GRID_SIZE, height = Game::GRID_SIZE, direction = Direction::Down, hidden = false)
new
Instance methods inherited from class Buzzle::SpriteEntity
draw(screen_x, screen_y, x = x, y = y, center_x = true, center_y = true, frame = 0, row = 0, rotation = 0, tint = Color::White)
draw,
draw_partial(screen_x, screen_y, x = x, y = y, source_width = width, source_height = height, frame = 0, row = 0, rotation = 0, tint = Color::White)
draw_partial,
source_height : Int32 | Nil
source_height,
source_height=(source_height : Int32 | Nil)
source_height=,
source_width : Int32 | Nil
source_width,
source_width=(source_width : Int32 | Nil)
source_width=,
sprite : Sprite
sprite
Constructor methods inherited from class Buzzle::SpriteEntity
new(sprite, x : Int32, y : Int32, z : Int32 = 0, width = nil, height = nil, direction = Direction::Down, hidden = false)
new
Instance methods inherited from class Buzzle::Entity
action(_entity : Entity)
action,
actionable?
actionable?,
actionable_condition?(entity : Entity)
actionable_condition?,
ascend
ascend,
descend
descend,
draw(screen_x, screen_y)
draw,
entities
entities,
lift(amount)
lift,
lift_stopped
lift_stopped,
liftable?
liftable?,
lifting? : Bool
lifting?,
light_radius
light_radius,
light_shadow_extension
light_shadow_extension,
light_source?
light_source?,
traversable?
traversable?,
trigger?(entity : Entity)
trigger?,
trigger_facing?(entity : Entity, opposite = false)
trigger_facing?,
update(frame_time, _entities)update(_frame_time) update, update_visibility(visibilities : Array(Visibility))
update_visibility(visibility : Visibility) update_visibility
Constructor methods inherited from class Buzzle::Entity
new(x : Int32 = 0, y : Int32 = 0, z : Int32 = 0, width : Int32 = 0, height : Int32 = 0, direction = Direction::Down, hidden = false)
new
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