eris 1.4.0
A WorldForge client library.
|
#include <Person.h>
Public Member Functions | |
Person (Lobby &l, const Atlas::Objects::Entity::Account &acc) | |
create a person from sight More... | |
void | sight (const Atlas::Objects::Entity::Account &acc) |
update a person based on sight More... | |
void | msg (const std::string &msg) |
const std::string & | getAccount () const |
access the Atlas account ID for this person More... | |
const std::string & | getName () const |
access the human-readable name for this person More... | |
Protected Attributes | |
const std::string | m_id |
the account ID More... | |
std::string | m_fullName |
the name, i.e account.GetName() More... | |
Lobby & | m_lobby |
the lobby owning this Person More... | |
An Out-of-Game Person (found in a Room / Lobby) As more person data becomes available, this class will be extended, for example to return nicknames, location, the choosen 'face' graphic.
Eris::Person::Person | ( | Lobby & | l, |
const Atlas::Objects::Entity::Account & | acc | ||
) |
create a person from sight
Definition at line 24 of file Person.cpp.
|
inline |
|
inline |
access the human-readable name for this person
Definition at line 31 of file Person.h.
References m_fullName.
void Eris::Person::msg | ( | const std::string & | msg | ) |
send a private message to a person
Definition at line 47 of file Person.cpp.
References Eris::Lobby::getAccount(), Eris::Lobby::getConnection(), Eris::Account::getId(), Eris::getNewSerialno(), Eris::BaseConnection::isConnected(), m_id, m_lobby, msg(), and Eris::Connection::send().
Referenced by msg().
void Eris::Person::sight | ( | const Atlas::Objects::Entity::Account & | acc | ) |
update a person based on sight
Definition at line 32 of file Person.cpp.
References m_fullName, and m_id.
|
protected |
|
protected |
the account ID
Definition at line 34 of file Person.h.
Referenced by getAccount(), msg(), and sight().
|
protected |