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 / Example2 / Test1.h < prev   
Encoding:
C/C++ Source or Header  |  2005-10-30  |  1.3 KB  |  54 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 __TEST1_H__
  12. #define __TEST1_H__
  13.  
  14. #include "ExampleCustomType.h"
  15. #include "_RO_Test1.h"
  16.  
  17. // ExampleCustomType.h is also included by _RO_Test1.h
  18.  
  19.  
  20. class Test1 : _RO_DO_PUBLIC_RO(Test1)
  21. {
  22. public:
  23.     Test1();
  24.     virtual ~Test1();
  25.  
  26.     void RunTest(void);
  27.  
  28.     void APublicFunction(int ivalue,float fvalue);
  29.  
  30.     void APublicFunctionWithCustomTypeByValue(ExampleCustomType thing,int anotherValue);
  31.  
  32.     void APublicFunctionWithCustomTypeByReference(ExampleCustomType &thing,int anotherValue);
  33.  
  34. private:
  35. _RO_DO_ALLOW_FRIEND_RO(Test1);
  36.  
  37.     void APrivateFunction(float fvalue);
  38.  
  39.  
  40.     // This is called if or when ReplicaNet changes the owner of this object
  41.     void OwnerChange(void);
  42.  
  43.     // This function can be called to approve a fault recovery for the object.
  44.     // However the "ApproveFault();" line in _RO_Test1.rol also does this so this function is not needed here
  45.     /*
  46.     bool ApproveFault(void)
  47.     {
  48.         return true;
  49.     }
  50.     */
  51. };
  52.  
  53. #endif
  54.