Mana
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Avatar Class Reference

#include <avatar.h>

Inheritance diagram for Avatar:
GuildMember PartyMember

Public Member Functions

 Avatar (const std::string &name={})
 
const std::string & getName () const
 Returns the avatar's name.
 
void setName (const std::string &name)
 Set the avatar's name.
 
bool getOnline () const
 Returns the avatar's online status.
 
void setOnline (bool online)
 Set the avatar's online status.
 
int getHp () const
 
void setHp (int hp)
 
int getMaxHp () const
 
void setMaxHp (int maxHp)
 
bool getDisplayBold () const
 
void setDisplayBold (bool displayBold)
 

Private Attributes

std::string mName
 
int mHp
 
int mMaxHp
 
bool mOnline
 
bool mDisplayBold
 

Detailed Description

Definition at line 26 of file avatar.h.

Constructor & Destructor Documentation

◆ Avatar()

Avatar::Avatar ( const std::string &  name = {})
explicit

Definition at line 24 of file avatar.cpp.

Member Function Documentation

◆ getDisplayBold()

bool Avatar::getDisplayBold ( ) const
inline

Definition at line 59 of file avatar.h.

◆ getHp()

int Avatar::getHp ( ) const
inline

Definition at line 51 of file avatar.h.

◆ getMaxHp()

int Avatar::getMaxHp ( ) const
inline

Definition at line 55 of file avatar.h.

◆ getName()

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

Returns the avatar's name.

Definition at line 34 of file avatar.h.

◆ getOnline()

bool Avatar::getOnline ( ) const
inline

Returns the avatar's online status.

Definition at line 44 of file avatar.h.

◆ setDisplayBold()

void Avatar::setDisplayBold ( bool  displayBold)
inline

Definition at line 61 of file avatar.h.

◆ setHp()

void Avatar::setHp ( int  hp)
inline

Definition at line 53 of file avatar.h.

◆ setMaxHp()

void Avatar::setMaxHp ( int  maxHp)
inline

Definition at line 57 of file avatar.h.

◆ setName()

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

Set the avatar's name.

Definition at line 39 of file avatar.h.

◆ setOnline()

void Avatar::setOnline ( bool  online)
inline

Set the avatar's online status.

Definition at line 49 of file avatar.h.

Member Data Documentation

◆ mDisplayBold

bool Avatar::mDisplayBold
private

Definition at line 68 of file avatar.h.

◆ mHp

int Avatar::mHp
private

Definition at line 65 of file avatar.h.

◆ mMaxHp

int Avatar::mMaxHp
private

Definition at line 66 of file avatar.h.

◆ mName

std::string Avatar::mName
private

Definition at line 64 of file avatar.h.

◆ mOnline

bool Avatar::mOnline
private

Definition at line 67 of file avatar.h.


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