struct

WAD::Demo::InputAction

Inherits Struct < Value < Object

Each input action for the demo

Constructors

new

Instance methods

action

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

This byte encodes multiple actions in different bits. Indexing is from the least significant bit

expanded_action=(expanded_action : Interaction)

This byte encodes multiple actions in different bits. Indexing is from the least significant bit

initialize
movement_forward_back

Positive values indicate forward movement, negative backward.

movement_forward_back=(movement_forward_back : Int8)

Positive values indicate forward movement, negative backward.

strafing

Positive values indicate rightward movement, negative leftward.

strafing=(strafing : Int8)

Positive values indicate rightward movement, negative leftward.

turning

Positive values are left turns, negative right.

turning=(turning : Int8)

Positive values are left turns, negative right.