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 / Example9 / Plane.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-30  |  1.2 KB  |  67 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. /*
  12. See Plane.cpp
  13. */
  14. #ifndef __PLANE_H__
  15. #define __PLANE_H__
  16.  
  17. #include "d3dfile.h"
  18.  
  19. #include "GameObject.h"
  20. #include "Shadow.h"
  21.  
  22. #include "_RO_Plane.h"
  23. #include <set>
  24.  
  25. class Plane : _RO_DO_PUBLIC_RO(Plane) , public GameObject
  26. {
  27. public:
  28.     Plane();
  29.     virtual ~Plane();
  30.  
  31.     void Render(void);
  32.  
  33.     void PollIt(void);
  34.  
  35.     D3DXVECTOR4 GetPosition(void)
  36.     {
  37.         return mPosition;
  38.     }
  39.  
  40.     void SetPosition(D3DXVECTOR4 position)
  41.     {
  42.         mPosition = position;
  43.     }
  44.  
  45.     D3DXVECTOR4 GetRotation(void)
  46.     {
  47.         return mRotation;
  48.     }
  49.  
  50.     void SetRotation(D3DXVECTOR4 rotation)
  51.     {
  52.         mRotation = rotation;
  53.     }
  54.  
  55.     CD3DMesh *mMesh;
  56.     ShadowVolume *mShadow;
  57.     D3DXMATRIX    m_matObjectMatrix;
  58.  
  59. /* These variables are defined in the ROL file for this object */
  60. private:
  61. _RO_DO_ALLOW_FRIEND_RO(Plane);
  62.     D3DXVECTOR4 mPosition;
  63.     D3DXVECTOR4 mRotation;
  64. };
  65.  
  66. #endif
  67.