12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
#ifndef __ACTION_H__ #define __ACTION_H__ #include <string> #include <list> #include <map> #include <SDL/SDL_types.h> class Profession { public: Profession(); ~Profession(); string name; Uint16 desc,gump,str,dex,intl; bool topLevel,category; list<string> children; list<Uint8> skills,skillVals; }; class Action { public: Action(); ~Action(); void signOn(string &username,string &password); void signOff(); void selectServer(Uint8 server); void selectCharacter(Uint8 chr); // create character callbacks void createCharacter(Uint8 chr); void selectHair(Uint8 hair); void selectBeard(Uint8 beard); void selectSkinHue(Uint16 hue); void selectHairHue(Uint16 hue); void selectBeardHue(Uint16 hue); void selectShirtHue(Uint16 hue); void selectPantHue(Uint16 hue); void selectName(string &name); void selectProfession(Uint8 prof); void showAdvanced(); void loadProfessions(); private: Uint8 createData[104]; Uint8 walkDir; Uint8 walkSeq; map<string,Profession *>professions; }; #endif