diff options
author | Paul Gilbert | 2015-03-21 11:24:35 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-03-21 11:24:35 -0400 |
commit | b6076dd52458320f39442bc225ef8b0ce531ea51 (patch) | |
tree | dd8ac2cc125e2fe43ea431437b55c8df37160fad /engines/sherlock/objects.h | |
parent | 06fbefc7875b37dd531b65c42087e4e6782c03a6 (diff) | |
download | scummvm-rg350-b6076dd52458320f39442bc225ef8b0ce531ea51.tar.gz scummvm-rg350-b6076dd52458320f39442bc225ef8b0ce531ea51.tar.bz2 scummvm-rg350-b6076dd52458320f39442bc225ef8b0ce531ea51.zip |
SHERLOCK: Implemented setWalking
Diffstat (limited to 'engines/sherlock/objects.h')
-rw-r--r-- | engines/sherlock/objects.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/sherlock/objects.h b/engines/sherlock/objects.h index a1bdc5933c..b1207867e4 100644 --- a/engines/sherlock/objects.h +++ b/engines/sherlock/objects.h @@ -74,7 +74,10 @@ enum AType { #define FLIP_CODE (64 + 128) #define SOUND_CODE (34 + 128) -struct Sprite { +class Sprite { +private: + static SherlockEngine *_vm; +public: Common::String _name; // Name Common::String _description; // Description Common::StringArray _examine; // Examine in-depth description @@ -88,7 +91,7 @@ struct Sprite { int _frameNumber; // Frame number in rame sequence to draw int _sequenceNumber; // Sequence being used Common::Point _position; // Current position - Common::Point _movement; // Momvement amount + Common::Point _delta; // Momvement delta Common::Point _oldPosition; // Old position Common::Point _oldSize; // Image's old size Common::Point _goto; // Walk destination @@ -98,18 +101,15 @@ struct Sprite { int _status; // Status: open/closed, moved/not moved int8 _misc; // Miscellaneous use int _numFrames; // How many frames the object has - +public: Sprite() { clear(); } - + static void setVm(SherlockEngine *vm) { _vm = vm; } + void clear(); void setImageFrame(); - void adjustSprite(bool onChessboard = false); - - void gotoStand(); - - void setWalking(); + void adjustSprite(); }; struct ActionType { |