struct

WAD::Demo::Interaction

Inherits Struct < Value < Object

"This byte encodes multiple actions in different bits"

Constructors

new

Instance methods

clone

Returns a copy of self with all instance variables cloned.

initialize
interact_save

"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".

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".

save_slot

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.

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.

shoot_pause

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

shoot_pause=(shoot_pause : Bool)

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

special_mode

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

special_mode=(special_mode : Bool)

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

weapon_slot

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

weapon_slot=(weapon_slot : UInt8)

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

weapon_switch

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

weapon_switch=(weapon_switch : Bool)

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