TerrainVisual.cpp 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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: TerrainVisual.cpp ////////////////////////////////////////////////////////////////////////
  24. // Interface for visual representation of terrain on the client
  25. // Author: Colin Day, April 2001
  26. ///////////////////////////////////////////////////////////////////////////////////////////////////
  27. #include "PreRTS.h" // This must go first in EVERY cpp file int the GameEngine
  28. #include "Common/Xfer.h"
  29. #include "GameClient/TerrainVisual.h"
  30. // GLOBALS ////////////////////////////////////////////////////////////////////////////////////////
  31. TerrainVisual *TheTerrainVisual = NULL;
  32. ///////////////////////////////////////////////////////////////////////////////////////////////////
  33. // DEFINITIONS
  34. ///////////////////////////////////////////////////////////////////////////////////////////////////
  35. //-------------------------------------------------------------------------------------------------
  36. //-------------------------------------------------------------------------------------------------
  37. TerrainVisual::TerrainVisual()
  38. {
  39. } // end TerrainVisual
  40. //-------------------------------------------------------------------------------------------------
  41. //-------------------------------------------------------------------------------------------------
  42. TerrainVisual::~TerrainVisual()
  43. {
  44. } // end ~TerrainVisual
  45. //-------------------------------------------------------------------------------------------------
  46. /** initialize the device independent functionality of the visual terrain */
  47. //-------------------------------------------------------------------------------------------------
  48. void TerrainVisual::init( void )
  49. {
  50. } // end init
  51. //-------------------------------------------------------------------------------------------------
  52. /** Reset */
  53. //-------------------------------------------------------------------------------------------------
  54. void TerrainVisual::reset( void )
  55. {
  56. m_filenameString.clear();
  57. } // end reset
  58. //-------------------------------------------------------------------------------------------------
  59. /** Update */
  60. //-------------------------------------------------------------------------------------------------
  61. void TerrainVisual::update( void )
  62. {
  63. // All the interesting stuff happens in load. jba.
  64. } // end update
  65. //-------------------------------------------------------------------------------------------------
  66. /** device independent implementation for common terrain visual systems */
  67. //-------------------------------------------------------------------------------------------------
  68. Bool TerrainVisual::load( AsciiString filename )
  69. {
  70. // save the filename
  71. if (filename.isEmpty())
  72. return FALSE;
  73. m_filenameString = filename;
  74. return TRUE;; // success
  75. } // end load
  76. // ------------------------------------------------------------------------------------------------
  77. /** CRC */
  78. // ------------------------------------------------------------------------------------------------
  79. void TerrainVisual::crc( Xfer *xfer )
  80. {
  81. } // end CRC
  82. // ------------------------------------------------------------------------------------------------
  83. /** Xfer
  84. * Version Info:
  85. * 1: Initial version */
  86. // ------------------------------------------------------------------------------------------------
  87. void TerrainVisual::xfer( Xfer *xfer )
  88. {
  89. // version
  90. XferVersion currentVersion = 1;
  91. XferVersion version = currentVersion;
  92. xfer->xferVersion( &version, currentVersion );
  93. } // end xfer
  94. // ------------------------------------------------------------------------------------------------
  95. /** Load post process */
  96. // ------------------------------------------------------------------------------------------------
  97. void TerrainVisual::loadPostProcess( void )
  98. {
  99. } // end loadPostProcess