struct WAD::Demo::InputAction

Overview

Each input action for the demo

Defined in:

wa-cr/wad/wad-data/demo.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def action : UInt8 #

The action byte to show what is being performed on the tic


[View source]
def action=(action : UInt8) #

The action byte to show what is being performed on the tic


[View source]
def clone #

Returns a copy of self with all instance variables cloned.


[View source]
def expanded_action : Interaction #

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


[View source]
def expanded_action=(expanded_action : Interaction) #

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


[View source]
def initialize #

[View source]
def movement_forward_back : Int8 #

Positive values indicate forward movement, negative backward.


[View source]
def movement_forward_back=(movement_forward_back : Int8) #

Positive values indicate forward movement, negative backward.


[View source]
def strafing : Int8 #

Positive values indicate rightward movement, negative leftward.


[View source]
def strafing=(strafing : Int8) #

Positive values indicate rightward movement, negative leftward.


[View source]
def turning : Int8 #

Positive values are left turns, negative right.


[View source]
def turning=(turning : Int8) #

Positive values are left turns, negative right.


[View source]