From 5dc79a8f3272f8e5c9131fac925d4533a25ab4d9 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 12 Jun 2015 22:20:28 -0400 Subject: SHERLOCK: RT: Implement animation structure changes --- engines/sherlock/objects.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'engines/sherlock/objects.h') diff --git a/engines/sherlock/objects.h b/engines/sherlock/objects.h index a22606bcb3..6035bb4ee6 100644 --- a/engines/sherlock/objects.h +++ b/engines/sherlock/objects.h @@ -433,15 +433,21 @@ public: void setObjTalkSequence(int seq); }; + +class PositionFacing : public Point32 { +public: + int _facing; + + PositionFacing() : Point32(), _facing(0) {} +}; + struct CAnim { Common::String _name; // Name Common::Point _position; // Position int _size; // Size of uncompressed animation int _flags; // Tells if can be walked behind - Point32 _goto; // coords holmes should walk to before starting canim - int _gotoDir; - Point32 _teleportPos; // Location Holmes shoul teleport to after - int _teleportDir; // playing canim + PositionFacing _goto[2]; // Position Holmes (and NPC in Rose Tattoo) should walk to before anim starts + PositionFacing _teleport[2]; // Location Holmes (and NPC) shoul teleport to after playing canim // Scalpel specific byte _sequences[MAX_FRAME]; // Animation sequences -- cgit v1.2.3