Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
class
SfmlBook::Chapter4::Player
Inherits
Reference
<
Object
Constants
PLAYER_SPEED = 200.0
Constructors
new
Source
Instance methods
assign_key
(action :
Action
, key :
SF::Keyboard::Key
)
TODO: Raise exception for invalid action
Source
assigned_key
(action :
Action
)
TODO: Raise exception for invalid action
Source
handle_event
(event :
SF::Event
, queue :
Deque
(
Command
))
Source
handle_realtime_input
(queue :
Deque
(
Command
))
Source
realtime_action?
(action :
Action
)
Source
Nested types
SfmlBook::Chapter4::Player::Action