abstract class CYOAdventure::Content

Direct Known Subclasses

Defined in:

cyo_adventure/content.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(node : Node, line : String, dir : String) : Content #

Dispatch to correct class

#i54

Should create an image finding the file with name '54'

#c32 Jump

Should create a choice with the text 'Jump' leading to node 32


[View source]

Instance Method Detail

abstract def draw(offset : Int32, height : Int32) #

[View source]
abstract def height : Int32 #

[View source]
abstract def new_line : Bool #

[View source]
def next : Content | Nil #

[View source]
def node : Node #

[View source]
def node? : Node | Nil #

[View source]