Atlas-C++
|
Player accounts. More...
#include <Entity.h>
Public Member Functions | |
virtual PlayerData * | copy () const |
Copy this object. | |
virtual bool | instanceOf (int classNo) const |
Is this instance of some class? | |
virtual void | iterate (int ¤t_class, std::string &attr) const |
Iterate over the attributes of this instance. | |
virtual void | free () |
Free an instance of this class, returning it to the memory pool. More... | |
virtual PlayerData * | getDefaultObject () |
Get the reference object that contains the default values for attributes of instances of the same class as this object. More... | |
![]() | |
virtual int | copyAttr (const std::string &name, Atlas::Message::Element &attr) const |
Retrieve the attribute "name". More... | |
virtual void | setAttr (const std::string &name, const Atlas::Message::Element &attr) |
Set the attribute "name" to the value given by"attr". | |
virtual void | removeAttr (const std::string &name) |
Remove the attribute "name". This will not work for static attributes. | |
virtual void | sendContents (Atlas::Bridge &b) const |
Send the contents of this object to a Bridge. | |
virtual void | addToMessage (Atlas::Message::MapType &) const |
Write this object to an existing Element. | |
void | setUsername (const std::string &val) |
Set the "username" attribute. | |
void | setPassword (const std::string &val) |
Set the "password" attribute. | |
void | setCharacters (const std::list< std::string > &val) |
Set the "characters" attribute. | |
void | setCharactersAsList (const Atlas::Message::ListType &val) |
Set the "characters" attribute AsList. | |
const std::string & | getUsername () const |
Retrieve the "username" attribute. | |
std::string & | modifyUsername () |
Retrieve the "username" attribute as a non-const reference. | |
const std::string & | getPassword () const |
Retrieve the "password" attribute. | |
std::string & | modifyPassword () |
Retrieve the "password" attribute as a non-const reference. | |
const std::list< std::string > & | getCharacters () const |
Retrieve the "characters" attribute. | |
std::list< std::string > & | modifyCharacters () |
Retrieve the "characters" attribute as a non-const reference. | |
const Atlas::Message::ListType | getCharactersAsList () const |
Retrieve the "characters" attribute AsList. | |
bool | isDefaultUsername () const |
Is "username" value default? | |
bool | isDefaultPassword () const |
Is "password" value default? | |
bool | isDefaultCharacters () const |
Is "characters" value default? | |
Static Public Member Functions | |
static PlayerData * | alloc () |
static PlayerData * | getDefaultObjectInstance () |
Get the reference object that contains the default values for attributes of instances of this class. More... | |
![]() | |
static AccountData * | alloc () |
static AccountData * | getDefaultObjectInstance () |
Get the reference object that contains the default values for attributes of instances of this class. More... | |
![]() | |
static AdminEntityData * | alloc () |
static AdminEntityData * | getDefaultObjectInstance () |
Get the reference object that contains the default values for attributes of instances of this class. More... | |
![]() | |
static RootEntityData * | alloc () |
static RootEntityData * | getDefaultObjectInstance () |
Get the reference object that contains the default values for attributes of instances of this class. More... | |
![]() | |
static RootData * | alloc () |
static RootData * | getDefaultObjectInstance () |
Get the reference object that contains the default values for attributes of instances of this class. More... | |
![]() | |
static BaseObjectData * | alloc () |
Allocate a new instance of this class, using an existing instance if available. More... | |
Protected Member Functions | |
PlayerData (PlayerData *defaults=NULL) | |
Construct a PlayerData class definition. | |
virtual | ~PlayerData () |
Default destructor. | |
![]() | |
AccountData (AccountData *defaults=NULL) | |
Construct a AccountData class definition. | |
virtual | ~AccountData () |
Default destructor. | |
virtual int | getAttrClass (const std::string &name) const |
Find the class which contains the attribute "name". | |
virtual int | getAttrFlag (const std::string &name) const |
Find the flag for the attribute "name". | |
void | sendUsername (Atlas::Bridge &) const |
Send the "username" attribute to an Atlas::Bridge. | |
void | sendPassword (Atlas::Bridge &) const |
Send the "password" attribute to an Atlas::Bridge. | |
void | sendCharacters (Atlas::Bridge &) const |
Send the "characters" attribute to an Atlas::Bridge. | |
![]() | |
AdminEntityData (AdminEntityData *defaults=NULL) | |
Construct a AdminEntityData class definition. | |
virtual | ~AdminEntityData () |
Default destructor. | |
![]() | |
RootEntityData (RootEntityData *defaults=NULL) | |
Construct a RootEntityData class definition. | |
virtual | ~RootEntityData () |
Default destructor. | |
void | sendLoc (Atlas::Bridge &) const |
Send the "loc" attribute to an Atlas::Bridge. | |
void | sendPos (Atlas::Bridge &) const |
Send the "pos" attribute to an Atlas::Bridge. | |
void | sendVelocity (Atlas::Bridge &) const |
Send the "velocity" attribute to an Atlas::Bridge. | |
void | sendContains (Atlas::Bridge &) const |
Send the "contains" attribute to an Atlas::Bridge. | |
void | sendStampContains (Atlas::Bridge &) const |
Send the "stamp_contains" attribute to an Atlas::Bridge. | |
![]() | |
RootData (RootData *defaults=NULL) | |
Construct a RootData class definition. | |
virtual | ~RootData () |
Default destructor. | |
void | sendId (Atlas::Bridge &) const |
Send the "id" attribute to an Atlas::Bridge. | |
void | sendParents (Atlas::Bridge &) const |
Send the "parents" attribute to an Atlas::Bridge. | |
void | sendStamp (Atlas::Bridge &) const |
Send the "stamp" attribute to an Atlas::Bridge. | |
void | sendObjtype (Atlas::Bridge &) const |
Send the "objtype" attribute to an Atlas::Bridge. | |
void | sendName (Atlas::Bridge &) const |
Send the "name" attribute to an Atlas::Bridge. | |
Additional Inherited Members | |
![]() | |
std::string | attr_username |
Username for account usually. | |
std::string | attr_password |
Password for account usually. | |
std::list< std::string > | attr_characters |
List of characters account can control. | |
Player accounts.
Later in hierarchy tree objtype changes to 'object' when actual game objects are made.
|
virtual |
Free an instance of this class, returning it to the memory pool.
This function in combination with alloc() handle the memory pool.
Reimplemented from Atlas::Objects::Entity::AccountData.
|
virtual |
Get the reference object that contains the default values for attributes of instances of the same class as this object.
Reimplemented from Atlas::Objects::Entity::AccountData.
|
static |
Get the reference object that contains the default values for attributes of instances of this class.
Copyright 2000-2004 the respective authors.
This document can be licensed under the terms of the GNU Free Documentation License or the GNU General Public License and may be freely distributed under the terms given by one of these licenses.