Eris  1.3.23
Person.h
1 #ifndef ERIS_PERSON_H
2 #define ERIS_PERSON_H
3 
4 #include <string>
5 #include <Atlas/Objects/ObjectsFwd.h>
6 
7 namespace Eris
8 {
9 
10 class Lobby;
11 
15 class Person
16 {
17 public:
19  Person(Lobby *l, const Atlas::Objects::Entity::Account &acc);
20 
22  void sight(const Atlas::Objects::Entity::Account &acc);
23 
25  void msg(const std::string &msg);
26 
28  const std::string& getAccount() const { return m_id; }
29 
31  const std::string& getName() const {return m_fullName;}
32 
33 protected:
34  const std::string m_id;
35  std::string m_fullName;
36 
38 };
39 
40 }
41 
42 #endif
Eris::Person::getAccount
const std::string & getAccount() const
access the Atlas account ID for this person
Definition: Person.h:28
Eris::Account::getId
const std::string & getId() const
returns the account ID if logged in
Definition: Account.h:318
Eris::Lobby
Lobby is the Out-of-Game session object, valid from connection to the server until disconnection.
Definition: Lobby.h:26
Eris::Person
An Out-of-Game Person (found in a Room / Lobby) As more person data becomes available,...
Definition: Person.h:16
Eris::Person::m_fullName
std::string m_fullName
the name, i.e account.GetName()
Definition: Person.h:35
Eris::Person::m_lobby
Lobby * m_lobby
the lobby owning this Person
Definition: Person.h:37
Eris::Person::sight
void sight(const Atlas::Objects::Entity::Account &acc)
update a person based on sight
Definition: Person.cpp:32
Eris::Person::m_id
const std::string m_id
the account ID
Definition: Person.h:34
Eris::error
Definition: LogStream.h:56
Eris::BaseConnection::isConnected
bool isConnected() const
Ascertain whether or not the connection is usable for transport.
Definition: BaseConnection.h:65
Eris::Person::getName
const std::string & getName() const
access the human-readable name for this person
Definition: Person.h:31
Eris::Lobby::getAccount
Account * getAccount() const
Retrive the Account which this lobbby is bound to.
Definition: Lobby.h:49
Eris::Connection::send
virtual void send(const Atlas::Objects::Root &obj)
Transmit an Atlas::Objects instance to the server.
Definition: Connection.cpp:147
Eris::Person::Person
Person(Lobby *l, const Atlas::Objects::Entity::Account &acc)
create a person from sight
Definition: Person.cpp:24
Eris::Person::msg
void msg(const std::string &msg)
send a private message to a person
Definition: Person.cpp:46
Eris::Lobby::getConnection
Connection * getConnection() const
Helper method to access the underlying Connection from the Account.
Definition: Lobby.cpp:188