#include <gamedata.h>
Public Member Functions | |
bool | loadInitialState (Common::ReadStream &stream) |
void | saveLoadWithSerializer (Common::Serializer &sz) override |
bool | isCombinable () const |
bool | allowsImplicitPickup () const |
Public Attributes | |
uint8 | _active |
char | _name [MAX_ENTITY_NAME_LENGTH+1] |
uint16 | _x |
uint8 | _y |
uint16 | _width |
uint8 | _height |
uint16 | _walkToX |
uint8 | _walkToY |
uint8 | _walkToFrame |
An interactable area, usually without a visual representation.
bool MutationOfJB::Static::loadInitialState | ( | Common::ReadStream & | stream | ) |
Load initial state from game data file.
stream | Stream for reading. |
|
overridevirtual |
bool MutationOfJB::Static::isCombinable | ( | ) | const |
Check whether this static is combinable. Statics with names ending with '[' are allowed to be combined with other items.
bool MutationOfJB::Static::allowsImplicitPickup | ( | ) | const |
Check whether this static is implicitly picked up. Statics with names starting with '~' are implicitly picked up.
uint8 MutationOfJB::Static::_active |
Whether you can mouse over and interact with the static (AC register).
char MutationOfJB::Static::_name[MAX_ENTITY_NAME_LENGTH+1] |
Static name (NM register).
If it starts with '~', the static has an implicit "pickup" action that adds an item with the same name (except '`' replaces '~') to your inventory and disables the static. If there is a matching scripted "pickup" action, it overrides the implicit action. This kind of static also has graphics in the form of its rectangle extracted from room frame 2 (and 3 after pickup).
If it ends with '[', the "use" action allows combining the static with another entity.
TODO: Support '~' statics.
uint16 MutationOfJB::Static::_x |
X coordinate of the static rectangle (XX register).
uint8 MutationOfJB::Static::_y |
Y coordinate of the static rectangle (YY register).
uint16 MutationOfJB::Static::_width |
Width of the static rectangle (XL register).
uint8 MutationOfJB::Static::_height |
Height of the static rectangle (YL register).
uint16 MutationOfJB::Static::_walkToX |
X coordinate of the position the player will walk towards after clicking the static (WX register).
uint8 MutationOfJB::Static::_walkToY |
Y coordinate of the position the player will walk towards after clicking the static (WY register).
uint8 MutationOfJB::Static::_walkToFrame |
Player frame (rotation) set after the player finishes walking towards the walk to position (SP register).