Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

Player.h

00001 // This file may be redistributed and modified only under the terms of
00002 // the GNU Lesser General Public License (See COPYING for details).
00003 // Copyright 2000-2001 Stefanus Du Toit and Alistair Riddoch.
00004 // Automatically generated using gen_cc.py.
00005 
00006 #ifndef ATLAS_OBJECTS_ENTITY_PLAYER_H
00007 #define ATLAS_OBJECTS_ENTITY_PLAYER_H
00008 
00009 #include <Atlas/Objects/Entity/Account.h>
00010 
00011 
00012 namespace Atlas { namespace Objects { namespace Entity { 
00013 
00019 class Player : public Account
00020 {
00021 public:
00023     Player();
00024   protected:
00025     Player(const std::string&,const std::string&);
00026   public:
00028     virtual ~Player();
00029 
00031     static Player Instantiate();
00032 
00034     virtual bool HasAttr(const std::string& name)const;
00037     virtual Atlas::Message::Object GetAttr(const std::string& name)
00038             const throw (NoSuchAttrException);
00040     virtual void SetAttr(const std::string& name,
00041                          const Atlas::Message::Object& attr);
00043     virtual void RemoveAttr(const std::string& name);
00044 
00046     virtual void SendContents(Atlas::Bridge* b) const;
00047 
00049     virtual Atlas::Message::Object AsObject() const;
00050 
00052     virtual Atlas::Message::Object::MapType AsMap() const;
00053 
00055     inline void SetCharacters(const Atlas::Message::Object::ListType& val);
00056 
00058     inline const Atlas::Message::Object::ListType& GetCharacters() const;
00060     inline Atlas::Message::Object::ListType& GetCharacters();
00061 
00062 protected:
00063     Atlas::Message::Object::ListType attr_characters;
00064 
00065     inline void SendCharacters(Atlas::Bridge*) const;
00066 
00067 };
00068 
00069 //
00070 // Inlined member functions follow.
00071 //
00072 
00073 void Player::SetCharacters(const Atlas::Message::Object::ListType& val)
00074 {
00075     attr_characters = val;
00076 }
00077 
00078 const Atlas::Message::Object::ListType& Player::GetCharacters() const
00079 {
00080     return attr_characters;
00081 }
00082 
00083 Atlas::Message::Object::ListType& Player::GetCharacters()
00084 {
00085     return attr_characters;
00086 }
00087 
00088 
00089 } } } // namespace Atlas::Objects::Entity
00090 
00091 #endif // ATLAS_OBJECTS_ENTITY_PLAYER_H

Copyright 2000 the respective authors.

This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.