]> jfr.im git - irc/gameservirc.git/blob - gameserv/script.h
Added code for the start of the DataLayer format as well as a basic FilePlayerDAO...
[irc/gameservirc.git] / gameserv / script.h
1 #ifndef SCRIPT_H
2 #define SCRIPT_H
3
4 #include <string>
5
6 using namespace std;
7
8 class Player; // Forward declaration
9
10 class script
11 {
12 public:
13 script(); // Default constructor
14 script(string &str); // Copy constructor
15 script(const char *str); // Copy constructor
16
17 void setString(string &str);
18 void setString(const char *str);
19
20 bool executeScript(Player *p); // Run the script against a player
21 bool loadScript(const char *filename); // Load a script from a file - does not parse anything
22
23 ~script(); // Destructor
24 private:
25 string scriptstr;
26 };
27
28 #endif