Changeset 4471 in orxonox.OLD for orxonox/trunk/src/lib/network
- Timestamp:
- Jun 2, 2005, 2:05:58 AM (20 years ago)
- Location:
- orxonox/trunk/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/network/synchronisable.cc
r3476 r4471 16 16 */ 17 17 18 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_NETWORK 18 19 19 20 #include "synchronisable.h" … … 23 24 24 25 25 26 /** 27 \brief constructor for this class 28 */ 26 29 Synchronisable::Synchronisable () {} 27 30 28 31 29 32 /** 33 \brief deconstructor for this class 34 */ 30 35 Synchronisable::~Synchronisable () {} 31 36 32 37 38 /** 39 \brief gets the state of this object 40 \returns the state 41 */ 42 worldEntityState* Synchronisable::getState() 43 {} 44 45 46 /** 47 \brief sets the state of this object 48 \param state: the current state 49 */ 50 void Synchronisable::setState(worldEntityState* state) 51 {} -
orxonox/trunk/src/lib/network/synchronisable.h
r3476 r4471 1 /*! 2 \file synchronisable.h 3 \brief informations about objects, that needs to be synchronized over the network 4 5 this is just an idea, no implementatin yet. but sounds very good to me! 6 */ 1 7 2 8 #ifndef _SYNCHRONISABLE_H 3 9 #define _SYNCHRONISABLE_H 4 10 5 #include "data_tank.h"6 11 7 12 13 //! this is a... ehm... i have no idea... 14 typedef struct worldEntityState 15 { 16 int entity; //!< probably a entity id? hm... 17 }; 18 19 20 //! an abstract class to handle the synchronisation process 8 21 class Synchronisable { 9 22 … … 12 25 ~Synchronisable (); 13 26 14 struct worldEntityState { 15 /*Vector position; */ 16 /*Vector orientation; */ 17 }; 27 worldEntityState* getState(); 28 void setState(worldEntityState* state); 18 29 19 worldEntityState* getState(); 20 void setState(worldEntityState*); 21 30 worldentityState state; //!< the current state of the object 22 31 }; 23 32
Note: See TracChangeset
for help on using the changeset viewer.