22 #ifndef WORLD_ACTORS_QUICKAVATARMOVERPROCESS_H 23 #define WORLD_ACTORS_QUICKAVATARMOVERPROCESS_H 25 #include "ultima/ultima8/metaengine.h" 26 #include "ultima/ultima8/kernel/process.h" 36 ENABLE_RUNTIME_CLASSTYPE()
43 static bool isEnabled() {
46 static void setEnabled(
bool value) {
49 static bool isClipping() {
52 static void setClipping(
bool value) {
55 static void toggleClipping() {
56 _clipping = !_clipping;
59 bool hasMovementFlags(uint32 flags)
const {
60 return (_movementFlags & flags) != 0;
62 void setMovementFlag(uint32 mask) {
63 _movementFlags |= mask;
65 virtual void clearMovementFlag(uint32 mask) {
66 _movementFlags &= ~mask;
68 void resetMovementFlags() {
73 bool onActionDown(KeybindingAction action);
74 bool onActionUp(KeybindingAction action);
81 MOVE_DESCEND = 0x0002,
86 MOVE_TURN_LEFT = 0x0010,
87 MOVE_TURN_RIGHT = 0x0020,
88 MOVE_FORWARD = 0x0040,
97 MOVE_ANY_DIRECTION = MOVE_LEFT | MOVE_RIGHT | MOVE_UP | MOVE_DOWN | MOVE_ASCEND | MOVE_DESCEND
101 uint32 _movementFlags;
103 static bool _enabled;
104 static bool _clipping;
Definition: quick_avatar_mover_process.h:31
Definition: detection.h:27
void terminate() override
terminate the process. This wakes up all processes waiting for it.
void saveData(Common::WriteStream *ws) override
save Process data