#ifndef SCRIPT_H #define SCRIPT_H #include #include #include "Enums.h" #define filllines(lines) commands.insert(commands.end(), lines, lines + sizeof(lines)/sizeof(lines[0])) class scriptclass { public: scriptclass(); void load(std::string t); void loadother(std::string t); void inline add(std::string t) { commands.push_back(t); } void clearcustom(); void tokenize(std::string t); void run(); void resetgametomenu(); void startgamemode(int t); void teleport(); void hardreset(); void loadcustom(std::string t); //Script contents std::vector commands; std::vector words; std::vector txt; std::string scriptname; int position; int looppoint, loopcount; int scriptdelay; bool running; std::string tempword; std::string currentletter; //Textbox stuff int textx; int texty; int r,g,b; //Misc int i, j, k; //Custom level stuff std::vector customscript; }; extern scriptclass script; #endif /* SCRIPT_H */