class Maps::Base

Direct Known Subclasses

Defined in:

maps/base.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(height : Int32 | Nil = nil, width : Int32 | Nil = nil, fill : Char | Nil = nil) #

[View source]

Instance Method Detail

def add(parent : Base, x : Int32 | Nil = nil, y : Int32 | Nil = nil, z : Int32 = 1) #

[View source]
def children : Array(Base) #

[View source]
def children=(children : Array(Base)) #

[View source]
def dirty : Bool #

[View source]
def dirty=(dirty : Bool) #

[View source]
def fill : Char #

[View source]
def fill=(fill : Char) #

[View source]
def height : Int32 #

[View source]
def height=(height : Int32) #

[View source]
def hide #

[View source]
def is_dirty? #

[View source]
def move(x : Int32, y : Int32) #

[View source]
def off(event : Events::EventHandler) #

[View source]
def on_action(&block : Maps::Base -> Nil) : Events::EventHandler #

[View source]
def on_bump(&block : String, Int32, Int32 -> Nil) : Events::EventHandler #

[View source]
def on_key(&block : Char -> Nil) : Events::EventHandler #

[View source]
def on_message(&block : String, String -> Nil) : Events::EventHandler #

[View source]
def on_tick(&block) : Events::EventHandler #

[View source]
def parent : Base | Nil #

current position in parent map


[View source]
def parent=(parent : Base | Nil) #

current position in parent map


[View source]
def remove #

[View source]
def render(screen : Array(Array(Char))) : Array(Array(Char)) #

[View source]
def render : Array(Array(Char)) #

[View source]
def send(key : String, value : String) #

[View source]
def set(x : Int32, y : Int32, z : Int32) #

[View source]
def set(x : Int32, y : Int32) #

[View source]
def show #

[View source]
def text : Array(Array(Char)) #

[View source]
def text=(text : Array(Array(Char))) #

[View source]
def trigger_actions #

[View source]
def trigger_bumps #

[View source]
def visible : Bool #

[View source]
def visible=(visible : Bool) #

[View source]
def width : Int32 #

[View source]
def width=(width : Int32) #

[View source]
def x : Int32 #

[View source]
def x=(x : Int32) #

[View source]
def y : Int32 #

[View source]
def y=(y : Int32) #

[View source]
def z : Int32 #

[View source]
def z=(z : Int32) #

[View source]