home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mnth0108.zip / Timur / terrain.h < prev    next >
Text File  |  1993-03-14  |  1KB  |  35 lines

  1. /* TERRAIN.H
  2.  
  3. Copyright (c) 1993 Timur Tabi
  4. Copyright (c) 1993 Fasa Corporation
  5.  
  6. The following trademarks are the property of Fasa Corporation:
  7. BattleTech, CityTech, AeroTech, MechWarrior, BattleMech, and 'Mech.
  8. The use of these trademarks should not be construed as a challenge to these marks.
  9.  
  10. */
  11.  
  12. typedef struct {
  13.   int iMenuID;                  // The menu ID
  14.   HBITMAP hbm;                  // If there's a bitmap, then this is non-zero
  15.   BYTE bColor;                  // The color, if hbm==0
  16.   BYTE bPattern;                // The pattern, if hbm==0
  17.   int iVisibility;              // A measure of the terrains transparency
  18. } TERRAIN;
  19.  
  20. #define NUM_TERRAINS  11        // We'll make this configurable in the future, somehow
  21.  
  22. #ifdef TERRAIN_C
  23. #define EXTERN
  24. #else
  25. #define EXTERN extern
  26. #endif
  27.  
  28. EXTERN TERRAIN ater[NUM_TERRAINS];      // One for each terrain;
  29. EXTERN int iCurTer;                     // The current terrain ID (NOT THE MENU ID!!!!)
  30.  
  31. #undef EXTERN
  32.  
  33. void TerrainInit(void);
  34. int TerrainIdFromMenu(int iMenuID);
  35.