Public Member Functions | Protected Member Functions | Protected Attributes | Friends
PartyMember Class Reference

#include <party.h>

Inheritance diagram for PartyMember:

Public Member Functions

const PartygetParty () const
bool getLeader () const
void setLeader (const bool leader)
- Public Member Functions inherited from Avatar
 Avatar (const std::string &name)
virtual ~Avatar ()
std::string getName () const
void setName (const std::string &name)
std::string getOriginalName () const
std::string getComplexName () const
virtual std::string getAdditionString () const
void setOriginalName (const std::string &name)
bool getOnline () const
void setOnline (const bool online)
int getHp () const
void setHp (const int hp)
int getMaxHp () const
void setMaxHp (const int maxHp)
int getDamageHp () const
void setDamageHp (const int damageHp)
bool getDisplayBold () const
void setDisplayBold (const bool displayBold)
int getLevel () const
void setLevel (const int level)
std::string getMap () const
void setMap (const std::string &map)
int getX () const
void setX (const int x)
int getY () const
void setY (const int y)
int getType () const
void setType (const int n)
int getExp () const
void setExp (const int n)
BeingId getID () const
void setID (const BeingId id)
int getCharId () const
void setCharId (const int id)
GenderT getGender () const
void setGender (const GenderT g)
int getRace () const
void setRace (const int r)
const std::string & getIp () const
void setIp (const std::string &ip)
bool getPoison () const
void setPoison (const bool b)

Protected Member Functions

 PartyMember (Party *const party, const BeingId id, const std::string &name)

Protected Attributes

bool mLeader
- Protected Attributes inherited from Avatar
BeingId mId
int mCharId
std::string mName
std::string mOriginalName
int mHp
int mMaxHp
int mDamageHp
int mLevel
std::string mMap
int mX
int mY
int mType
int mExp
GenderT mGender
int mRace
std::string mIp
bool mOnline
bool mDisplayBold
bool mPoison


class Party

Detailed Description

Definition at line 37 of file party.h.

Constructor & Destructor Documentation

◆ PartyMember()

PartyMember::PartyMember ( Party *const  party,
const BeingId  id,
const std::string &  name 

Definition at line 59 of file party.cpp.

61  :
62  Avatar(name),
63  mParty(party),
64  mLeader(false)
65 {
66  mId = id;
67 }
Avatar(const std::string &name)
Definition: avatar.cpp:28
BeingId mId
Definition: avatar.h:187
bool mLeader
Definition: party.h:59
Party * mParty
Definition: party.h:58
uint32_t party

References Avatar::mId.

Member Function Documentation

◆ getLeader()

bool PartyMember::getLeader ( ) const

Definition at line 45 of file party.h.

46  { return mLeader; }

References mLeader.

◆ getParty()

const Party* PartyMember::getParty ( ) const

Definition at line 42 of file party.h.

43  { return mParty; }

References mParty.

◆ setLeader()

void PartyMember::setLeader ( const bool  leader)

Friends And Related Function Documentation

◆ Party

friend class Party

Definition at line 52 of file party.h.

Field Documentation

◆ mLeader

bool PartyMember::mLeader

Definition at line 59 of file party.h.

Referenced by getLeader(), and setLeader().

◆ mParty

Party* PartyMember::mParty

Definition at line 58 of file party.h.

Referenced by getParty(), and Party::isMember().

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