5 #include <Atlas/Objects/ObjectsFwd.h>
19 Person(
Lobby *l,
const Atlas::Objects::Entity::Account &acc);
22 void sight(
const Atlas::Objects::Entity::Account &acc);
25 void msg(
const std::string &
msg);
const std::string & getAccount() const
access the Atlas account ID for this person
Definition: Person.h:28
const std::string & getId() const
returns the account ID if logged in
Definition: Account.h:318
Lobby is the Out-of-Game session object, valid from connection to the server until disconnection.
Definition: Lobby.h:25
An Out-of-Game Person (found in a Room / Lobby) As more person data becomes available,...
Definition: Person.h:15
std::string m_fullName
the name, i.e account.GetName()
Definition: Person.h:35
Lobby * m_lobby
the lobby owning this Person
Definition: Person.h:37
void sight(const Atlas::Objects::Entity::Account &acc)
update a person based on sight
Definition: Person.cpp:32
const std::string m_id
the account ID
Definition: Person.h:34
Definition: LogStream.h:55
bool isConnected() const
Ascertain whether or not the connection is usable for transport.
Definition: BaseConnection.h:65
const std::string & getName() const
access the human-readable name for this person
Definition: Person.h:31
Account * getAccount() const
Retrive the Account which this lobbby is bound to.
Definition: Lobby.h:49
virtual void send(const Atlas::Objects::Root &obj)
Transmit an Atlas::Objects instance to the server.
Definition: Connection.cpp:147
Person(Lobby *l, const Atlas::Objects::Entity::Account &acc)
create a person from sight
Definition: Person.cpp:24
void msg(const std::string &msg)
send a private message to a person
Definition: Person.cpp:46
Connection * getConnection() const
Helper method to access the underlying Connection from the Account.
Definition: Lobby.cpp:188