struct GameScene::MountainTrail

Defined in:

game_scene/mountain_trail.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, initialize initialize, persist_scene_state(state : State) : State persist_scene_state, render(state : State) render, run(state : State) : Tuple(Scene, State) | Nil run

Constructor methods inherited from struct Scene

new new

Instance Method Detail

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]