dterrain.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //---------------------------------------------------------------------------
  2. //
  3. // DTerrain.h -- File contains definitions for Terrain and Terrain Window classes
  4. //
  5. //---------------------------------------------------------------------------//
  6. // Copyright (C) Microsoft Corporation. All rights reserved. //
  7. //===========================================================================//
  8. #ifndef DTERRAIN_H
  9. #define DTERRAIN_H
  10. //---------------------------------------------------------------------------
  11. // Include Files
  12. //---------------------------------------------------------------------------
  13. // Macro Definitions
  14. /*
  15. #define WATER 42
  16. #define DIRT 0
  17. #define GRASS 1
  18. #define ROUGH 2
  19. #define MOUNTAIN 3
  20. #define GRASS2DIRT 4
  21. #define DIRT2WATER 44
  22. #define GRASS2WATER 43
  23. #define MOUNT2GRASS 16
  24. #define MOUNT2DIRT 27
  25. #define CLIFF 40
  26. */
  27. /*
  28. #define VERROAD 59
  29. #define R2W 61
  30. #define HORROAD 49
  31. #define ROAD HORROAD
  32. #define RIVER 43
  33. #define LEFT 8
  34. #define RIGHT 2
  35. #define UP 1
  36. #define DOWN 4
  37. #define VERTICAL 0
  38. #define HORIZONTAL 1
  39. */
  40. #define TILESPERSIDE (Terrain::visibleVerticesPerSide - 1)
  41. //---------------------------------------------------------------------------
  42. // Class Definitions
  43. class Terrain;
  44. typedef Terrain *TerrainPtr;
  45. class TerrainWindow;
  46. typedef TerrainWindow *TerrainWindowPtr;
  47. //---------------------------------------------------------------------------
  48. #endif
  49. //---------------------------------------------------------------------------
  50. //
  51. // Edit Log
  52. //
  53. //---------------------------------------------------------------------------