abstract class Buzzle::Being
- Buzzle::Being
- Buzzle::SpriteEntity
- Buzzle::Entity
- Buzzle::Obj
- Reference
- Object
Direct Known Subclasses
Defined in:
buzzle/being.crConstant Summary
-
FALLING_FPS =
12
-
FALLING_FRAME_LAST =
5
-
FPS =
12
-
HIT_POINT_BAR_HEIGHT =
5
-
HIT_POINT_BAR_MARGIN =
3
-
MAX_HIT_POINTS =
100
-
MOVE_BLOCK_TIMER =
0.25
-
MOVING_AMOUNT =
2
-
MOVING_FRAME_LAST =
2
Constructors
Instance Method Summary
- #actionable(entities)
- #attacking(frame_time)
- #attacking? : Bool
- #dead? : Bool
- #die
- #draw(screen_x, screen_y)
- #draw_hit_points(screen_x, screen_y)
- #end_fight
- #enter(door : Door::Base, instant = false)
- #exit_door : Door::Base | Nil
- #exit_door=(exit_door : Door::Base | Nil)
- #face(direction : Direction)
- #fall
- #falling? : Bool
- #fight : Fight | Nil
- #fight=(fight : Fight | Nil)
- #fps
- #frame
- #frame=(frame)
- #initial_location(x = 0, y = 0, z = 0)
- #initiate_attack(other : Being)
- #items : Array(Buzzle::Item::Base)
- #liftable?
- #light_radius
- #light_shadow_extension
- #light_source?
- #move(dx = 0, dy = 0)
- #move_to(x, y)
- #movement(frame_time, entities)
- #movement_input(frame_time, entities)
- #moving?
- #moving_transition(frame_time, entities)
- #pulling_block?(dx, dy)
- #pushing_block?(dx, dy)
- #revive
- #row
- #stop
- #take_damage(damage)
- #transitions(frame_time)
- #update(frame_time, entities : Array(Entity))
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
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(sprite, x = 0, y = 0, z = 0, direction = Direction::Down, tint : Color = Color::White)
#