#ifndef SCRIPT_H #define SCRIPT_H #include #include #include #define filllines(lines) commands.insert(commands.end(), lines, lines + SDL_arraysize(lines)) struct Script { std::string name; std::vector contents; }; class scriptclass { public: scriptclass(); void load(const std::string& name); void loadother(const char* t); void loadcustom(const std::string& t); void inline add(const std::string& t) { commands.push_back(t); } void clearcustom(); void tokenize(const std::string& t); void run(); void resetgametomenu(); void startgamemode(int t); void teleport(); void hardreset(); //Script contents std::vector commands; std::string words[40]; std::vector txt; std::string scriptname; int position; int looppoint, loopcount; int scriptdelay; bool running, dontrunnextframe; //Textbox stuff int textx; int texty; int r,g,b; //Misc int i, j, k; //Custom level stuff std::vector