home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 030.lha / Ogre / ogre.h < prev    next >
Text File  |  1986-11-10  |  1KB  |  82 lines

  1. /*
  2.  * ogre.h
  3.  */
  4.  
  5. typedef struct
  6. {
  7.    char type;
  8.    char attack;
  9.    char range;
  10.    char defend;
  11.    char movement;
  12.    char range_to_ogre;
  13.    char fired;
  14.    char moves_left;
  15.    char status;
  16.    char l_hex;
  17.    char r_hex;
  18. }  UNIT;
  19.  
  20. typedef struct
  21. {
  22.    char missiles;
  23.    char main_bats;
  24.    char sec_bats;
  25.    char ap;
  26.    char treads;
  27.    char movement;
  28.    char moves_left;
  29.    char l_hex;
  30.    char r_hex;
  31.    char init_treads;
  32. }  OGRE;
  33.  
  34. /* unit types */
  35.  
  36. #define CP        'C'
  37. #define HVYTANK   'T'
  38. #define MSLTANK   'M'
  39. #define GEV       'G'
  40. #define HOWITZER  'H'
  41. #define INFANTRY  'I'
  42.  
  43. /* unit statuses */
  44.  
  45. #define OK        1
  46. #define DISABLED  2
  47. #define DESTROYED 3
  48.  
  49. /*directions */
  50.  
  51. #define RIGHT     'd'
  52. #define UPRIGHT   'e'
  53. #define DOWNRIGHT 'x'
  54. #define LEFT      'a'
  55. #define UPLEFT    'w'
  56. #define DOWNLEFT  'z'
  57. #define SIT       's'
  58. #define HELPKEY   '?'
  59.  
  60. #define TRUE      1
  61. #define FALSE     0
  62.  
  63. #define N_UNITS   30
  64.  
  65. /* ogre weapon stats */
  66.  
  67. #define DEF_MISSILES 3
  68. #define DEF_MAIN  4
  69. #define DEF_SECONDARY   3
  70. #define DEF_AP    1
  71.  
  72. #define ATK_MISSILES 6
  73. #define ATK_MAIN  4
  74. #define ATK_SECONDARY   3
  75. #define ATK_AP    1
  76.  
  77. #define RANGE_MISSILES 5
  78. #define RANGE_MAIN   3
  79. #define RANGE_SECONDARY 2
  80. #define RANGE_AP  1
  81.  
  82.