struct WAD::Demo::Interaction

Overview

"This byte encodes multiple actions in different bits"

Defined in:

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

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Instance Method Detail

def clone #

Returns a copy of self with all instance variables cloned.


def initialize #

def interact_save : Bool #

"Opens a door or flips a switch; or in special mode the game to saved to the slot specified by the next three bits: 1xx0001x is slot 1, 1xx1011x is slot 6".


def interact_save=(interact_save : Bool) #

"Opens a door or flips a switch; or in special mode the game to saved to the slot specified by the next three bits: 1xx0001x is slot 1, 1xx1011x is slot 6".


def save_slot : UInt8 #

Save game slot, used if interact_save == true and special_mode == true. Set to 1 by default, because if it is used, the interact_save bit will equal 1.


def save_slot=(save_slot : UInt8) #

Save game slot, used if interact_save == true and special_mode == true. Set to 1 by default, because if it is used, the interact_save bit will equal 1.


def shoot_pause : Bool #

"If set, the weapon is fired; or in special mode pause is toggled"


def shoot_pause=(shoot_pause : Bool) #

"If set, the weapon is fired; or in special mode pause is toggled"


def special_mode : Bool #

"Sets special mode, changing the meaning of the first two bits".


def special_mode=(special_mode : Bool) #

"Sets special mode, changing the meaning of the first two bits".


def weapon_slot : UInt8 #

Set to 1 by default, because if it is used, the weapon_switch bit will equal 1.


def weapon_slot=(weapon_slot : UInt8) #

Set to 1 by default, because if it is used, the weapon_switch bit will equal 1.


def weapon_switch : Bool #

"Changes to the weapon slot specified by the next three bits: xx0001xx is slot 1, xx1101xx is slot 7".


def weapon_switch=(weapon_switch : Bool) #

"Changes to the weapon slot specified by the next three bits: xx0001xx is slot 1, xx1101xx is slot 7".