class Maps::Input

Defined in:

maps/input.cr

Constructors

Instance Method Summary

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=

Constructor methods inherited from class Maps::Base

new(height : Int32 | Nil = nil, width : Int32 | Nil = nil, fill : Char | Nil = nil) new

Constructor Detail

def self.new(key : String, title : String, question : String) #

[View source]

Instance Method Detail

def handle_key(key : Char) #

[View source]
def key : String #

[View source]
def key=(key : String) #

[View source]
def key_event : Events::EventHandler | Nil #

[View source]
def key_event=(key_event : Events::EventHandler | Nil) #

[View source]
def question : String #

[View source]
def question=(question : String) #

[View source]
def result : String #

[View source]
def result=(result : String) #

[View source]
def title : String #

[View source]
def title=(title : String) #

[View source]