W3DGameLogic.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. ** Command & Conquer Generals(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. ////////////////////////////////////////////////////////////////////////////////
  19. // //
  20. // (c) 2001-2003 Electronic Arts Inc. //
  21. // //
  22. ////////////////////////////////////////////////////////////////////////////////
  23. // FILE: W3DGameLogic.h ///////////////////////////////////////////////////////
  24. //
  25. // W3D game logic class, there shouldn't be a lot of new functionality
  26. // in this class, but there are certain things that need to have close
  27. // knowledge of each other like ther logical and visual terrain
  28. //
  29. // Author: Colin Day, April 2001
  30. ///////////////////////////////////////////////////////////////////////////////
  31. #pragma once
  32. #ifndef __W3DGAMELOGIC_H_
  33. #define __W3DGAMELOGIC_H_
  34. // SYSTEM INCLUDES ////////////////////////////////////////////////////////////
  35. // USER INCLUDES //////////////////////////////////////////////////////////////
  36. #include "GameLogic/GameLogic.h"
  37. #include "W3DDevice/GameLogic/W3DTerrainLogic.h"
  38. #include "W3DDevice/GameLogic/W3DGhostObject.h"
  39. class W3DGhostObjectManager;
  40. ///////////////////////////////////////////////////////////////////////////////
  41. // PROTOTYPES /////////////////////////////////////////////////////////////////
  42. ///////////////////////////////////////////////////////////////////////////////
  43. //-----------------------------------------------------------------------------
  44. // W3DGameLogic
  45. //-----------------------------------------------------------------------------
  46. /** W3D specific functionality for game logic */
  47. //-----------------------------------------------------------------------------
  48. class W3DGameLogic : public GameLogic
  49. {
  50. public:
  51. protected:
  52. /// factory for TheTerrainLogic, called from init()
  53. virtual TerrainLogic *createTerrainLogic( void ) { return NEW W3DTerrainLogic; };
  54. virtual GhostObjectManager *createGhostObjectManager(void) { return NEW W3DGhostObjectManager; }
  55. }; // end class W3DGameLogic
  56. #endif // end __W3DGAMELOGIC_H_