Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CL_World Class Template Reference

#include <world_template.h>

Collaboration diagram for CL_World:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_World (CL_NetSession *session, int object_netchannel)
 Construction:.

virtual ~CL_World ()
CL_NetObjectChannelget_netobject_channel ()
 Attributes:.

CL_NetSessionget_session ()
std::list<GameObject *>& get_objects ()
void set_max_tick_elapsed (float time)
 Operations:.

void add_object (GameObject *object)
void remove_object (GameObject *object)
void update ()

Protected Methods

virtual void on_create_object (const CL_NetObject &netobj, int msgType, const std::string &message)
 Overrideables:.


Private Methods

void sig_create_object (const CL_NetObject &netobj, int msgType, const std::string &message)
 Implementation:.


Private Attributes

std::list<GameObject *> objects
CL_NetSessionsession
CL_NetObjectChannel netobject_channel
float max_tick_elapsed
unsigned long last_time
CL_Slot slot_create_object

template<class GameObject> class CL_World


Constructor & Destructor Documentation

template<class GameObject>
CL_World<GameObject>::CL_World<GameObject> ( CL_NetSession * session,
int object_netchannel ) [inline]
 

Construction:.

Definition at line 178 of file world_template.h.

template<class GameObject>
CL_World<GameObject>::~CL_World<GameObject> ( ) [inline, virtual]
 

Definition at line 189 of file world_template.h.


Member Function Documentation

template<class GameObject>
void CL_World<GameObject>::add_object ( GameObject * object ) [inline]
 

Definition at line 205 of file world_template.h.

template<class GameObject>
CL_NetObjectChannel & CL_World<GameObject>::get_netobject_channel ( ) [inline]
 

Attributes:.

Definition at line 195 of file world_template.h.

template<class GameObject>
std::list< GameObject *> & CL_World<GameObject>::get_objects<GameObject *> ( ) [inline]
 

Definition at line 199 of file world_template.h.

template<class GameObject>
CL_NetSession * CL_World<GameObject>::get_session ( ) [inline]
 

Definition at line 197 of file world_template.h.

template<class GameObject>
void CL_World<GameObject>::on_create_object ( const CL_NetObject & netobj,
int msgType,
const std::string & message ) [inline, protected, virtual]
 

Overrideables:.

Definition at line 235 of file world_template.h.

Referenced by sig_create_object().

template<class GameObject>
void CL_World<GameObject>::remove_object ( GameObject * object ) [inline]
 

Definition at line 207 of file world_template.h.

template<class GameObject>
void CL_World<GameObject>::set_max_tick_elapsed ( float time ) [inline]
 

Operations:.

Definition at line 203 of file world_template.h.

template<class GameObject>
void CL_World<GameObject>::sig_create_object ( const CL_NetObject & netobj,
int msgType,
const std::string & message ) [inline, private]
 

Implementation:.

Definition at line 242 of file world_template.h.

template<class GameObject>
void CL_World<GameObject>::update ( ) [inline]
 

Definition at line 209 of file world_template.h.


Member Data Documentation

template<class GameObject>
unsigned long CL_World<GameObject>::last_time [private]
 

Definition at line 256 of file world_template.h.

template<class GameObject>
float CL_World<GameObject>::max_tick_elapsed [private]
 

Definition at line 255 of file world_template.h.

template<class GameObject>
CL_NetObjectChannel CL_World<GameObject>::netobject_channel [private]
 

Definition at line 254 of file world_template.h.

template<class GameObject>
std::list<GameObject *> CL_World<GameObject>::objects [private]
 

Definition at line 252 of file world_template.h.

template<class GameObject>
CL_NetSession* CL_World<GameObject>::session [private]
 

Definition at line 253 of file world_template.h.

template<class GameObject>
CL_Slot CL_World<GameObject>::slot_create_object [private]
 

Definition at line 257 of file world_template.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:57:39 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001