From 57577aa4c163b01572b21914defe34e7ee24104b Mon Sep 17 00:00:00 2001 From: Treeki Date: Tue, 24 Jul 2012 15:55:13 +0200 Subject: parts of the new unlock system, still got to wrap up some stuff --- src/koopatlas/pathmanager.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/koopatlas/pathmanager.h') diff --git a/src/koopatlas/pathmanager.h b/src/koopatlas/pathmanager.h index 969bdb2..5d35f4c 100644 --- a/src/koopatlas/pathmanager.h +++ b/src/koopatlas/pathmanager.h @@ -10,6 +10,7 @@ extern "C" bool SpawnEffect(const char*, int, Vec*, S16Vec*, Vec*); class dWMPathManager_c { public: void setup(); + ~dWMPathManager_c(); void execute(); bool canUseExit(dKPPath_s *path) { @@ -36,6 +37,12 @@ class dWMPathManager_c { bool reverseThroughPath; // direction we are going through the path bool mustComplainToMapCreator; + + private: + void unlockPaths(); + bool evaluateUnlockCondition(u8 *&in, SaveBlock *save); + + bool isEnteringLevel; }; #endif -- cgit v1.2.3 From 6895c831ad320c14b01ccabe1c8adcec354e3f9f Mon Sep 17 00:00:00 2001 From: Treeki Date: Wed, 25 Jul 2012 14:10:39 +0200 Subject: lots more work completed, basic unlocks working --- src/koopatlas/pathmanager.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/koopatlas/pathmanager.h') diff --git a/src/koopatlas/pathmanager.h b/src/koopatlas/pathmanager.h index 5d35f4c..2ce0e9c 100644 --- a/src/koopatlas/pathmanager.h +++ b/src/koopatlas/pathmanager.h @@ -14,6 +14,8 @@ class dWMPathManager_c { void execute(); bool canUseExit(dKPPath_s *path) { + OSReport("Checking usability of path %p\n", path); + if (path) OSReport("Availability: %d\n", path->isAvailable); return (path != 0) && (path->isAvailable); } @@ -38,6 +40,12 @@ class dWMPathManager_c { bool mustComplainToMapCreator; + int newlyAvailablePaths; + int newlyAvailableNodes; + + int unlockingAlpha; // -1 if not used + int countdownToFadeIn; + private: void unlockPaths(); bool evaluateUnlockCondition(u8 *&in, SaveBlock *save); -- cgit v1.2.3