summaryrefslogtreecommitdiff
path: root/src/cat/TPTScriptInterface.h
blob: dea284e73679384d71b35f7cb433b92974120a2b (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
#ifndef TPTSCRIPTINTERFACE_H_
#define TPTSCRIPTINTERFACE_H_

#include "CommandInterface.h"
#include "TPTSTypes.h"

class TPTScriptInterface: public CommandInterface {
protected:
	AnyType eval(std::deque<std::string> * words);
	int parseNumber(char * stringData);
	AnyType tptS_set(std::deque<std::string> * words);
	AnyType tptS_create(std::deque<std::string> * words);
	AnyType tptS_delete(std::deque<std::string> * words);
	AnyType tptS_load(std::deque<std::string> * words);
	AnyType tptS_reset(std::deque<std::string> * words);
	AnyType tptS_bubble(std::deque<std::string> * words);
	AnyType tptS_quit(std::deque<std::string> * words);
	ValueType testType(std::string word);
public:
	TPTScriptInterface(GameController * c, GameModel * m);
	virtual void Tick() {}
	virtual int Command(std::string command);
	virtual std::string FormatCommand(std::string command);
	virtual ~TPTScriptInterface();
};

#endif /* TPTSCRIPTINTERFACE_H_ */