home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 2.4 / 1996-05_-_Disc_2.4.bin / atdemo / hudtype.hpp < prev    next >
C/C++ Source or Header  |  1995-08-08  |  2KB  |  45 lines

  1. //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  2. //              (c) Intelligent Games Ltd. 1995 All Rights Reserved
  3. //
  4. //              HUDTYPE.HPP
  5. //
  6. //              Provides types for HUD information.
  7. //
  8. //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  9.  
  10. #ifndef _HUDTYPE
  11. #define _HUDTYPE
  12.  
  13. // These are all the possible substances objects in the world can be constructed out of.
  14. // This information is used for HUD information only.
  15. typedef enum {eMetal, eMetalCorroded, eParchment, eWood, eGrailstone, eGold, eSilver, eBone, eAnimalHorn,
  16.                              eAlgae, eWater, eSteam, eStone, eGlass, eLeather, eGrain, eWax, eBlood, eInk,
  17.                              eVolatileChemical, eWovenFibres, ePreciousStone} TSubstance;
  18.  
  19.  
  20. // Max length of a message to display on the HUD.
  21. typedef char THUDMessage[200];
  22.  
  23. // Additional information for each object that the HUD will display when scanned, advance scanned.
  24. typedef struct
  25. {
  26.     float fWeight;      // kg
  27.     u2 fPrice;              // $
  28.     u2 fLength;         // cm
  29.     u2 fWidth;           // cm  
  30.     u2 fHeight;          // cm
  31.     u2 fTemperature; // Degrees C
  32.     TSubstance fSubstance;         //  Substance the object is made of. 
  33.     THUDMessage fScanString;                    // First information string displayed by HUD when scanned.
  34.     THUDMessage fAdvanceScanString;  // Advanced scan information string.
  35. } TObjectHUDInformation;
  36.  
  37.     
  38. extern ch * GetHUDMessage( u2 index );
  39. /* Reads in a HUD message.  A pointer to the string is allocated and should
  40.    be freed after use. */
  41.    
  42. #endif
  43.  
  44.  
  45.