class Buzzle::Character
Defined in:
buzzle/character.crConstructors
Instance Method Summary
- #action(player : Player)
- #actionable?
- #direction=(direction : Direction)
- #direction_temp : Direction
- #direction_temp=(direction_temp : Direction)
- #message(&block)
- #messages : Array(Array(String))
- #messages=(messages : Array(Array(String)))
- #name : String
- #name=(name : String)
- #quest_actions : Array(QuestAction)
- #quest_actions=(quest_actions : Array(QuestAction))
- #restart_messages
Instance methods inherited from class Buzzle::Being
actionable(entities)
actionable,
attacking(frame_time)
attacking,
attacking? : Bool
attacking?,
dead? : Bool
dead?,
die
die,
draw(screen_x, screen_y)
draw,
draw_hit_points(screen_x, screen_y)
draw_hit_points,
end_fight
end_fight,
enter(door : Door::Base, instant = false)
enter,
exit_door : Door::Base | Nil
exit_door,
exit_door=(exit_door : Door::Base | Nil)
exit_door=,
face(direction : Direction)
face,
fall
fall,
falling? : Bool
falling?,
fight : Fight | Nil
fight,
fight=(fight : Fight | Nil)
fight=,
fps
fps,
frame
frame,
frame=(frame)
frame=,
initial_location(x = 0, y = 0, z = 0)
initial_location,
initiate_attack(other : Being)
initiate_attack,
items : Array(Buzzle::Item::Base)
items,
liftable?
liftable?,
light_radius
light_radius,
light_shadow_extension
light_shadow_extension,
light_source?
light_source?,
move(dx = 0, dy = 0)
move,
move_to(x, y)
move_to,
movement(frame_time, entities)
movement,
movement_input(frame_time, entities)
movement_input,
moving?
moving?,
moving_transition(frame_time, entities)
moving_transition,
pulling_block?(dx, dy)
pulling_block?,
pushing_block?(dx, dy)
pushing_block?,
revive
revive,
row
row,
stop
stop,
take_damage(damage)
take_damage,
transitions(frame_time)
transitions,
update(frame_time, entities : Array(Entity))
update
Constructor methods inherited from class Buzzle::Being
new(sprite, x = 0, y = 0, z = 0, direction = Direction::Down, tint : Color = Color::White)
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
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 = "player", name : String = "", messages : Array(Array(String)) = [] of Array(String), tint = Color::White, quest_actions : Array(Buzzle::QuestAction) = [] of QuestAction)
#