| 1 |
#ifndef HEADER_PLANNER_H |
| 2 |
#define HEADER_PLANNER_H |
| 3 |
|
| 4 |
class Path; |
| 5 |
class CommandQueue; |
| 6 |
class DialogStack; |
| 7 |
|
| 8 |
#include "Scripter.h" |
| 9 |
|
| 10 |
#include "SDL.h" |
| 11 |
#include <string> |
| 12 |
|
| 13 |
/** |
| 14 |
* Action planner. |
| 15 |
*/ |
| 16 |
class Planner : public Scripter { |
| 17 |
private: |
| 18 |
CommandQueue *m_plan; |
| 19 |
DialogStack *m_dialogs; |
| 20 |
private: |
| 21 |
void registerScriptFuncs(); |
| 22 |
public: |
| 23 |
Planner(); |
| 24 |
virtual ~Planner(); |
| 25 |
|
| 26 |
bool satisfyPlan(); |
| 27 |
void killPlan(); |
| 28 |
virtual void interruptPlan(); |
| 29 |
|
| 30 |
void planAction(int funcRef); |
| 31 |
bool isPlanning() const; |
| 32 |
DialogStack *dialogs() { return m_dialogs; } |
| 33 |
}; |
| 34 |
|
| 35 |
#endif |