aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage/core.h
diff options
context:
space:
mode:
authorPaul Gilbert2011-04-03 10:50:52 +1000
committerPaul Gilbert2011-04-03 10:50:52 +1000
commit1df668bd1e674c5c72c4a92c9de9bc01bf6d4479 (patch)
tree87d992039881e99b1b06087a20215e333af79814 /engines/tsage/core.h
parent499d1751c747fb481c9390513a2ec90653af852f (diff)
downloadscummvm-rg350-1df668bd1e674c5c72c4a92c9de9bc01bf6d4479.tar.gz
scummvm-rg350-1df668bd1e674c5c72c4a92c9de9bc01bf6d4479.tar.bz2
scummvm-rg350-1df668bd1e674c5c72c4a92c9de9bc01bf6d4479.zip
TSAGE: Properly implemented the PlayerMover2 class
Diffstat (limited to 'engines/tsage/core.h')
-rw-r--r--engines/tsage/core.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/engines/tsage/core.h b/engines/tsage/core.h
index 5e668d1829..a811b53f4e 100644
--- a/engines/tsage/core.h
+++ b/engines/tsage/core.h
@@ -259,7 +259,7 @@ public:
};
class PlayerMover: public NpcMover {
-private:
+protected:
void setDest(const Common::Point &destPos);
void pathfind(Common::Point *routeList, Common::Point srcPos, Common::Point destPos, RouteEnds routeEnds);
int regionIndexOf(const Common::Point &pt);
@@ -286,9 +286,16 @@ public:
class PlayerMover2: public PlayerMover {
public:
- int _field7A;
+ SceneObject *_destObject;
int _field7E;
- PlayerMover2(): PlayerMover() { _field7A = 0; }
+ int _minArea;
+ PlayerMover2(): PlayerMover() { _destObject = NULL; }
+
+ virtual void synchronise(Serialiser &s);
+ virtual Common::String getClassName() { return "PlayerMover2"; }
+ virtual void dispatch();
+ virtual void startMove(SceneObject *sceneObj, va_list va);
+ virtual void endMove();
};
/*--------------------------------------------------------------------------*/