summaryrefslogtreecommitdiff
path: root/src/koopatlas/mapdata.cpp
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2012-07-22 17:19:41 -0500
committerColin Noga <Tempus@chronometry.ca>2012-07-22 17:19:41 -0500
commit53116b7ae344edd0ed421a466fd6ae732c2d82d8 (patch)
treef582b24e4fa8a38f3c3a03f08f1068fbd6251556 /src/koopatlas/mapdata.cpp
parenta37e9d8030a5274072cc085db74e463eb4be0a73 (diff)
downloadkamek-53116b7ae344edd0ed421a466fd6ae732c2d82d8.tar.gz
kamek-53116b7ae344edd0ed421a466fd6ae732c2d82d8.zip
Lots of world map path rendering and movement implementations and fixes.
Diffstat (limited to '')
-rw-r--r--src/koopatlas/mapdata.cpp32
1 files changed, 8 insertions, 24 deletions
diff --git a/src/koopatlas/mapdata.cpp b/src/koopatlas/mapdata.cpp
index 1fb8eb6..826d478 100644
--- a/src/koopatlas/mapdata.cpp
+++ b/src/koopatlas/mapdata.cpp
@@ -13,6 +13,14 @@ dKPPath_s *dKPNode_s::getOppositeExitTo(dKPPath_s *path) {
return 0;
}
+bool dKPNode_s::isUnlocked() {
+ for (int i = 0; i < 4; i++)
+ if (exits[i])
+ if (exits[i])
+ return true;
+ return false;
+}
+
int dKPLayer_s::findNodeID(dKPNode_s *node) {
for (int i = 0; i < nodeCount; i++)
@@ -22,10 +30,6 @@ int dKPLayer_s::findNodeID(dKPNode_s *node) {
return -1;
}
-
-
-
-
dKPMapData_c::dKPMapData_c() {
data = 0;
fixedUp = false;
@@ -144,26 +148,6 @@ void dKPMapData_c::fixup() {
if (node->type == dKPNode_s::CHANGE)
fixRef(node->destMap);
- // FORWARDS COMPATIBILITY:
- // else if (node->type == dKPNode_s::LEVEL) {
- // break;
-
- // node->allocator.link(-1, GameHeaps[0], 0, 0x20);
-
- // nw4r::g3d::ResFile rf(nodeLoader.buffer);
- // rf.CheckRevision();
- // rf.Init();
- // rf.Bind(rf);
-
- // nw4r::g3d::ResMdl mdl = rf.GetResMdl("cobCourse");
- // nw4r::g3d::ResAnmVis anmRes = rf.GetResAnmVis("cobCourse");
-
- // node->model.setup(mdl, &node->allocator, 0x224, 1, 0);
- // node->color.setup(mdl, anmRes, &node->allocator, 0);
- // node->color.bind(&node->model, anmRes, 0);
- // node->model.bindAnim(&node->color, 0.0f);
- // SetupTextures_MapObj(&node->model, 0);
- // }
}
break;
}