mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
PINK: More debug output of Objects attributes
This commit is contained in:
parent
113540b930
commit
c87a392e16
@ -20,7 +20,16 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "action_hide.h"
|
||||||
|
#include <engines/pink/archive.h>
|
||||||
|
#include <common/debug.h>
|
||||||
|
|
||||||
|
|
||||||
namespace Pink {
|
namespace Pink {
|
||||||
|
|
||||||
|
void Pink::ActionHide::deserialize(Archive &archive) {
|
||||||
|
Action::deserialize(archive);
|
||||||
|
debug("\tActionHide: _name = %s", _name.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
} //End of namespace Pink
|
} //End of namespace Pink
|
@ -28,7 +28,10 @@
|
|||||||
namespace Pink {
|
namespace Pink {
|
||||||
|
|
||||||
class ActionHide : public Action {
|
class ActionHide : public Action {
|
||||||
|
public:
|
||||||
|
virtual void deserialize(Archive &archive);
|
||||||
|
|
||||||
|
public:
|
||||||
};
|
};
|
||||||
|
|
||||||
} //End of namespace Pink
|
} //End of namespace Pink
|
||||||
|
@ -20,14 +20,20 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <common/debug.h>
|
||||||
#include "action_still.h"
|
#include "action_still.h"
|
||||||
#include "../archive.h"
|
#include "../archive.h"
|
||||||
|
#include "action_play.h"
|
||||||
|
|
||||||
namespace Pink {
|
namespace Pink {
|
||||||
|
|
||||||
void ActionStill::deserialize(Archive &archive) {
|
void ActionStill::deserialize(Archive &archive) {
|
||||||
ActionCEL::deserialize(archive);
|
ActionCEL::deserialize(archive);
|
||||||
archive >> _startFrame;
|
archive >> _startFrame;
|
||||||
|
if (!dynamic_cast<ActionPlay*>(this)){
|
||||||
|
debug("\tActionStill: _name = %s, _fileName = %s, _startFrame = %u",
|
||||||
|
_name.c_str(), _fileName.c_str(), _startFrame);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // End of namespace Pink
|
} // End of namespace Pink
|
@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <common/debug.h>
|
||||||
#include "sequence_item.h"
|
#include "sequence_item.h"
|
||||||
#include "../archive.h"
|
#include "../archive.h"
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ class SequenceItem : public Object {
|
|||||||
public:
|
public:
|
||||||
virtual void deserialize(Archive &archive);
|
virtual void deserialize(Archive &archive);
|
||||||
|
|
||||||
private:
|
protected:
|
||||||
Common::String _actor;
|
Common::String _actor;
|
||||||
Common::String _action;
|
Common::String _action;
|
||||||
};
|
};
|
||||||
|
@ -20,6 +20,16 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <engines/pink/archive.h>
|
||||||
|
#include <common/debug.h>
|
||||||
|
#include "sequence_item_default_action.h"
|
||||||
|
|
||||||
namespace Pink {
|
namespace Pink {
|
||||||
|
|
||||||
|
void Pink::SequenceItemDefaultAction::deserialize(Archive &archive) {
|
||||||
|
SequenceItem::deserialize(archive);
|
||||||
|
debug("\t\tSequenceItemDefaultAction: _actor = %s, _action = %s",
|
||||||
|
_actor.c_str(), _action.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
} // End of namespace Pink
|
} // End of namespace Pink
|
@ -28,7 +28,8 @@
|
|||||||
namespace Pink {
|
namespace Pink {
|
||||||
|
|
||||||
class SequenceItemDefaultAction : public SequenceItem {
|
class SequenceItemDefaultAction : public SequenceItem {
|
||||||
|
public:
|
||||||
|
virtual void deserialize(Archive &archive);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End of namespace Pink
|
} // End of namespace Pink
|
||||||
|
@ -20,7 +20,17 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <engines/pink/archive.h>
|
||||||
|
#include <common/debug.h>
|
||||||
|
#include "sequence_item_leader.h"
|
||||||
|
|
||||||
namespace Pink {
|
namespace Pink {
|
||||||
|
|
||||||
|
|
||||||
|
void Pink::SequenceItemLeader::deserialize(Archive &archive) {
|
||||||
|
SequenceItem::deserialize(archive);
|
||||||
|
debug("\t\tSequenceItemLeader: _actor = %s, _action = %s",
|
||||||
|
_actor.c_str(), _action.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
} //End of namespace Pink
|
} //End of namespace Pink
|
@ -29,6 +29,7 @@ namespace Pink {
|
|||||||
|
|
||||||
class SequenceItemLeader : public SequenceItem {
|
class SequenceItemLeader : public SequenceItem {
|
||||||
public:
|
public:
|
||||||
|
virtual void deserialize(Archive &archive);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
};
|
};
|
||||||
|
@ -61,6 +61,13 @@ void GamePage::init(bool isLoadingSave) {
|
|||||||
//assert(perhapsIsLoaded == 0);
|
//assert(perhapsIsLoaded == 0);
|
||||||
loadFields();
|
loadFields();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//init actor which inits actions
|
||||||
|
|
||||||
|
if (!isLoadingSave) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GamePage::loadFields() {
|
void GamePage::loadFields() {
|
||||||
|
@ -110,6 +110,7 @@ Common::Error Pink::PinkEngine::run() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//update();
|
//update();
|
||||||
|
|
||||||
g_system->updateScreen();
|
g_system->updateScreen();
|
||||||
g_system->delayMillis(10);
|
g_system->delayMillis(10);
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <common/debug.h>
|
||||||
#include "sequence.h"
|
#include "sequence.h"
|
||||||
#include "sequencer.h"
|
#include "sequencer.h"
|
||||||
#include "../archive.h"
|
#include "../archive.h"
|
||||||
@ -28,6 +29,7 @@ namespace Pink {
|
|||||||
|
|
||||||
void Sequence::deserialize(Archive &archive) {
|
void Sequence::deserialize(Archive &archive) {
|
||||||
NamedObject::deserialize(archive);
|
NamedObject::deserialize(archive);
|
||||||
|
debug("\tSequence %s", _name.c_str());
|
||||||
_sequencer = static_cast<Sequencer*>(archive.readObject());
|
_sequencer = static_cast<Sequencer*>(archive.readObject());
|
||||||
archive >> _items;
|
archive >> _items;
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <common/debug.h>
|
||||||
#include "sequencer.h"
|
#include "sequencer.h"
|
||||||
#include "engines/pink/archive.h"
|
#include "engines/pink/archive.h"
|
||||||
|
|
||||||
@ -31,6 +32,7 @@ Sequencer::Sequencer(GamePage *page)
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
void Sequencer::deserialize(Archive &archive) {
|
void Sequencer::deserialize(Archive &archive) {
|
||||||
|
debug("Sequencer:");
|
||||||
archive >> _sequences;
|
archive >> _sequences;
|
||||||
archive.readCount();// intro have 0 timers;
|
archive.readCount();// intro have 0 timers;
|
||||||
//serialize timers;
|
//serialize timers;
|
||||||
|
Loading…
Reference in New Issue
Block a user