#include <onlineplayer.h>
Definition at line 31 of file onlineplayer.h.
◆ OnlinePlayer()
OnlinePlayer::OnlinePlayer |
( |
const std::string & |
nick, |
|
|
const unsigned char |
status, |
|
|
const signed char |
level, |
|
|
const GenderT |
gender, |
|
|
const signed char |
version, |
|
|
const int |
group |
|
) |
| |
|
inline |
◆ getLevel()
char OnlinePlayer::getLevel |
( |
| ) |
const |
|
inline |
◆ getNick()
const std::string OnlinePlayer::getNick |
( |
| ) |
const |
|
inline |
◆ getStaus()
unsigned char OnlinePlayer::getStaus |
( |
| ) |
const |
|
inline |
◆ getText()
const std::string OnlinePlayer::getText |
( |
| ) |
const |
|
inline |
◆ getVersion()
char OnlinePlayer::getVersion |
( |
| ) |
const |
|
inline |
◆ setIsGM()
void OnlinePlayer::setIsGM |
( |
const bool |
b | ) |
|
|
inline |
◆ setLevel()
void OnlinePlayer::setLevel |
( |
const char |
level | ) |
|
|
inline |
◆ setText()
void OnlinePlayer::setText |
( |
std::string |
str | ) |
|
Definition at line 860 of file whoisonline.cpp.
868 if (being !=
nullptr)
887 mText.append(
"(GM) ");
894 mText.append(
"\u2640");
896 mText.append(
"\u2642");
921 else if (
mIsGM && color ==
"0")
930 mText =
strprintf(
"@@%s|##%s%s %s@@", text.c_str(), color.c_str(),
931 text.c_str(),
mText.c_str());
ActorManager * actorManager
Being * findBeingByName(const std::string &name, const ActorTypeT type) const
void setState(const uint8_t state)
void setAdvanced(const bool n)
bool getShowBadge(const int id)
bool getHighlightName(const int id)
const std::string & getName(const int id)
std::string strprintf(const char *const format,...)
std::string encodeLinkText(std::string data)
References _, actorManager, BeingFlag::AWAY, encodeLinkText(), Gender::FEMALE, ActorManager::findBeingByName(), GroupDb::getHighlightName(), GroupDb::getName(), GroupDb::getShowBadge(), BeingFlag::GM, BeingFlag::INACTIVE, Gender::MALE, mGender, mGroup, mIsGM, mLevel, mNick, mStatus, mText, mVersion, ActorType::Player, Being::setAdvanced(), Being::setState(), BeingFlag::SHOP, and strprintf().
Referenced by WhoIsOnline::handlerPlayerRelation(), and WhoIsOnline::setNeutralColor().
◆ mGender
◆ mGroup
◆ mIsGM
◆ mLevel
signed char OnlinePlayer::mLevel |
|
private |
◆ mNick
std::string OnlinePlayer::mNick |
|
private |
◆ mStatus
unsigned char OnlinePlayer::mStatus |
|
private |
◆ mText
std::string OnlinePlayer::mText |
|
private |
◆ mVersion
signed char OnlinePlayer::mVersion |
|
private |
The documentation for this class was generated from the following files: