Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
sfml_book
master
SfmlBook
Chapter1
Game
Chapter2
Game
ResourceHolder
Textures
ID
Chapter3
Aircraft
Type
Entity
Game
ResourceHolder
SceneNode
SpriteNode
TextureHolder
Textures
ID
World
Layer
Chapter4
Aircraft
Type
AircraftMovement
Category
Type
Command
Action
Entity
Game
Player
Action
ResourceHolder
SceneNode
SpriteNode
TextureHolder
Textures
ID
World
Layer
Chapter5
Aircraft
Type
AircraftMovement
Application
Category
Type
Command
Action
Entity
FontHolder
Fonts
GameState
LoadingState
MenuState
Options
ParallelTask
PauseState
Player
Action
ResourceHolder
SceneNode
SpriteNode
State
Context
States
StateStack
Action
PendingChange
TextureHolder
Textures
TitleState
Utils
World
Layer
Chapter6
Aircraft
Type
AircraftMovement
Application
Category
Type
Command
Action
Entity
FontHolder
Fonts
GameState
GUI
Button
Component
Container
Label
LoadingState
MenuState
Options
ParallelTask
PauseState
Player
Action
ResourceHolder
SceneNode
SettingsState
SpriteNode
State
Context
States
StateStack
Action
PendingChange
TextureHolder
Textures
TitleState
Utils
World
Layer
Built with Crystal 1.9.2
2023-10-07 19:47:50 UTC
class
SfmlBook::Chapter5::MenuState
SfmlBook::Chapter5::MenuState
SfmlBook::Chapter5::State
Reference
Object
Defined in:
chapter5/menu_state.cr
Constructors
.new
(stack : StateStack, context : State::Context)
Instance Method Summary
#draw
#handle_event
(event : SF::Event)
#update
(delta : SF::Time)
#update_option
Instance methods inherited from class
SfmlBook::Chapter5::State
context : SfmlBook::Chapter5::State::Context
context
,
draw
draw
,
handle_event(event : SF::Event)
handle_event
,
request_stack_clear
request_stack_clear
,
request_stack_pop
request_stack_pop
,
request_stack_push(state : States)
request_stack_push
,
update(delta : SF::Time)
update
Constructor methods inherited from class
SfmlBook::Chapter5::State
new(stack : StateStack, context : Context)
new
Constructor Detail
def self.
new
(stack :
StateStack
, context :
State::Context
)
#
[
View source
]
Instance Method Detail
def
draw
#
[
View source
]
def
handle_event
(event : SF::Event)
#
[
View source
]
def
update
(delta : SF::Time)
#
[
View source
]
def
update_option
#
[
View source
]