SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
Character Class Reference

#include <Character.h>

Collaboration diagram for Character:
Collaboration graph

Public Member Functions

 Character ()
 
const QString & getName () const
 
void setName (const QString &val)
 
uint8_t getIndex () const
 
void setIndex (uint8_t val)
 
uint64_t getAccountId () const
 
void setAccountId (uint64_t val)
 
void reset ()
 
bool isEmpty ()
 
void serializefrom (BitStream &buffer)
 
void serializeto (BitStream &buffer) const
 
void serialize_costumes (BitStream &buffer, const ColorAndPartPacker *packer, bool all_costumes=true) const
 
void serializetoCharsel (BitStream &bs)
 
void GetCharBuildInfo (BitStream &src)
 
void SendCharBuildInfo (BitStream &bs) const
 
void recv_initial_costume (BitStream &src, const ColorAndPartPacker *packer)
 
const CharacterCostumegetCurrentCostume () const
 
void DumpSidekickInfo ()
 
void DumpPowerPoolInfo (const PowerPool_Info &pool_info)
 
void DumpBuildInfo ()
 
void face_bits (uint32_t)
 
void dump ()
 
void sendFullStats (BitStream &bs) const
 
void sendTray (BitStream &bs) const
 
void sendDescription (BitStream &bs) const
 
void sendTitles (BitStream &bs, NameFlag hasname, ConditionalFlag conditional) const
 
void sendFriendList (BitStream &bs) const
 

Public Attributes

Parse_CharAttrib m_current_attribs
 
Parse_CharAttrib m_max_attribs
 
LevelExpAndDebt m_other_attribs
 
CharacterData m_char_data
 
uint32_t m_account_id
 
uint32_t m_db_id
 

Protected Types

enum  CharBodyType {
  TYPE_MALE, TYPE_FEMALE, TYPE_UNUSED1, TYPE_UNUSED2,
  TYPE_HUGE, TYPE_NOARMS
}
 

Protected Member Functions

PowerPool_Info get_power_info (BitStream &src)
 

Protected Attributes

uint8_t m_index
 
QString m_name
 
bool m_villain
 
vCostume m_costumes
 
Costumem_sg_costume
 
uint32_t m_current_costume_idx
 
bool m_current_costume_set
 
uint32_t m_num_costumes
 
bool m_multiple_costumes
 

Friends

class CharacterDatabase
 
bool toActualCharacter (const struct GameAccountResponseCharacterData &src, Character &tgt, PlayerData &player)
 
bool fromActualCharacter (const Character &src, const PlayerData &player, GameAccountResponseCharacterData &tgt)
 

Member Enumeration Documentation

enum Character::CharBodyType
protected
Enumerator
TYPE_MALE 
TYPE_FEMALE 
TYPE_UNUSED1 
TYPE_UNUSED2 
TYPE_HUGE 
TYPE_NOARMS 

Member Function Documentation

void Character::face_bits ( uint32_t  )
inline
PowerPool_Info Character::get_power_info ( BitStream src)
protected
uint64_t Character::getAccountId ( ) const
inline

Here is the caller graph for this function:

uint8_t Character::getIndex ( ) const
inline
const QString& Character::getName ( ) const
inline

Here is the caller graph for this function:

void Character::serializefrom ( BitStream buffer)

Here is the caller graph for this function:

void Character::serializeto ( BitStream buffer) const

Here is the caller graph for this function:

void Character::setAccountId ( uint64_t  val)
inline
void Character::setIndex ( uint8_t  val)
inline

Friends And Related Function Documentation

friend class CharacterDatabase
friend
bool fromActualCharacter ( const Character src,
const PlayerData player,
GameAccountResponseCharacterData tgt 
)
friend
bool toActualCharacter ( const struct GameAccountResponseCharacterData src,
Character tgt,
PlayerData player 
)
friend

Member Data Documentation

uint32_t Character::m_account_id
CharacterData Character::m_char_data
vCostume Character::m_costumes
protected
Parse_CharAttrib Character::m_current_attribs
uint32_t Character::m_current_costume_idx
protected
bool Character::m_current_costume_set
protected
uint32_t Character::m_db_id
uint8_t Character::m_index
protected
Parse_CharAttrib Character::m_max_attribs
bool Character::m_multiple_costumes
protected
QString Character::m_name
protected
uint32_t Character::m_num_costumes
protected
LevelExpAndDebt Character::m_other_attribs
Costume* Character::m_sg_costume
protected
bool Character::m_villain
protected

The documentation for this class was generated from the following files: