diff options
author | whitertandrek | 2018-03-18 19:05:31 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
commit | 113540b930589242859ec8367ccf2a7af4a2fa21 (patch) | |
tree | 90afedadbce8c5e87329a1f99e05b5f923f8bd4e /engines/pink/actions | |
parent | f62132c4f3738ce24fa3cf0e449417baeb2e86fe (diff) | |
download | scummvm-rg350-113540b930589242859ec8367ccf2a7af4a2fa21.tar.gz scummvm-rg350-113540b930589242859ec8367ccf2a7af4a2fa21.tar.bz2 scummvm-rg350-113540b930589242859ec8367ccf2a7af4a2fa21.zip |
PINK: Implemented debug output of Objects
Diffstat (limited to 'engines/pink/actions')
-rw-r--r-- | engines/pink/actions/action.h | 2 | ||||
-rw-r--r-- | engines/pink/actions/action_cel.h | 2 | ||||
-rw-r--r-- | engines/pink/actions/action_play.cpp | 3 | ||||
-rw-r--r-- | engines/pink/actions/action_sound.cpp | 3 | ||||
-rw-r--r-- | engines/pink/actions/action_still.h | 2 |
5 files changed, 9 insertions, 3 deletions
diff --git a/engines/pink/actions/action.h b/engines/pink/actions/action.h index 3d7130309d..5608b99232 100644 --- a/engines/pink/actions/action.h +++ b/engines/pink/actions/action.h @@ -33,7 +33,7 @@ class Action : public NamedObject { public: virtual void deserialize(Archive &archive); -private: +protected: Actor *_actor; }; diff --git a/engines/pink/actions/action_cel.h b/engines/pink/actions/action_cel.h index 346b9d21d6..ca481f7747 100644 --- a/engines/pink/actions/action_cel.h +++ b/engines/pink/actions/action_cel.h @@ -31,7 +31,7 @@ class ActionCEL : public Action { public: virtual void deserialize(Archive &archive); -private: +protected: Common::String _fileName; uint32 _z; // Z coordinate for sprite }; diff --git a/engines/pink/actions/action_play.cpp b/engines/pink/actions/action_play.cpp index d31775db1a..9dc2ef479a 100644 --- a/engines/pink/actions/action_play.cpp +++ b/engines/pink/actions/action_play.cpp @@ -20,6 +20,7 @@ * */ +#include <common/debug.h> #include "action_play.h" #include "../archive.h" @@ -28,6 +29,8 @@ namespace Pink { void ActionPlay::deserialize(Archive &archive) { ActionStill::deserialize(archive); archive >> _stopFrame; + debug("\tActionPlay: _name = %s, _fileName = %s, z = %u, _startFrame = %u," + " _endFrame = %u", _name.c_str(), _fileName.c_str(), _z, _startFrame, _stopFrame); } } // End of namespace Pink diff --git a/engines/pink/actions/action_sound.cpp b/engines/pink/actions/action_sound.cpp index b5e5c5e9e4..ee85689d4f 100644 --- a/engines/pink/actions/action_sound.cpp +++ b/engines/pink/actions/action_sound.cpp @@ -20,6 +20,7 @@ * */ +#include <common/debug.h> #include "action_sound.h" #include "../archive.h" @@ -31,6 +32,8 @@ void ActionSound::deserialize(Archive &archive) { _volume = archive.readDWORD(); _isLoop = (bool) archive.readDWORD(); _isBackground = (bool) archive.readDWORD(); + debug("\tActionSound: _name = %s, _fileName = %s, _volume = %u, _isLoop = %u," + " _isBackground = %u", _name.c_str(), _fileName.c_str(), _volume, _isLoop, _isBackground); } } // End of namespace Pink
\ No newline at end of file diff --git a/engines/pink/actions/action_still.h b/engines/pink/actions/action_still.h index 9d6c7be9d0..1400766a91 100644 --- a/engines/pink/actions/action_still.h +++ b/engines/pink/actions/action_still.h @@ -31,7 +31,7 @@ class ActionStill : public ActionCEL { public: virtual void deserialize(Archive &archive); -private: +protected: uint32 _startFrame; }; |