ManaPlus
Public Member Functions | Protected Attributes
BeingCacheEntry Class Reference

#include <beingcacheentry.h>

Public Member Functions

 BeingCacheEntry (const BeingId id)
 
BeingId getId () const
 
const std::string & getName () const
 
void setName (const std::string &name)
 
void setPartyName (const std::string &name)
 
void setGuildName (const std::string &name)
 
const std::string & getPartyName () const
 
const std::string & getGuildName () const
 
void setLevel (const int n)
 
int getLevel () const
 
void setTime (const time_t n)
 
time_t getTime () const
 
unsigned getPvpRank () const
 
void setPvpRank (const int r)
 
std::string getIp () const
 
void setIp (const std::string &ip)
 
bool isAdvanced () const
 
void setAdvanced (const bool a)
 
int getFlags () const
 
void setFlags (const int flags)
 
uint16_t getTeamId () const
 
void setTeamId (const uint16_t teamId)
 

Protected Attributes

std::string mName
 
std::string mPartyName
 
std::string mGuildName
 
std::string mIp
 
BeingId mId
 
int mLevel
 
unsigned int mPvpRank
 
time_t mTime
 
int mFlags
 
uint16_t mTeamId
 
bool mIsAdvanced
 

Detailed Description

Definition at line 31 of file beingcacheentry.h.

Constructor & Destructor Documentation

◆ BeingCacheEntry()

BeingCacheEntry::BeingCacheEntry ( const BeingId  id)
inlineexplicit

Definition at line 34 of file beingcacheentry.h.

34  :
35  mName(),
36  mPartyName(),
37  mGuildName(),
38  mIp(),
39  mId(id),
40  mLevel(0),
41  mPvpRank(0),
42  mTime(0),
43  mFlags(0),
44  mTeamId(0U),
45  mIsAdvanced(false)
46  {
47  }
std::string mGuildName
std::string mName
unsigned int mPvpRank
std::string mPartyName

Member Function Documentation

◆ getFlags()

int BeingCacheEntry::getFlags ( ) const
inline

Definition at line 113 of file beingcacheentry.h.

114  { return mFlags; }

References mFlags.

◆ getGuildName()

const std::string& BeingCacheEntry::getGuildName ( ) const
inline

Definition at line 80 of file beingcacheentry.h.

81  { return mGuildName; }

References mGuildName.

◆ getId()

BeingId BeingCacheEntry::getId ( ) const
inline

Definition at line 51 of file beingcacheentry.h.

52  { return mId; }

References mId.

◆ getIp()

std::string BeingCacheEntry::getIp ( ) const
inline

Definition at line 101 of file beingcacheentry.h.

102  { return mIp; }

References mIp.

◆ getLevel()

int BeingCacheEntry::getLevel ( ) const
inline

Definition at line 86 of file beingcacheentry.h.

87  { return mLevel; }

References mLevel.

◆ getName()

const std::string& BeingCacheEntry::getName ( ) const
inline

Returns the name of the being.

Definition at line 57 of file beingcacheentry.h.

58  { return mName; }

References mName.

◆ getPartyName()

const std::string& BeingCacheEntry::getPartyName ( ) const
inline

Definition at line 77 of file beingcacheentry.h.

78  { return mPartyName; }

References mPartyName.

◆ getPvpRank()

unsigned BeingCacheEntry::getPvpRank ( ) const
inline

Definition at line 95 of file beingcacheentry.h.

96  { return mPvpRank; }

References mPvpRank.

◆ getTeamId()

uint16_t BeingCacheEntry::getTeamId ( ) const
inline

Definition at line 119 of file beingcacheentry.h.

120  { return mTeamId; }

References mTeamId.

◆ getTime()

time_t BeingCacheEntry::getTime ( ) const
inline

Definition at line 92 of file beingcacheentry.h.

93  { return mTime; }

References mTime.

◆ isAdvanced()

bool BeingCacheEntry::isAdvanced ( ) const
inline

Definition at line 107 of file beingcacheentry.h.

108  { return mIsAdvanced; }

References mIsAdvanced.

◆ setAdvanced()

void BeingCacheEntry::setAdvanced ( const bool  a)
inline

Definition at line 110 of file beingcacheentry.h.

111  { mIsAdvanced = a; }

References mIsAdvanced.

Referenced by Being::addToCache().

◆ setFlags()

void BeingCacheEntry::setFlags ( const int  flags)
inline

Definition at line 116 of file beingcacheentry.h.

117  { mFlags = flags; }

References mFlags.

Referenced by Being::addToCache().

◆ setGuildName()

void BeingCacheEntry::setGuildName ( const std::string &  name)
inline

Definition at line 74 of file beingcacheentry.h.

75  { mGuildName = name; }

References mGuildName.

Referenced by Being::addToCache().

◆ setIp()

void BeingCacheEntry::setIp ( const std::string &  ip)
inline

Definition at line 104 of file beingcacheentry.h.

105  { mIp = ip; }

References mIp.

Referenced by Being::addToCache().

◆ setLevel()

void BeingCacheEntry::setLevel ( const int  n)
inline

Definition at line 83 of file beingcacheentry.h.

84  { mLevel = n; }

References mLevel.

Referenced by Being::addToCache().

◆ setName()

void BeingCacheEntry::setName ( const std::string &  name)
inline

Sets the name for the being.

Parameters
nameThe name that should appear.

Definition at line 65 of file beingcacheentry.h.

66  { mName = name; }

References mName.

Referenced by Being::addToCache().

◆ setPartyName()

void BeingCacheEntry::setPartyName ( const std::string &  name)
inline

Following are set from the server (mainly for players)

Definition at line 71 of file beingcacheentry.h.

72  { mPartyName = name; }

References mPartyName.

Referenced by Being::addToCache().

◆ setPvpRank()

void BeingCacheEntry::setPvpRank ( const int  r)
inline

Definition at line 98 of file beingcacheentry.h.

99  { mPvpRank = r; }

References mPvpRank.

Referenced by Being::addToCache().

◆ setTeamId()

void BeingCacheEntry::setTeamId ( const uint16_t  teamId)
inline

Definition at line 122 of file beingcacheentry.h.

123  { mTeamId = teamId; }

References mTeamId.

Referenced by Being::addToCache().

◆ setTime()

void BeingCacheEntry::setTime ( const time_t  n)
inline

Definition at line 89 of file beingcacheentry.h.

90  { mTime = n; }

References mTime.

Referenced by Being::addToCache().

Field Documentation

◆ mFlags

int BeingCacheEntry::mFlags
protected

Definition at line 134 of file beingcacheentry.h.

Referenced by getFlags(), and setFlags().

◆ mGuildName

std::string BeingCacheEntry::mGuildName
protected

Definition at line 128 of file beingcacheentry.h.

Referenced by getGuildName(), and setGuildName().

◆ mId

BeingId BeingCacheEntry::mId
protected

Unique sprite id

Definition at line 130 of file beingcacheentry.h.

Referenced by getId().

◆ mIp

std::string BeingCacheEntry::mIp
protected

Definition at line 129 of file beingcacheentry.h.

Referenced by getIp(), and setIp().

◆ mIsAdvanced

bool BeingCacheEntry::mIsAdvanced
protected

Definition at line 136 of file beingcacheentry.h.

Referenced by isAdvanced(), and setAdvanced().

◆ mLevel

int BeingCacheEntry::mLevel
protected

Definition at line 131 of file beingcacheentry.h.

Referenced by getLevel(), and setLevel().

◆ mName

std::string BeingCacheEntry::mName
protected

Name of character

Definition at line 126 of file beingcacheentry.h.

Referenced by getName(), and setName().

◆ mPartyName

std::string BeingCacheEntry::mPartyName
protected

Definition at line 127 of file beingcacheentry.h.

Referenced by getPartyName(), and setPartyName().

◆ mPvpRank

unsigned int BeingCacheEntry::mPvpRank
protected

Definition at line 132 of file beingcacheentry.h.

Referenced by getPvpRank(), and setPvpRank().

◆ mTeamId

uint16_t BeingCacheEntry::mTeamId
protected

Definition at line 135 of file beingcacheentry.h.

Referenced by getTeamId(), and setTeamId().

◆ mTime

time_t BeingCacheEntry::mTime
protected

Definition at line 133 of file beingcacheentry.h.

Referenced by getTime(), and setTime().


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