SEGS  0.4.2
Super Entity Game Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros | Functions | Variables
Projects/CoX/Common/NetStructures

Classes

struct  bintree_in
 

Macros

#define _USE_MATH_DEFINES
 
#define WORLD_UPDATE_TICKS_PER_SECOND   30
 

Functions

void serializeStats (const Parse_CharAttrib &src, BitStream &bs, bool)
 
void serializeFullStats (const Parse_CharAttrib &src, BitStream &bs, bool)
 
void serializeLevelsStats (const Character &src, BitStream &bs, bool)
 
void serializeStats (const Character &src, BitStream &bs, bool sendAbsolute)
 
void serializeFullStats (const Character &src, BitStream &bs, bool sendAbsolute)
 
void toActualCostume (const GameAccountResponseCostumeData &src, Costume &tgt)
 
void fromActualCostume (const Costume &src, GameAccountResponseCostumeData &tgt)
 
bool toActualCharacter (const GameAccountResponseCharacterData &src, Character &tgt, PlayerData &player)
 
bool fromActualCharacter (const Character &src, const PlayerData &player, GameAccountResponseCharacterData &tgt)
 
void storeBitsConditional (BitStream &bs, uint8_t numbits, int bits)
 
int getBitsConditional (BitStream &bs, uint32_t numbits)
 
void storePackedBitsConditional (BitStream &bs, uint8_t numbits, int bits)
 
void storeVector (BitStream &bs, glm::vec3 &vec)
 
void storeVectorConditional (BitStream &bs, glm::vec3 &vec)
 
void storeFloatConditional (BitStream &bs, float val)
 
void storeFloatPacked (BitStream &bs, float val)
 
int getPackedBitsConditional (BitStream &bs, uint8_t numbits)
 
void storeStringConditional (BitStream &bs, const QString &str)
 
void storeTransformMatrix (BitStream &tgt, const glm::mat4x3 &src)
 
void storeTransformMatrix (BitStream &tgt, const TransformStruct &src)
 
void getTransformMatrix (BitStream &bs, glm::mat4x3 &src)
 
void serializeto (const CostumePart &part, BitStream &bs, const ColorAndPartPacker *packingContext)
 
void serializefrom (CostumePart &part, BitStream &bs, const ColorAndPartPacker *packingContext)
 
template<class Archive >
void serialize (Archive &arc, CostumePart &cp)
 
template<class Archive >
void serialize (Archive &arc, Costume &c)
 
void serializeto (const Costume &costume, BitStream &bs, const ColorAndPartPacker *packer)
 
void serializefrom (Costume &tgt, BitStream &src, const ColorAndPartPacker *packer)
 
void fillEntityFromNewCharData (Entity &e, BitStream &src, const ColorAndPartPacker *packer, const Parse_AllKeyProfiles &default_profiles)
 
void abortLogout (Entity *e)
 
void initializeNewPlayerEntity (Entity &e)
 
void initializeNewNpcEntity (Entity &e, const Parse_NPC *src, int idx, int variant)
 
void markEntityForDbStore (Entity *e, DbStoreFlags f)
 
void addFriend (Entity &src, Entity &tgt)
 
void removeFriend (Entity &src, Entity &tgt)
 
bool isFriendOnline (Entity &src, uint32_t db_id)
 
void toggleFriendList (Entity &src)
 
void dumpFriends (const Entity &src)
 
void dumpFriendsList (const Friend &f)
 
void addLFG (Entity &src)
 
void removeLFG (Entity &tgt)
 
void findTeamMember (Entity &tgt)
 
void dumpLFGList ()
 
float get_interpolator_perturbation (int16_t a1, int level)
 
void interpolate_pos_updates (Entity *a1, std::array< bintree_in, 7 > &a2)
 
std::array< bintree_in, 7 > testEncVec (std::array< PosUpdate, 9 > vals, float min_error)
 
int runTest ()
 
bool sameTeam (Entity &src, Entity &tgt)
 
bool makeTeamLeader (Entity &src, Entity &tgt)
 
bool inviteTeam (Entity &src, Entity &tgt)
 
bool kickTeam (Entity &tgt)
 
void leaveTeam (Entity &e)
 
bool isSidekickMentor (const Entity &e)
 
void inviteSidekick (Entity &src, Entity &tgt)
 
void addSidekick (Entity &tgt, Entity &src)
 
void removeSidekick (Entity &src)
 
 Character::Character ()
 
void Character::reset ()
 
bool Character::isEmpty ()
 
void Character::setName (const QString &val)
 
void Character::sendTray (BitStream &bs) const
 
void Character::GetCharBuildInfo (BitStream &src)
 
void Character::SendCharBuildInfo (BitStream &bs) const
 
void Character::serializetoCharsel (BitStream &bs)
 
const CharacterCostumeCharacter::getCurrentCostume () const
 
void Character::serialize_costumes (BitStream &buffer, const ColorAndPartPacker *packer, bool all_costumes=true) const
 
void Character::DumpSidekickInfo ()
 
void Character::DumpPowerPoolInfo (const PowerPool_Info &pool_info)
 
void Character::DumpBuildInfo ()
 
void Character::dump ()
 
void Character::recv_initial_costume (BitStream &src, const ColorAndPartPacker *packer)
 
void Character::sendFullStats (BitStream &bs) const
 
void Character::sendDescription (BitStream &bs) const
 
void Character::sendTitles (BitStream &bs, NameFlag hasname, ConditionalFlag conditional) const
 
void Character::sendFriendList (BitStream &bs) const
 
void Costume::storeCharselParts (BitStream &bs) const
 
void Costume::serializeToDb (QString &tgt) const
 
void Costume::serializeFromDb (const QString &src)
 
void Costume::dump () const
 
static void Entity::sendAllyID (BitStream &bs)
 
static void Entity::sendPvP (BitStream &bs)
 
void Entity::fillFromCharacter ()
 
void Entity::beginLogout (uint16_t time_till_logout=10)
 
void Entity::InsertUpdate (PosUpdate pup)
 
const QString & Entity::name () const
 
void Entity::dump ()
 
void Entity::addPosUpdate (const PosUpdate &p)
 
void Entity::addInterp (const PosUpdate &p)
 
void Power::serializeto (BitStream &tgt) const
 
void Power::serializefrom (BitStream &src)
 
void Power::Dump ()
 
void PowerTrayGroup::serializeto (BitStream &tgt) const
 
void PowerTrayGroup::serializefrom (BitStream &src)
 
void PowerTrayGroup::dump ()
 
PowerPowerTray::getPower (size_t idx)
 
int PowerTray::setPowers ()
 
void PowerTray::serializefrom (BitStream &src)
 
void PowerTray::serializeto (BitStream &tgt) const
 
void PowerTray::Dump ()
 
void PowerPool_Info::serializefrom (BitStream &src)
 
void PowerPool_Info::serializeto (BitStream &src) const
 
void Team::addTeamMember (Entity *e)
 
void Team::removeTeamMember (Entity *e)
 
void Team::dump ()
 
void Team::listTeamMembers ()
 
bool Team::isTeamLeader (Entity *e)
 

Variables

std::vector< LFGMemberg_lfg_list
 
static CharacterCostume CharacterCostume::NullCostume
 Character to whom this costume belongs. More...
 

Detailed Description

Macro Definition Documentation

#define _USE_MATH_DEFINES
#define WORLD_UPDATE_TICKS_PER_SECOND   30

Function Documentation

void abortLogout ( Entity e)

Here is the caller graph for this function:

void addFriend ( Entity src,
Entity tgt 
)

Here is the call graph for this function:

void Entity::addInterp ( const PosUpdate p)

Here is the caller graph for this function:

void addLFG ( Entity src)

Here is the call graph for this function:

Here is the caller graph for this function:

void Entity::addPosUpdate ( const PosUpdate p)
void addSidekick ( Entity tgt,
Entity src 
)

Here is the call graph for this function:

void Team::addTeamMember ( Entity e)

Here is the call graph for this function:

Here is the caller graph for this function:

void Entity::beginLogout ( uint16_t  time_till_logout = 10)

This will mark the Entity as being in logging out state

  • time_till_logout is time in seconds untill logout is done

Here is the call graph for this function:

Character::Character ( )
void Team::dump ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void Power::Dump ( )
void PowerTray::Dump ( )

Here is the caller graph for this function:

void Costume::dump ( ) const

Here is the caller graph for this function:

void PowerTrayGroup::dump ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void Character::dump ( )

Here is the call graph for this function:

void Entity::dump ( )

Here is the call graph for this function:

void Character::DumpBuildInfo ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void dumpFriends ( const Entity src)

Here is the call graph for this function:

Here is the caller graph for this function:

void dumpFriendsList ( const Friend f)

Here is the caller graph for this function:

void dumpLFGList ( )

Here is the caller graph for this function:

void Character::DumpPowerPoolInfo ( const PowerPool_Info pool_info)
void Character::DumpSidekickInfo ( )

Here is the caller graph for this function:

void fillEntityFromNewCharData ( Entity e,
BitStream src,
const ColorAndPartPacker packer,
const Parse_AllKeyProfiles default_profiles 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Entity::fillFromCharacter ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void findTeamMember ( Entity tgt)

Here is the call graph for this function:

bool fromActualCharacter ( const Character src,
const PlayerData player,
GameAccountResponseCharacterData tgt 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void fromActualCostume ( const Costume src,
GameAccountResponseCostumeData tgt 
)

Here is the call graph for this function:

Here is the caller graph for this function:

float get_interpolator_perturbation ( int16_t  a1,
int  level 
)

Here is the caller graph for this function:

int getBitsConditional ( BitStream bs,
uint32_t  numbits 
)

Here is the call graph for this function:

void Character::GetCharBuildInfo ( BitStream src)

Here is the call graph for this function:

const CharacterCostume * Character::getCurrentCostume ( ) const

Here is the caller graph for this function:

int getPackedBitsConditional ( BitStream bs,
uint8_t  numbits 
)

Here is the call graph for this function:

Power * PowerTray::getPower ( size_t  idx)
void getTransformMatrix ( BitStream bs,
glm::mat4x3 &  src 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void initializeNewNpcEntity ( Entity e,
const Parse_NPC src,
int  idx,
int  variant 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void initializeNewPlayerEntity ( Entity e)

Here is the caller graph for this function:

void Entity::InsertUpdate ( PosUpdate  pup)
void interpolate_pos_updates ( Entity a1,
std::array< bintree_in, 7 > &  a2 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void inviteSidekick ( Entity src,
Entity tgt 
)

Here is the call graph for this function:

bool inviteTeam ( Entity src,
Entity tgt 
)

Here is the call graph for this function:

bool Character::isEmpty ( )
bool isFriendOnline ( Entity src,
uint32_t  db_id 
)

Here is the call graph for this function:

bool isSidekickMentor ( const Entity e)

Here is the caller graph for this function:

bool Team::isTeamLeader ( Entity e)

Here is the caller graph for this function:

bool kickTeam ( Entity tgt)

Here is the call graph for this function:

void leaveTeam ( Entity e)

Here is the call graph for this function:

Here is the caller graph for this function:

void Team::listTeamMembers ( )

Here is the caller graph for this function:

bool makeTeamLeader ( Entity src,
Entity tgt 
)

Here is the call graph for this function:

void markEntityForDbStore ( Entity e,
DbStoreFlags  f 
)

Here is the caller graph for this function:

const QString & Entity::name ( ) const

Here is the caller graph for this function:

void Character::recv_initial_costume ( BitStream src,
const ColorAndPartPacker packer 
)

Here is the call graph for this function:

void removeFriend ( Entity src,
Entity tgt 
)

Here is the call graph for this function:

void removeLFG ( Entity tgt)

Here is the call graph for this function:

Here is the caller graph for this function:

void removeSidekick ( Entity src)

Here is the call graph for this function:

Here is the caller graph for this function:

void Team::removeTeamMember ( Entity e)

Here is the call graph for this function:

Here is the caller graph for this function:

void Character::reset ( )
int runTest ( )

Here is the call graph for this function:

bool sameTeam ( Entity src,
Entity tgt 
)

Here is the caller graph for this function:

void Entity::sendAllyID ( BitStream bs)
static

Here is the call graph for this function:

void Character::SendCharBuildInfo ( BitStream bs) const

Here is the call graph for this function:

void Character::sendDescription ( BitStream bs) const

Here is the call graph for this function:

void Character::sendFriendList ( BitStream bs) const

Here is the call graph for this function:

void Character::sendFullStats ( BitStream bs) const

Here is the call graph for this function:

void Entity::sendPvP ( BitStream bs)
static

Here is the call graph for this function:

void Character::sendTitles ( BitStream bs,
NameFlag  hasname,
ConditionalFlag  conditional 
) const

Here is the call graph for this function:

void Character::sendTray ( BitStream bs) const

Here is the call graph for this function:

template<class Archive >
void serialize ( Archive &  arc,
CostumePart cp 
)
template<class Archive >
void serialize ( Archive &  arc,
Costume c 
)
void Character::serialize_costumes ( BitStream buffer,
const ColorAndPartPacker packer,
bool  all_costumes = true 
) const

Here is the call graph for this function:

void PowerPool_Info::serializefrom ( BitStream src)

Here is the call graph for this function:

Here is the caller graph for this function:

void Power::serializefrom ( BitStream src)

Here is the call graph for this function:

void serializefrom ( CostumePart part,
BitStream bs,
const ColorAndPartPacker packingContext 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void PowerTray::serializefrom ( BitStream src)
void PowerTrayGroup::serializefrom ( BitStream src)

Here is the call graph for this function:

Here is the caller graph for this function:

void serializefrom ( Costume tgt,
BitStream src,
const ColorAndPartPacker packer 
)

Here is the call graph for this function:

void Costume::serializeFromDb ( const QString &  src)

Here is the caller graph for this function:

void serializeFullStats ( const Parse_CharAttrib src,
BitStream bs,
bool   
)

Here is the call graph for this function:

Here is the caller graph for this function:

void serializeFullStats ( const Character src,
BitStream bs,
bool  sendAbsolute 
)

Here is the call graph for this function:

void serializeLevelsStats ( const Character src,
BitStream bs,
bool   
)

Here is the call graph for this function:

Here is the caller graph for this function:

void serializeStats ( const Parse_CharAttrib src,
BitStream bs,
bool   
)

Here is the call graph for this function:

Here is the caller graph for this function:

void serializeStats ( const Character src,
BitStream bs,
bool  sendAbsolute 
)

Here is the call graph for this function:

void PowerPool_Info::serializeto ( BitStream src) const

Here is the call graph for this function:

Here is the caller graph for this function:

void serializeto ( const CostumePart part,
BitStream bs,
const ColorAndPartPacker packingContext 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void Power::serializeto ( BitStream tgt) const

Here is the call graph for this function:

void PowerTray::serializeto ( BitStream tgt) const
void PowerTrayGroup::serializeto ( BitStream tgt) const

Here is the call graph for this function:

Here is the caller graph for this function:

void serializeto ( const Costume costume,
BitStream bs,
const ColorAndPartPacker packer 
)

Here is the call graph for this function:

void Character::serializetoCharsel ( BitStream bs)

Here is the call graph for this function:

Here is the caller graph for this function:

void Costume::serializeToDb ( QString &  tgt) const

Here is the caller graph for this function:

void Character::setName ( const QString &  val)

Here is the caller graph for this function:

int PowerTray::setPowers ( )
void storeBitsConditional ( BitStream bs,
uint8_t  numbits,
int  bits 
)

Here is the call graph for this function:

void Costume::storeCharselParts ( BitStream bs) const

Here is the call graph for this function:

void storeFloatConditional ( BitStream bs,
float  val 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void storeFloatPacked ( BitStream bs,
float  val 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void storePackedBitsConditional ( BitStream bs,
uint8_t  numbits,
int  bits 
)

Here is the call graph for this function:

void storeStringConditional ( BitStream bs,
const QString &  str 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void storeTransformMatrix ( BitStream tgt,
const glm::mat4x3 &  src 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void storeTransformMatrix ( BitStream tgt,
const TransformStruct src 
)

Here is the call graph for this function:

void storeVector ( BitStream bs,
glm::vec3 &  vec 
)

Here is the call graph for this function:

void storeVectorConditional ( BitStream bs,
glm::vec3 &  vec 
)

Here is the call graph for this function:

std::array<bintree_in,7> testEncVec ( std::array< PosUpdate, 9 >  vals,
float  min_error 
)

Here is the caller graph for this function:

bool toActualCharacter ( const GameAccountResponseCharacterData src,
Character tgt,
PlayerData player 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void toActualCostume ( const GameAccountResponseCostumeData src,
Costume tgt 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void toggleFriendList ( Entity src)

Here is the call graph for this function:

Variable Documentation

std::vector<LFGMember> g_lfg_list
CharacterCostume CharacterCostume::NullCostume
static

Character to whom this costume belongs.