struct WAD::Demo::InputAction
- WAD::Demo::InputAction
- Struct
- Value
- Object
Overview
Each input action for the demo
Defined in:
wa-cr/wad/wad-data/demo.crConstructors
Instance Method Summary
-
#action : UInt8
The action byte to show what is being performed on the tic
-
#action=(action : UInt8)
The action byte to show what is being performed on the tic
-
#clone
Returns a copy of
self
with all instance variables cloned. -
#expanded_action : Interaction
This byte encodes multiple actions in different bits.
-
#expanded_action=(expanded_action : Interaction)
This byte encodes multiple actions in different bits.
- #initialize
-
#movement_forward_back : Int8
Positive values indicate forward movement, negative backward.
-
#movement_forward_back=(movement_forward_back : Int8)
Positive values indicate forward movement, negative backward.
-
#strafing : Int8
Positive values indicate rightward movement, negative leftward.
-
#strafing=(strafing : Int8)
Positive values indicate rightward movement, negative leftward.
-
#turning : Int8
Positive values are left turns, negative right.
-
#turning=(turning : Int8)
Positive values are left turns, negative right.
Constructor Detail
Instance Method Detail
This byte encodes multiple actions in different bits. Indexing is from the least significant bit
This byte encodes multiple actions in different bits. Indexing is from the least significant bit
Positive values indicate forward movement, negative backward.