struct GameScene::MountainTop

Defined in:

game_scene/mountain_top.cr

Instance Method Summary

Instance methods inherited from struct GameScene::BaseScene

commands(state : State) : Array(Command) commands

Instance methods inherited from struct Scene

commands(state : State) : Array(Command) commands, persist_scene_state(state : State) : State persist_scene_state, render(state : State) render, run(state : State) : Tuple(Scene, State)? run

Constructor methods inherited from struct Scene

new new

Instance Method Detail

def commands(state : State) : Array(Command) #
Description copied from struct Scene

Returns an ordered list of commands available to the user. These commands will be displayed after the scene description produced in #render


[View source]
def render(state : State) #
Description copied from struct Scene

Render the scene description.

Note: There is no need to explain the scene's available options since Command options are automatically generated from #commands.

Example:

def render(state : State)
  puts "You are in an empty room. To your left is an open door."
end

[View source]