summaryrefslogtreecommitdiff
path: root/include/game.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-03-15 01:51:28 +0100
committerTreeki <treeki@gmail.com>2011-03-15 01:51:28 +0100
commitc73a4a4f79ae7974509b134cd3225307099a7900 (patch)
treeca5f9d0b4c8fd0966e74bdfb3bc864272fdb3d6f /include/game.h
parent793fc74bd957eea3930e30aae704e47adee5e015 (diff)
downloadkamek-c73a4a4f79ae7974509b134cd3225307099a7900.tar.gz
kamek-c73a4a4f79ae7974509b134cd3225307099a7900.zip
WorldMapData is now dWMPathData_c and loads its data from the resource manager
Diffstat (limited to 'include/game.h')
-rwxr-xr-xinclude/game.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/game.h b/include/game.h
index 6df656f..13e5be2 100755
--- a/include/game.h
+++ b/include/game.h
@@ -792,10 +792,13 @@ struct Tree {
typedef bool (*ChainedFunc)(void*);
-struct FunctionChain {
+class FunctionChain {
+public:
ChainedFunc *functions;
u16 count;
u16 current;
+
+ void setup(ChainedFunc *functions, u16 count); // 8015F740
};
@@ -876,7 +879,7 @@ public:
class dScene_c : public dBase_c {
public:
- FunctionChain *funcChain;
+ FunctionChain *ptrToInitChain;
dScene_c();
@@ -890,6 +893,11 @@ public:
int afterDraw();
~dScene_c();
+
+
+ void setInitChain(FunctionChain &initChain) {
+ ptrToInitChain = &initChain;
+ }
};
class dActor_c : public dBase_c {