summaryrefslogtreecommitdiff
path: root/src/cat/CommandInterface.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-09-01 17:13:13 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-09-01 17:13:13 (GMT)
commitba55da77a9dd2ed4fd7ce87adb2fc6622d130238 (patch)
tree47df5e24377886ad55095694fa39d01529db7fe4 /src/cat/CommandInterface.h
parent618e29d5d487a2215628b5cf70ccc72462878201 (diff)
downloadpowder-ba55da77a9dd2ed4fd7ce87adb2fc6622d130238.zip
powder-ba55da77a9dd2ed4fd7ce87adb2fc6622d130238.tar.gz
!load command for old console
Diffstat (limited to 'src/cat/CommandInterface.h')
-rw-r--r--src/cat/CommandInterface.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cat/CommandInterface.h b/src/cat/CommandInterface.h
index e89632e..e6119d3 100644
--- a/src/cat/CommandInterface.h
+++ b/src/cat/CommandInterface.h
@@ -13,14 +13,16 @@
//#include "game/GameModel.h"
class GameModel;
+class GameController;
class CommandInterface {
protected:
std::string lastError;
GameModel * m;
+ GameController * c;
public:
enum LogType { LogError, LogWarning, LogNotice };
enum FormatType { FormatInt, FormatString, FormatChar, FormatFloat };
- CommandInterface(GameModel * m);
+ CommandInterface(GameController * c, GameModel * m);
int GetPropertyOffset(std::string key_, FormatType & format);
int GetParticleType(std::string type);
void Log(LogType type, std::string message);