ManaPlus
|
#include <avatar.h>
Public Member Functions | |
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 Attributes | |
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 |
|
explicit |
Definition at line 28 of file avatar.cpp.
|
virtual |
Reimplemented in GuildMember.
Definition at line 62 of file avatar.cpp.
References empty, and getIp().
Referenced by AvatarListBox::draw(), and AvatarListBox::safeDraw().
|
inline |
Definition at line 156 of file avatar.h.
References mCharId.
Referenced by EAthena::GuildHandler::changeMemberPostion().
std::string Avatar::getComplexName | ( | ) | const |
Definition at line 51 of file avatar.cpp.
References mName, and mOriginalName.
Referenced by AvatarListBox::draw(), and AvatarListBox::safeDraw().
|
inline |
Definition at line 102 of file avatar.h.
References mDamageHp.
Referenced by AvatarListBox::draw(), and AvatarListBox::safeDraw().
|
inline |
Definition at line 108 of file avatar.h.
References mDisplayBold.
Referenced by AvatarListBox::draw(), and AvatarListBox::safeDraw().
|
inline |
|
inline |
Definition at line 162 of file avatar.h.
References mGender.
Referenced by AvatarListBox::draw(), and AvatarListBox::safeDraw().
|
inline |
Definition at line 90 of file avatar.h.
References mHp.
Referenced by AvatarListBox::draw(), AvatarListBox::safeDraw(), and SocialPlayersTab::updateAvatar().
|
inline |
Definition at line 150 of file avatar.h.
References mId.
Referenced by EAthena::GuildHandler::changeMemberPostion(), EAthena::PartyHandler::kick(), and TmwAthena::PartyHandler::kick().
|
inline |
|
inline |
Definition at line 114 of file avatar.h.
References mLevel.
Referenced by AvatarListBox::draw(), AvatarListBox::mousePressed(), and AvatarListBox::safeDraw().
|
inline |
Definition at line 120 of file avatar.h.
References mMap.
Referenced by AvatarListBox::draw(), Minimap::draw2(), AvatarListBox::safeDraw(), and PopupMenu::showPlayerPopup().
|
inline |
Definition at line 96 of file avatar.h.
References mMaxHp.
Referenced by AvatarListBox::draw(), AvatarListBox::safeDraw(), and SocialPlayersTab::updateAvatar().
|
inline |
Returns the avatar's name.
Definition at line 53 of file avatar.h.
References mName.
Referenced by AvatarListBox::draw(), SocialPlayersTab::findAvatarbyName(), AvatarListModel::getElementAt(), Party::getNames(), Party::getNamesSet(), SocialPlayersTab::getPlayersAvatars(), Guild::isMember(), Party::isMember(), AvatarListBox::mousePressed(), EAthena::FamilyRecv::processAskForChild(), EAthena::GuildRecv::processGuildExpulsion2(), EAthena::GuildRecv::processGuildLeave2(), EAthena::GuildRecv::processGuildMemberLogin(), EAthena::PartyRecv::processPartyMessage(), TmwAthena::PartyRecv::processPartyMessage(), TmwAthena::PartyRecv::processPartyMove(), Guild::removeMember(), Party::removeMember(), and AvatarListBox::safeDraw().
|
inline |
Returns the avatar's online status.
Definition at line 81 of file avatar.h.
References mOnline.
Referenced by AvatarListBox::draw(), Minimap::draw2(), EAthena::PartyRecv::processPartyMemberInfo(), TmwAthena::PartyRecv::processPartyMove(), AvatarListBox::safeDraw(), SocialNavigationTab::updateList(), and ChatWindow::updateOnline().
|
inline |
Returns the avatar's original name.
Definition at line 65 of file avatar.h.
References mOriginalName.
|
inline |
Definition at line 180 of file avatar.h.
References mPoison.
Referenced by AvatarListBox::draw(), and AvatarListBox::safeDraw().
|
inline |
|
inline |
Definition at line 138 of file avatar.h.
References mType.
Referenced by AvatarListBox::draw(), AvatarListBox::mousePressed(), and AvatarListBox::safeDraw().
|
inline |
Definition at line 126 of file avatar.h.
References mX.
Referenced by AvatarListBox::draw(), Minimap::draw2(), SocialNavigationTab::getPortalIndex(), AvatarListBox::mousePressed(), SocialNavigationTab::removePortal(), AvatarListBox::safeDraw(), SocialNavigationTab::selectIndex(), SocialNavigationTab::updateList(), and SocialNavigationTab::updateNames().
|
inline |
Definition at line 132 of file avatar.h.
References mY.
Referenced by AvatarListBox::draw(), Minimap::draw2(), SocialNavigationTab::getPortalIndex(), AvatarListBox::mousePressed(), SocialNavigationTab::removePortal(), AvatarListBox::safeDraw(), SocialNavigationTab::selectIndex(), SocialNavigationTab::updateList(), and SocialNavigationTab::updateNames().
|
inline |
Definition at line 159 of file avatar.h.
References mCharId.
Referenced by EAthena::GuildRecv::processGuildMemberList().
|
inline |
Definition at line 105 of file avatar.h.
References mDamageHp.
Referenced by SocialPlayersTab::resetDamage(), and SocialPlayersTab::updateAvatar().
|
inline |
Definition at line 111 of file avatar.h.
References mDisplayBold.
Referenced by PartyMember::setLeader().
|
inline |
Definition at line 147 of file avatar.h.
References mExp.
Referenced by EAthena::GuildRecv::processGuildMemberList().
|
inline |
Definition at line 165 of file avatar.h.
References mGender.
Referenced by EAthena::GuildRecv::processGuildMemberList(), EAthena::GuildRecv::processGuildMemberLogin(), SocialPlayersTab::updateAvatar(), and GuildManager::updateList().
|
inline |
Definition at line 93 of file avatar.h.
References mHp.
Referenced by EAthena::PartyRecv::processPartyMemberDead(), TmwAthena::PartyRecv::processPartyUpdateHp(), EAthena::PlayerRecv::processPlayerHeal(), EAthena::PlayerHandler::setStat(), TmwAthena::PlayerHandler::setStat(), and SocialPlayersTab::updateAvatar().
|
inline |
Definition at line 153 of file avatar.h.
References mId.
Referenced by EAthena::GuildRecv::processGuildMemberList().
|
inline |
Definition at line 177 of file avatar.h.
References mIp.
Referenced by SocialPlayersTab::updateAvatar().
|
inline |
Definition at line 117 of file avatar.h.
References mLevel.
Referenced by SocialNavigationTab::addPortal(), EAthena::GuildRecv::processGuildMemberList(), EAthena::PartyRecv::processPartyInfo(), EAthena::PartyRecv::processPartyMemberInfo(), EAthena::PartyRecv::processPartyMemberJobLevel(), SocialPlayersTab::updateAvatar(), and SocialNavigationTab::updateList().
|
inline |
Definition at line 123 of file avatar.h.
References mMap.
Referenced by EAthena::PartyRecv::processPartyInfo(), TmwAthena::PartyRecv::processPartyInfo(), EAthena::PartyRecv::processPartyMemberInfo(), and TmwAthena::PartyRecv::processPartyMove().
|
inline |
Definition at line 99 of file avatar.h.
References mMaxHp.
Referenced by TmwAthena::PartyRecv::processPartyUpdateHp(), EAthena::PlayerRecv::processPlayerHeal(), EAthena::PlayerHandler::setStat(), TmwAthena::PlayerHandler::setStat(), and SocialPlayersTab::updateAvatar().
|
inline |
Set the avatar's name.
Definition at line 59 of file avatar.h.
References mName.
Referenced by ActorManager::addChar(), Ea::BeingRecv::processNameResponse(), EAthena::BeingRecv::processNameResponse2(), EAthena::BeingRecv::processNameResponseTitle(), and SocialNavigationTab::updateNames().
|
inline |
Set the avatar's online status.
Definition at line 87 of file avatar.h.
References mOnline.
Referenced by SocialNavigationTab::addPortal(), SocialPlayersTab::findAvatarbyName(), SocialFriendsTab::getPlayersAvatars(), GuildManager::process(), EAthena::GuildRecv::processGuildMemberList(), EAthena::GuildRecv::processGuildMemberLogin(), EAthena::PartyRecv::processPartyInfo(), TmwAthena::PartyRecv::processPartyInfo(), EAthena::PartyRecv::processPartyMemberInfo(), EAthena::PartyRecv::processPartyMemberJobLevel(), TmwAthena::PartyRecv::processPartyMove(), SocialNavigationTab::updateList(), and GuildManager::updateList().
|
inline |
Set the avatar's original name.
Definition at line 75 of file avatar.h.
References mOriginalName.
Referenced by SocialNavigationTab::updateNames().
|
inline |
Definition at line 183 of file avatar.h.
References mPoison.
Referenced by SocialPlayersTab::updateAvatar().
|
inline |
Definition at line 171 of file avatar.h.
References mRace.
Referenced by EAthena::GuildRecv::processGuildMemberList().
|
inline |
Definition at line 141 of file avatar.h.
References mType.
Referenced by SocialNavigationTab::addPortal(), and SocialNavigationTab::updateList().
|
inline |
Definition at line 129 of file avatar.h.
Referenced by SocialNavigationTab::addPortal(), LocalPlayer::nextTile(), EAthena::GuildRecv::processGuildUpdateCoords(), EAthena::PartyRecv::processPartyMemberInfo(), TmwAthena::PartyRecv::processPartyMove(), Ea::PartyRecv::processPartyUpdateCoords(), and SocialNavigationTab::updateList().
|
inline |
Definition at line 135 of file avatar.h.
Referenced by SocialNavigationTab::addPortal(), LocalPlayer::nextTile(), EAthena::GuildRecv::processGuildUpdateCoords(), EAthena::PartyRecv::processPartyMemberInfo(), TmwAthena::PartyRecv::processPartyMove(), Ea::PartyRecv::processPartyUpdateCoords(), and SocialNavigationTab::updateList().
|
protected |
Definition at line 188 of file avatar.h.
Referenced by getCharId(), GuildMember::GuildMember(), Guild::removeMember(), and setCharId().
|
protected |
Definition at line 193 of file avatar.h.
Referenced by getDamageHp(), and setDamageHp().
|
protected |
Definition at line 204 of file avatar.h.
Referenced by getDisplayBold(), and setDisplayBold().
|
protected |
|
protected |
Definition at line 200 of file avatar.h.
Referenced by getGender(), and setGender().
|
protected |
|
protected |
Definition at line 187 of file avatar.h.
Referenced by getID(), Guild::getId(), GuildMember::GuildMember(), Guild::isMember(), Party::isMember(), PartyMember::PartyMember(), Guild::removeMember(), Party::removeMember(), and setID().
|
protected |
|
protected |
Definition at line 194 of file avatar.h.
Referenced by getLevel(), and setLevel().
|
protected |
|
protected |
Definition at line 192 of file avatar.h.
Referenced by getMaxHp(), and setMaxHp().
|
protected |
Definition at line 189 of file avatar.h.
Referenced by getComplexName(), getName(), Guild::getName(), setName(), and Guild::setName().
|
protected |
Definition at line 203 of file avatar.h.
Referenced by getOnline(), and setOnline().
|
protected |
Definition at line 190 of file avatar.h.
Referenced by getComplexName(), getOriginalName(), and setOriginalName().
|
protected |
Definition at line 205 of file avatar.h.
Referenced by getPoison(), and setPoison().
|
protected |
|
protected |