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 #

Instance Method Detail

def action : UInt8 #

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


def action=(action : UInt8) #

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


def clone #

Returns a copy of self with all instance variables cloned.


def expanded_action : Interaction #

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


def expanded_action=(expanded_action : Interaction) #

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


def initialize #

def movement_forward_back : Int8 #

Positive values indicate forward movement, negative backward.


def movement_forward_back=(movement_forward_back : Int8) #

Positive values indicate forward movement, negative backward.


def strafing : Int8 #

Positive values indicate rightward movement, negative leftward.


def strafing=(strafing : Int8) #

Positive values indicate rightward movement, negative leftward.


def turning : Int8 #

Positive values are left turns, negative right.


def turning=(turning : Int8) #

Positive values are left turns, negative right.