home *** CD-ROM | disk | FTP | other *** search
/ Game Programming in C++ - Start to Finish / GameProgrammingS.iso / developer_install / ReplicaNetFreewareV5_4.exe / data1.cab / Program_Executable_Files / Example6 / AnObject.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-30  |  1.2 KB  |  50 lines

  1. /* START_LICENSE_HEADER
  2.  
  3. Copyright (C) 2000 Martin Piper, original design and program code
  4. Copyright (C) 2001-2005 Replica Software
  5.  
  6. This program file is copyright (C) Replica Software and can only be used under license.
  7. For more information visit: http://www.replicanet.com/
  8. Or email: info@replicanet.com
  9.  
  10. END_LICENSE_HEADER */
  11. #ifndef __ANOBJECT_H__
  12. #define __ANOBJECT_H__
  13.  
  14. #include "_RO_AnObject.h"
  15.  
  16. #include "DataBlock_WatchedFloat.h"
  17. #include "NetworkVector3.h"
  18. #include "DataBlock_STL.h"
  19. #include <list>
  20. #include <vector>
  21.  
  22. class AnObject : _RO_DO_PUBLIC_RO(AnObject)
  23. {
  24. public:
  25.     AnObject();
  26.     virtual ~AnObject();
  27.  
  28.     // This is the new WatchedFloat DataBlock
  29.     WatchedFloat mWatchedValue;
  30.  
  31.     // The new DataBlock self registers without using the ROL
  32.     WatchedFloat mWatchedValueSelfRegister;
  33.  
  34.     // This is just an example of a normal integer that is an NData DataBlock
  35.     int mAnIntValue;
  36.  
  37.     NetworkVector3 mVector;
  38.  
  39.     std::list<float> mList;
  40.     DataBlock_STL<std::list<float> > mDataBlockList;
  41.  
  42.     std::vector<float> mSTLVector;        // This variable is declared in the _RO_AnObject.rol file.
  43.  
  44.     // This is called by ReplicaNet.
  45.     void UserRegisterDataBlocks(void);
  46. };
  47.  
  48.  
  49. #endif
  50.