class Maps::Input
- Maps::Input
- Maps::Sprite
- Maps::Base
- Reference
- Object
Defined in:
maps/input.crConstructors
Instance Method Summary
- #handle_key(key : Char)
- #key : String
- #key=(key : String)
- #key_event : Events::EventHandler | Nil
- #key_event=(key_event : Events::EventHandler | Nil)
- #question : String
- #question=(question : String)
- #result : String
- #result=(result : String)
- #title : String
- #title=(title : String)
Instance methods inherited from class Maps::Sprite
active : Int32
active,
active=(active : Int32)
active=,
add_sprite(sprite : String) : Int32
add_sprite,
set_active(pos : Int32)
set_active,
sprites : Array(Array(Array(Char)))
sprites,
sprites=(sprites : Array(Array(Array(Char))))
sprites=
Constructor methods inherited from class Maps::Sprite
new(sprite : String)
new
Instance methods inherited from class Maps::Base
add(parent : Base, x : Int32 | Nil = nil, y : Int32 | Nil = nil, z : Int32 = 1)
add,
children : Array(Base)
children,
children=(children : Array(Base))
children=,
dirty : Bool
dirty,
dirty=(dirty : Bool)
dirty=,
fill : Char
fill,
fill=(fill : Char)
fill=,
height : Int32
height,
height=(height : Int32)
height=,
hide
hide,
is_dirty?
is_dirty?,
move(x : Int32, y : Int32)
move,
off(event : Events::EventHandler)
off,
on_action(&block : Maps::Base -> Nil) : Events::EventHandler
on_action,
on_bump(&block : String, Int32, Int32 -> Nil) : Events::EventHandler
on_bump,
on_key(&block : Char -> Nil) : Events::EventHandler
on_key,
on_message(&block : String, String -> Nil) : Events::EventHandler
on_message,
on_tick(&block) : Events::EventHandler
on_tick,
parent : Base | Nil
parent,
parent=(parent : Base | Nil)
parent=,
remove
remove,
render(screen : Array(Array(Char))) : Array(Array(Char))render : Array(Array(Char)) render, send(key : String, value : String) send, set(x : Int32, y : Int32, z : Int32)
set(x : Int32, y : Int32) set, show show, text : Array(Array(Char)) text, text=(text : Array(Array(Char))) text=, trigger_actions trigger_actions, trigger_bumps trigger_bumps, visible : Bool visible, visible=(visible : Bool) visible=, width : Int32 width, width=(width : Int32) width=, x : Int32 x, x=(x : Int32) x=, y : Int32 y, y=(y : Int32) y=, z : Int32 z, z=(z : Int32) z=