12345678910111213141516171819202122232425262728293031323334353637
#ifndef __UOINTERFACE_H__ #define __UOINTERFACE_H__ #include <string> #include <fstream> #include <map> #include <SDL/SDL_keysym.h> #include "interfacegumps.h" class InterfaceObject { public: InterfaceObject(string &name); ~InterfaceObject(); GumpMain *getGump(); int numLines; string *lines; string name; }; class Interface { public: Interface(); ~Interface(); void loadDef(); GumpMain *getGump(string gump); private: bool readLine(string &line); ifstream deffile; char *defbuffer; long defptr,deflen; map<string,InterfaceObject *>objects; }; Sint16 myEval(string s,Sint16 w,Sint16 h); #endif