diff options
author | Paul Gilbert | 2015-06-14 15:34:11 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-06-14 15:34:11 -0400 |
commit | bc0a839175899462bc4a79a6e4f3853ac5ee9aaf (patch) | |
tree | 57b8db4b61594b011203ca983a43bfa59aa5f1ab /engines/sherlock/tattoo/tattoo_people.h | |
parent | f713094c6427e22c442b9b98be0f79d383d32b23 (diff) | |
download | scummvm-rg350-bc0a839175899462bc4a79a6e4f3853ac5ee9aaf.tar.gz scummvm-rg350-bc0a839175899462bc4a79a6e4f3853ac5ee9aaf.tar.bz2 scummvm-rg350-bc0a839175899462bc4a79a6e4f3853ac5ee9aaf.zip |
SHERLOCK: RT: Move more methods from Sprite to TattooPerson
Diffstat (limited to 'engines/sherlock/tattoo/tattoo_people.h')
-rw-r--r-- | engines/sherlock/tattoo/tattoo_people.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/tattoo_people.h b/engines/sherlock/tattoo/tattoo_people.h index 25a76b66f9..5fb94cc559 100644 --- a/engines/sherlock/tattoo/tattoo_people.h +++ b/engines/sherlock/tattoo/tattoo_people.h @@ -74,6 +74,11 @@ enum TattooSequences { class TattooPerson: public Person { private: bool checkCollision() const; + + /** + * Free the alternate graphics used by NPCs + */ + void freeAltGraphics(); protected: /** * Get the source position for a character potentially affected by scaling @@ -113,6 +118,12 @@ public: void pushNPCPath(); /** + * Checks a sprite associated with an NPC to see if the frame sequence specified + * in the sequence number uses alternate graphics, and if so if they need to be loaded + */ + void checkWalkGraphics(); + + /** * This adjusts the sprites position, as well as it's animation sequence: */ virtual void adjustSprite(); @@ -127,6 +138,15 @@ public: * in a straight line */ virtual void setWalking(); + + /** + * Adjusts the frame and sequence variables of a sprite that corresponds to the current speaker + * so that it points to the beginning of the sequence number's talk sequence in the object's + * sequence buffer + * @param seq Which sequence to use (if there's more than 1) + * @remarks 1: First talk seq, 2: second talk seq, etc. + */ + virtual void setObjTalkSequence(int seq); }; class TattooPeople : public People { |