class CYOAdventure::Node

Included Modules

Defined in:

cyo_adventure/node.cr

Constructors

Instance Method Summary

Instance methods inherited from module CYOAdventure::Interactable

handle_key(key) : Bool handle_key, handle_mouse(mouse : NCurses::MouseEvent) : Bool handle_mouse

Constructor Detail

def self.new(book : CYOAdventure, text : String, dir : String) #

[View source]

Instance Method Detail

def advance_content #

Go forward in book


[View source]
def build_pages #

Build from the end


[View source]
def choice_down #

[View source]
def choice_up #

[View source]
def content : Content #

[View source]
def draw #

[View source]
def ending : Ending | Nil #

[View source]
def handle_key(key) : Bool #

[View source]
def handle_mouse(mouse) : Bool #

[View source]
def page : Array(Content) #

[View source]
def retreat_content #

Go back in book


[View source]