class Mancala::Controller(T)

Defined in:

mancala/controller.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(window : SF::RenderWindow, virtual : SF::Vector2(Int32), context : T = T.new) #

[View source]
def self.new(window : SF::RenderWindow, context : T = T.new) #

[View source]

Instance Method Detail

def clear #

[View source]
def context : T #

[View source]
def empty? #

[View source]
def handle_event(event : SF::Event) #

[View source]
def pop #

[View source]
def push(id : Symbol) #

[View source]
def push(id : String) #

[View source]
def push(activity : Activity(T)) #

[View source]
def register(id : Symbol, &block : Controller(T) -> Activity(T)) #

[View source]
def register(id : String, &block : Controller(T) -> Activity(T)) #

[View source]
def render(activity : Activity(T)) #

[View source]
def render(activity : Nil) #

[View source]
def render #

[View source]
def update(dt : SF::Time) #

[View source]