Changeset 9406 in orxonox.OLD for trunk/src/lib/network/synchronizeable_var/synchronizeable_float.h
- Timestamp:
- Jul 24, 2006, 11:09:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/synchronizeable_var/synchronizeable_float.h
r7954 r9406 2 2 * @file synchronizeable_float.h 3 3 * @brief Definition of SynchronizeableFloat 4 */4 */ 5 5 6 #include "synchronizeable_var/synchronizeable_var.h"7 6 8 7 #ifndef _SYNCHRONIZEABLE_FLOAT_H 9 8 #define _SYNCHRONIZEABLE_FLOAT_H 10 9 10 #include "synchronizeable_var.h" 11 11 12 class SynchronizeableFloat : public SynchronizeableVar { 12 13 13 14 public: 14 SynchronizeableFloat( float * ptrIn, float * ptrOut, std::string name, int permission = PERMISSION_ SERVER, int priority = 0 );15 SynchronizeableFloat( float * ptrIn, float * ptrOut, std::string name, int permission = PERMISSION_MASTER_SERVER, int priority = 0 ); 15 16 virtual ~SynchronizeableFloat(); 16 17 17 18 virtual int writeToBuf( byte * buf, int maxLength ); 18 19 virtual int readFromBuf( byte * buf, int maxLength ); 19 20 20 21 /** 21 22 * check if writeToBuf will return the same size every time … … 23 24 */ 24 25 virtual bool hasStaticSize(){ return true; }; 25 26 26 27 virtual void debug(); 27 28 28 29 private: 29 30 float * vPtrIn; //!< pointer to data (read)
Note: See TracChangeset
for help on using the changeset viewer.