summaryrefslogtreecommitdiff
path: root/src/cat/TPTScriptInterface.h
diff options
context:
space:
mode:
authorSimon 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)
commit7ae5eaab79a41f31b633ca6f1bfb0dbae2fccb90 (patch)
treeb76fc14cca5e19c5482209f34131973ad1f80e6a /src/cat/TPTScriptInterface.h
parent8024caec55ff1b93eefe50663d4ddf63934f8d63 (diff)
downloadpowder-7ae5eaab79a41f31b633ca6f1bfb0dbae2fccb90.zip
powder-7ae5eaab79a41f31b633ca6f1bfb0dbae2fccb90.tar.gz
Started intrepreter for tpt script and various things for console
Diffstat (limited to 'src/cat/TPTScriptInterface.h')
-rw-r--r--src/cat/TPTScriptInterface.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/cat/TPTScriptInterface.h b/src/cat/TPTScriptInterface.h
new file mode 100644
index 0000000..c1a61de
--- /dev/null
+++ b/src/cat/TPTScriptInterface.h
@@ -0,0 +1,27 @@
+/*
+ * TPTScriptInterface.h
+ *
+ * Created on: Feb 5, 2012
+ * Author: Simon
+ */
+
+#ifndef TPTSCRIPTINTERFACE_H_
+#define TPTSCRIPTINTERFACE_H_
+
+#include "CommandInterface.h"
+#include "TPTSTypes.h"
+
+class TPTScriptInterface: public CommandInterface {
+protected:
+ AnyType eval(std::deque<std::string> * words);
+ AnyType tptS_set(std::deque<std::string> * words);
+ ValueType testType(std::string word);
+public:
+ TPTScriptInterface();
+ virtual void Tick() {}
+ virtual int Command(std::string command);
+ virtual std::string FormatCommand(std::string command);
+ virtual ~TPTScriptInterface();
+};
+
+#endif /* TPTSCRIPTINTERFACE_H_ */