summaryrefslogtreecommitdiff
path: root/src/koopatlas/pathmanager.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-01-17 00:40:00 +0100
committerTreeki <treeki@gmail.com>2012-01-17 00:40:00 +0100
commitbb5d7f7e737e318d095d23939b7d288eaf5f9e63 (patch)
treeec41984cd10376e7fec2b24e22b1b695c3692b36 /src/koopatlas/pathmanager.h
parent28efd888af3ffe227565683e2cd2960ea5b52f61 (diff)
downloadkamek-bb5d7f7e737e318d095d23939b7d288eaf5f9e63.tar.gz
kamek-bb5d7f7e737e318d095d23939b7d288eaf5f9e63.zip
added path support and the new API LevelInfo
Diffstat (limited to 'src/koopatlas/pathmanager.h')
-rw-r--r--src/koopatlas/pathmanager.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/koopatlas/pathmanager.h b/src/koopatlas/pathmanager.h
new file mode 100644
index 0000000..3ddcf58
--- /dev/null
+++ b/src/koopatlas/pathmanager.h
@@ -0,0 +1,29 @@
+#ifndef __KOOPATLAS_PATH_MANAGER_H
+#define __KOOPATLAS_PATH_MANAGER_H
+
+#include "koopatlas/mapdata.h"
+
+class dWMPathManager_c {
+ public:
+ void setup();
+ void execute();
+
+ bool canUseExit(dKPPath_s *path) {
+ return (path != 0) && (path->isAvailable);
+ }
+
+ void startMovementTo(dKPPath_s *path);
+ void moveThroughPath();
+ void activatePoint();
+
+ dKPLayer_s *pathLayer;
+
+ bool isMoving;
+ dKPNode_s *currentNode;
+
+ dKPPath_s *currentPath;
+ bool reverseThroughPath; // direction we are going through the path
+};
+
+#endif
+