diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-02-05 16:37:36 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-02-05 16:37:36 (GMT) |
| commit | 7ae5eaab79a41f31b633ca6f1bfb0dbae2fccb90 (patch) | |
| tree | b76fc14cca5e19c5482209f34131973ad1f80e6a /src/cat/CommandInterface.h | |
| parent | 8024caec55ff1b93eefe50663d4ddf63934f8d63 (diff) | |
| download | powder-7ae5eaab79a41f31b633ca6f1bfb0dbae2fccb90.zip powder-7ae5eaab79a41f31b633ca6f1bfb0dbae2fccb90.tar.gz | |
Started intrepreter for tpt script and various things for console
Diffstat (limited to 'src/cat/CommandInterface.h')
| -rw-r--r-- | src/cat/CommandInterface.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/cat/CommandInterface.h b/src/cat/CommandInterface.h new file mode 100644 index 0000000..4f25600 --- /dev/null +++ b/src/cat/CommandInterface.h @@ -0,0 +1,32 @@ +/* + * Kitty.h + * + * Created on: Feb 2, 2012 + * Author: Simon + */ + +#ifndef KITTY_H_ +#define KITTY_H_ + +#include <string> +//#include "game/GameModel.h" + +class GameModel; +class CommandInterface { +protected: + enum FormatType { FormatInt, FormatString, FormatChar, FormatFloat }; + std::string lastError; + GameModel * m; +public: + CommandInterface(); + int GetPropertyOffset(std::string key_, FormatType & format); + int GetParticleType(std::string type); + void AttachGameModel(GameModel * m); + virtual void Tick() {} + virtual int Command(std::string command); + virtual std::string FormatCommand(std::string command); + std::string GetLastError(); + virtual ~CommandInterface(); +}; + +#endif /* KITTY_H_ */ |
