diff options
author | Max Horn | 2003-05-26 02:26:13 +0000 |
---|---|---|
committer | Max Horn | 2003-05-26 02:26:13 +0000 |
commit | 2f9ff35badc889a8b2480c0a34442b42763efc39 (patch) | |
tree | 1746fe9e3954663127f18fdfbcc3a3552ae67367 /scumm/actor.h | |
parent | c2d065d896a13f810ec9c4d484d1e2ec3713f3c2 (diff) | |
download | scummvm-rg350-2f9ff35badc889a8b2480c0a34442b42763efc39.tar.gz scummvm-rg350-2f9ff35badc889a8b2480c0a34442b42763efc39.tar.bz2 scummvm-rg350-2f9ff35badc889a8b2480c0a34442b42763efc39.zip |
moved Actor SaveLoadEntry definition to actor.cpp; made findPathTowards/findPathTowardsOld members of Actor; cleanup
svn-id: r7988
Diffstat (limited to 'scumm/actor.h')
-rw-r--r-- | scumm/actor.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/scumm/actor.h b/scumm/actor.h index fc8aad6be4..e554871163 100644 --- a/scumm/actor.h +++ b/scumm/actor.h @@ -67,6 +67,8 @@ struct CostumeData { } }; +class SaveLoadEntry; + class Actor { public: @@ -102,12 +104,13 @@ public: uint16 talk_script, walk_script; bool ignoreTurns; // TODO - we do not honor this flag at all currently! int8 layer; - ActorWalkData walkdata; - int16 animVariable[16]; uint16 sound[8]; CostumeData cost; byte palette[256]; protected: + ActorWalkData walkdata; + int16 animVariable[16]; + static Scumm *_vm; public: @@ -173,17 +176,17 @@ public: void animateActor(int anim); - bool isInCurrentRoom() { + bool isInCurrentRoom() const { return room == _vm->_currentRoom; } - int getActorXYPos(int &x, int &y); + int getActorXYPos(int &x, int &y) const ; - int getRoom() { + int getRoom() const { return room; } - int getAnimVar(byte var) { + int getAnimVar(byte var) const { return animVariable[var]; } void setAnimVar(byte var, int value) { @@ -192,10 +195,16 @@ public: void classChanged(int cls, bool value); + // Used by the save/load syste: + static const SaveLoadEntry *getSaveLoadEntries(); + protected: bool isInClass(int cls); bool isPlayer(); + + bool findPathTowards(byte box, byte box2, byte box3, int16 &foundPathX, int16 &foundPathY); + void findPathTowardsOld(byte box, byte box2, byte box3, ScummVM::Point gateLoc[5]); }; #endif |