class Mancala::Controller(T)
- Mancala::Controller(T)
- Reference
- Object
Defined in:
mancala/controller.crConstructors
- .new(window : SF::RenderWindow, virtual : SF::Vector2(Int32), context : T = T.new)
- .new(window : SF::RenderWindow, context : T = T.new)
Instance Method Summary
- #clear
- #context : T
- #empty?
- #handle_event(event : SF::Event)
- #pop
- #push(id : Symbol)
- #push(id : String)
- #push(activity : Activity(T))
- #register(id : Symbol, &block : Controller(T) -> Activity(T))
- #register(id : String, &block : Controller(T) -> Activity(T))
- #render(activity : Activity(T))
- #render(activity : Nil)
- #render
- #update(dt : SF::Time)
Constructor Detail
def self.new(window : SF::RenderWindow, virtual : SF::Vector2(Int32), context : T = T.new)
#