summaryrefslogtreecommitdiff
path: root/src/koopatlas/pathmanager.h
blob: c5a642c0d64f7468de608645cc10625310140725 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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

		bool mustComplainToMapCreator;
};

#endif