63 if (character ==
nullptr)
80 const STD_VECTOR<int> &stats)
const
83 outMsg.writeString(name, 24,
"name");
84 for (
int i = 0; i < 6; i++)
85 outMsg.writeInt8(
CAST_U8(stats[i]),
"stat");
87 outMsg.writeInt8(
CAST_U8(slot),
"slot");
88 outMsg.writeInt8(
CAST_S8(hairColor),
"hair color");
89 outMsg.writeInt8(0,
"unused");
90 outMsg.writeInt8(
CAST_S8(hairstyle),
"hair style");
91 outMsg.writeInt8(0,
"unused");
98 if (character ==
nullptr)
112 outMsg.writeInt8(1,
"flag");
126 outMsg.writeBeingId(token.
account_ID,
"account id");
127 outMsg.writeInt32(token.
session_ID1,
"session id1");
128 outMsg.writeInt32(token.
session_ID2,
"session id2");
132 "client protocol version");
149 attributes.push_back(
_(
"Strength:"));
151 attributes.push_back(
_(
"Agility:"));
153 attributes.push_back(
_(
"Vitality:"));
155 attributes.push_back(
_(
"Intelligence:"));
157 attributes.push_back(
_(
"Dexterity:"));
159 attributes.push_back(
_(
"Luck:"));
178 const std::string &newName
A_UNUSED)
Net::CharServerHandler * charServerHandler
static uint8_t genderToInt(const GenderT sex) A_CONST
void setDefaultGender(const GenderT gender)
void setAttributes(const StringVect &labels, int available, const int min, const int max)
bool connect(const ServerInfo &server)
static Net::Character * mSelectedCharacter
static CharSelectDialog * mCharSelectDialog
static CharCreateDialog * mCharCreateDialog
void changeSlot(const int oldSlot, const int newSlot) const
void switchCharacter() const
void setCharCreateDialog(CharCreateDialog *const window) const
void chooseCharacter(Net::Character *const character) const
unsigned int hatSprite() const A_CONST
void renameCharacter(const BeingId id, const std::string &newName) const
void newCharacter(const std::string &name, const int slot, const GenderT gender, const int hairstyle, const int hairColor, const unsigned char race, const uint16_t look, const std::vector< int > &stats) const
void deleteCharacter(Net::Character *const character, const std::string &email) const
static Network * mInstance
#define CLIENT_PROTOCOL_VERSION
Net::LoginHandler * loginHandler
#define createOutPacket(name)
std::vector< std::string > StringVect