SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
Functions
CharacterHelpers.cpp File Reference
#include "CharacterHelpers.h"
#include "Character.h"
#include "Costume.h"
#include <QDateTime>
Include dependency graph for CharacterHelpers.cpp:

Functions

uint32_t getLevel (const Character &c)
 
uint32_t getCombatLevel (const Character &c)
 
uint32_t getSecurityThreat (const Character &c)
 
float getHP (const Character &c)
 
float getEnd (const Character &c)
 
float getMaxHP (const Character &c)
 
float getMaxEnd (const Character &c)
 
uint32_t getCurrentCostumeIdx (const Character &c)
 
const QString & getOrigin (const Character &c)
 
const QString & getClass (const Character &c)
 
uint32_t getXP (const Character &c)
 
uint32_t getDebt (const Character &c)
 
uint32_t getPatrolXP (const Character &c)
 
const QString & getGenericTitle (const Character &c)
 
const QString & getOriginTitle (const Character &c)
 
const QString & getSpecialTitle (const Character &c)
 
uint32_t getInf (const Character &c)
 
const QString & getDescription (const Character &c)
 
const QString & getBattleCry (const Character &c)
 
const QString & getAlignment (const Character &c)
 
const QString & getLastOnline (const Character &c)
 
void setLevel (Character &c, uint32_t val)
 
void setCombatLevel (Character &c, uint32_t val)
 
void setSecurityThreat (Character &c, uint32_t val)
 
void setHP (Character &c, float val)
 
void setHPToMax (Character &c)
 
void setEnd (Character &c, float val)
 
void setEndToMax (Character &c)
 
void setCurrentCostumeIdx (Character &c, uint32_t idx)
 
void setXP (Character &c, uint32_t val)
 
void setDebt (Character &c, uint32_t val)
 
void setTitles (Character &c, bool prefix, QString generic, QString origin, QString special)
 
void setInf (Character &c, uint32_t val)
 
void setDescription (Character &c, QString val)
 
void setBattleCry (Character &c, QString val)
 
void updateLastOnline (Character &c)
 
void toggleAFK (Character &c, const bool isTrue, QString msg)
 
void toggleAFK (Character &c, QString msg)
 
const QString & getGenericTitle (uint32_t val)
 
const QString & getOriginTitle (uint32_t val)