aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/pink.h
diff options
context:
space:
mode:
authorwhitertandrek2018-03-17 17:36:18 +0200
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commit5d1c4af5f6b1f197eb4c3af7dbc05b591047406d (patch)
tree9e30e98fc569aaf17ce97259ef7bf2255a07927a /engines/pink/pink.h
parentd058e5dfe6b146373ce89c5710b6e723de687da5 (diff)
downloadscummvm-rg350-5d1c4af5f6b1f197eb4c3af7dbc05b591047406d.tar.gz
scummvm-rg350-5d1c4af5f6b1f197eb4c3af7dbc05b591047406d.tar.bz2
scummvm-rg350-5d1c4af5f6b1f197eb4c3af7dbc05b591047406d.zip
PINK: Implemented MFC archive, some pink objects and their initialization
Thanks fullpipe engine developer for MFC archive
Diffstat (limited to 'engines/pink/pink.h')
-rw-r--r--engines/pink/pink.h34
1 files changed, 26 insertions, 8 deletions
diff --git a/engines/pink/pink.h b/engines/pink/pink.h
index 7f9d39ea6b..4aa691831e 100644
--- a/engines/pink/pink.h
+++ b/engines/pink/pink.h
@@ -23,11 +23,13 @@
#ifndef PINK_PINK_H
#define PINK_PINK_H
+#include <engines/pink/objects/named_object.h>
#include "common/random.h"
#include "engines/engine.h"
#include "gui/EventRecorder.h"
#include "gui/debugger.h"
#include "file.h"
+#include "utils.h"
/*
@@ -35,7 +37,7 @@
*
* Status of this engine: In Development
*
- * Internal name of original name: OxCart Runtime
+ * Internal name of original engine: OxCart Runtime
*
* Games using this engine:
* - The Pink Panther: Passport to Peril
@@ -45,27 +47,40 @@
namespace Pink {
class Console;
+class Archive;
+class Module;
enum {
kPinkDebugGeneral = 1 << 0,
- kPinkDebugLoading = 1 << 1,
- kPinkDebugSound = 1 << 2
+ kPinkDebugLoadingResources = 1 << 1,
+ kPinkDebugLoadingObjects = 1 << 2,
+ kPinkDebugGraphics = 1 << 3,
+ kPinkDebugSound = 1 << 4
};
-class PinkEngine : public Engine {
+enum {
+ LoadingSave = 1,
+ LoadingNotSave = 0
+};
+
+class PinkEngine : public Engine {
public:
PinkEngine(OSystem *system, const ADGameDescription *desc);
-
~PinkEngine();
virtual Common::Error run();
+ void load(Archive &archive);
+
+ void initModule();
+ void setNextExecutors(const Common::String &nextModule, const Common::String &nextPage);
+
+ OrbFile *getOrb() { return &_orb; }
+ BroFile *getBro() { return _bro; }
private:
Common::Error init();
-
- void handleEvent(Common::Event &event);
- void update();
+ void changeProxyToModule(int index);
Console *_console;
Common::RandomSource _rnd;
@@ -76,6 +91,9 @@ private:
OrbFile _orb;
BroFile *_bro;
+ Module *_module;
+ ModulesArray _modules;
+
const ADGameDescription _desc;
};