Changeset 9406 in orxonox.OLD for trunk/src/lib/network/synchronizeable.h
- Timestamp:
- Jul 24, 2006, 11:09:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/synchronizeable.h
r8708 r9406 1 1 /*! 2 2 * @file synchronizeable.h 3 \brief interface for all classes that have to be synchronized3 * @brief interface for all classes that have to be synchronized 4 4 */ 5 5 … … 8 8 9 9 #include "base_object.h" 10 #include "netdefs.h" 11 #include "converter.h" 12 #include "vector.h" 13 #include "quaternion.h" 10 14 11 #include "synchronizeable_var/synchronizeable_var.h" 15 12 #include "synchronizeable_var/synchronizeable_vector.h" … … 20 17 #include "synchronizeable_var/synchronizeable_bool.h" 21 18 #include "synchronizeable_var/synchronizeable_uint.h" 22 19 #include "synchronizeable_var/synchronizeable_ip.h" 23 20 24 21 #include <vector> 25 22 #include <list> 26 23 27 //State constants: They have to be of the form 2^n28 #define STATE_SERVER 129 24 30 25 struct StateHistoryEntry … … 51 46 virtual ~Synchronizeable(); 52 47 53 void setIsServer( bool isServer );54 bool isServer();55 56 48 virtual void varChangeHandler( std::list<int> & id ); 57 49 … … 61 53 virtual void handleSentState( int userId, int stateId, int fromStateId ); 62 54 virtual void handleRecvState( int userId, int stateId, int fromStateId ); 63 55 64 56 void registerVar( SynchronizeableVar * var ); 65 57 int registerVarId( SynchronizeableVar * var ); … … 82 74 protected: 83 75 NetworkStream* networkStream; //!< reference network stream we are connected to 84 int state; 76 85 77 86 78 private:
Note: See TracChangeset
for help on using the changeset viewer.