aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/actor.h
diff options
context:
space:
mode:
authorPeter Kohaut2017-03-23 00:25:38 +0100
committerPeter Kohaut2017-03-23 00:25:38 +0100
commit52476b0778d4e02a67b61793b9ebeb1725658b40 (patch)
tree1bf0c812944a124854b13eb63597cd12ad683d56 /engines/bladerunner/actor.h
parentc084e987d8b3558d5f84f37712fa3bb36fef413f (diff)
downloadscummvm-rg350-52476b0778d4e02a67b61793b9ebeb1725658b40.tar.gz
scummvm-rg350-52476b0778d4e02a67b61793b9ebeb1725658b40.tar.bz2
scummvm-rg350-52476b0778d4e02a67b61793b9ebeb1725658b40.zip
BLADERUNNER: Added more functionality to movement track
Diffstat (limited to 'engines/bladerunner/actor.h')
-rw-r--r--engines/bladerunner/actor.h28
1 files changed, 21 insertions, 7 deletions
diff --git a/engines/bladerunner/actor.h b/engines/bladerunner/actor.h
index a14139cf3d..d924730b4b 100644
--- a/engines/bladerunner/actor.h
+++ b/engines/bladerunner/actor.h
@@ -78,6 +78,16 @@ private:
bool _isMoving;
bool _damageAnimIfMoving;
+ // Movement
+ bool _movementTrackPaused;
+ int _movementTrackNextWaypointId;
+ int _movementTrackNextDelay; // probably not used
+ int _movementTrackNextAngle; // probably not used
+ bool _movementTrackNextRunning;
+
+ int _movementTrackWalkingToWaypointId;
+ int _movementTrackDelayOnNextWaypoint;
+
// Animation
int _width;
int _height;
@@ -122,7 +132,16 @@ public:
void changeAnimationMode(int animationMode, bool force = false);
void setFPS(int fps);
- void processMovement();
+ void countdownTimerStart(int timerId, int interval);
+ void countdownTimerReset(int timerId);
+ int countdownTimerGetRemainingTime(int timerId);
+ void countdownTimersUpdate();
+ void countdownTimerUpdate(int timerId);
+
+ void movementTrackNext(bool omitAiScript);
+ void movementTrackPause();
+ void movementTrackUnpause();
+ void movementTrackWaypointReached();
bool loopWalkToActor(int otherActorId, int destinationOffset, int a3, bool run, bool a5, bool *isRunning);
bool loopWalkToItem(int itemId, int destinationOffset, int a3, bool run, bool a5, bool *isRunning);
@@ -133,12 +152,6 @@ public:
bool tick(bool forceUpdate);
void draw();
- void countdownTimerStart(int timerId, int interval);
- void countdownTimerReset(int timerId);
- int countdownTimerGetRemainingTime(int timerId);
- void countdownTimersUpdate();
- void countdownTimerUpdate(int timerId);
-
int getSetId();
void setSetId(int setId);
BoundingBox *getBoundingBox() { return _bbox; }
@@ -152,6 +165,7 @@ public:
bool isMoving() { return _isMoving; }
void setMoving(bool value) { _isMoving = value; }
bool isWalking();
+ bool isRunning();
void stopWalking(bool value);
void faceActor(int otherActorId, bool animate);