STATE namespace JJ2+
States of objects
Enums
- enum State { START, SLEEP, WAKE, KILL, DEACTIVATE, WALK, JUMP, FIRE, FLY, BOUNCE, EXPLODE, ROCKETFLY, STILL, FLOAT, HIT, SPRING, ACTION, DONE, PUSH, FALL, FLOATFALL, CIRCLE, ATTACK, FREEZE, FADEIN, FADEOUT, HIDE, TURN, IDLE, EXTRA, STOP, WAIT, LAND, DELAYEDSTART, ROTATE, DUCK } JJ2+
- States of the state machine of an object, see jjOBJ::state
Enum documentation
enum STATE:: State JJ2+
States of the state machine of an object, see jjOBJ::state
The most important are START for a newly created object, KILL for a destroyed one, DEACTIVATE for one that is being unloaded, EXPLODE for a bullet that is ending, FREEZE for a frozen one and ACTION for collisions with some complex objects. The meaning of the others depends on the behavior.
| Enumerators | |
|---|---|
| START |
Initial state of a newly created object |
| SLEEP | |
| WAKE | |
| KILL |
The object is being destroyed |
| DEACTIVATE |
The object is being deactivated, far away from all players |
| WALK | |
| JUMP | |
| FIRE | |
| FLY | |
| BOUNCE | |
| EXPLODE |
A bullet hit something and is going away |
| ROCKETFLY | |
| STILL | |
| FLOAT |
A pickup floating in place, not touched yet |
| HIT | |
| SPRING | |
| ACTION |
Used by some objects when a player or a bullet hits them |
| DONE | |
| PUSH | |
| FALL | |
| FLOATFALL |
A pickup that falls to the ground |
| CIRCLE | |
| ATTACK | |
| FREEZE |
The object is frozen |
| FADEIN | |
| FADEOUT | |
| HIDE | |
| TURN | |
| IDLE | |
| EXTRA | |
| STOP | |
| WAIT | |
| LAND | |
| DELAYEDSTART | |
| ROTATE | |
| DUCK |