diff options
author | Treeki <treeki@gmail.com> | 2012-02-27 18:54:32 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2012-02-27 18:54:32 +0100 |
commit | 21d7e41b006b88aa79821610661fefc8fe14b7ca (patch) | |
tree | d9abd10293781666afc31fc4af5b6de503e2867c /src/koopatlas/mapdata.h | |
parent | e45c4a7a24a6a58804261d73c14f008bff1b5a68 (diff) | |
download | kamek-21d7e41b006b88aa79821610661fefc8fe14b7ca.tar.gz kamek-21d7e41b006b88aa79821610661fefc8fe14b7ca.zip |
switching between multiple maps
Diffstat (limited to 'src/koopatlas/mapdata.h')
-rw-r--r-- | src/koopatlas/mapdata.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/koopatlas/mapdata.h b/src/koopatlas/mapdata.h index e75925d..913c933 100644 --- a/src/koopatlas/mapdata.h +++ b/src/koopatlas/mapdata.h @@ -67,10 +67,17 @@ struct dKPNode_s { NodeTypes type; union { struct { u8 levelNumber[2]; }; - struct { char *destMap; u8 thisID, foreignID, transition; }; + struct { const char *destMap; u8 thisID, foreignID, transition; }; }; + dKPPath_s *getAnyExit() { + for (int i = 0; i < 4; i++) + if (exits[i]) + return exits[i]; + return 0; + } + dKPPath_s *getOppositeExitTo(dKPPath_s *path); }; |