eris 1.4.0
A WorldForge client library.
Person.h
1#ifndef ERIS_PERSON_H
2#define ERIS_PERSON_H
3
4#include <string>
5#include <Atlas/Objects/ObjectsFwd.h>
6
7namespace Eris
8{
9
10class Lobby;
11
15class Person
16{
17public:
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
33protected:
34 const std::string m_id;
35 std::string m_fullName;
36
38};
39
40}
41
42#endif
std::string m_fullName
the name, i.e account.GetName()
Definition: Person.h:35
const std::string & getAccount() const
access the Atlas account ID for this person
Definition: Person.h:28
void msg(const std::string &msg)
Definition: Person.cpp:47
const std::string & getName() const
access the human-readable name for this person
Definition: Person.h:31
Person(Lobby &l, const Atlas::Objects::Entity::Account &acc)
create a person from sight
Definition: Person.cpp:24
const std::string m_id
the account ID
Definition: Person.h:34
void sight(const Atlas::Objects::Entity::Account &acc)
update a person based on sight
Definition: Person.cpp:32
Lobby & m_lobby
the lobby owning this Person
Definition: Person.h:37
Definition: Account.cpp:33