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::Chapter6::Aircraft
SfmlBook::Chapter6::Aircraft
SfmlBook::Chapter6::Entity
SfmlBook::Chapter6::SceneNode
SF::Transformable
Reference
Object
Defined in:
chapter6/aircraft.cr
Constructors
.new
(type : Type, holder : TextureHolder)
Instance Method Summary
#category
#draw_current
(target : SF::RenderTarget, states : SF::RenderStates)
Instance methods inherited from class
SfmlBook::Chapter6::Entity
accelerate(velocity : SF::Vector2 | Tuple)
accelerate
,
update_current(delta : SF::Time)
update_current
,
velocity : SF::Vector2(Float32)
velocity
,
velocity=(velocity : SF::Vector2 | Tuple)
velocity=
Instance methods inherited from class
SfmlBook::Chapter6::SceneNode
attach(node : SceneNode)
attach
,
category
category
,
detach(node : SceneNode)
detach
,
draw(target : SF::RenderTarget, states : SF::RenderStates)
draw
,
draw_children(target : SF::RenderTarget, states : SF::RenderStates)
draw_children
,
draw_current(target : SF::RenderTarget, states : SF::RenderStates)
draw_current
,
on_command(command : Command, delta : SF::Time)
on_command
,
parent : Pointer(SceneNode)
parent
,
parent=(parent : Pointer(SceneNode))
parent=
,
update(delta : SF::Time)
update
,
update_children(delta : SF::Time)
update_children
,
update_current(delta : SF::Time)
update_current
,
world_transform
world_transform
Constructor methods inherited from class
SfmlBook::Chapter6::SceneNode
new
new
Constructor Detail
def self.
new
(type :
Type
, holder :
TextureHolder
)
#
[
View source
]
Instance Method Detail
def
category
#
[
View source
]
def
draw_current
(target : SF::RenderTarget, states : SF::RenderStates)
#
[
View source
]