home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / conqsrc.lha / Conquest / src / structs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-03  |  1.7 KB  |  89 lines

  1. typedef int boolean;
  2. typedef unsigned int uint;
  3.  
  4. typedef struct ssector
  5. {
  6.   int enemy, star, tf;
  7. } sector;
  8.  
  9. typedef struct ssector tboard[MAX_BOARD_SIZE+1][MAX_BOARD_SIZE+1];
  10.  
  11. /* This one is to be removed where possible */
  12. typedef int tteam;
  13.  
  14. /* typedef enum {FALSE, TRUE} bool; Why not??? */
  15. typedef int bool;
  16.  
  17. #define NONE    2
  18. #define ENEMY   0
  19. #define PLAYER  1
  20. /* Obsolete */
  21. #define player  1
  22. #define none    2
  23.  
  24. typedef struct sttf 
  25. {
  26.   int x,y,xf,yf,
  27.   s,t,c,b,
  28.   dest,eta,origeta;
  29.   int blasting, withdrew;
  30. } ttf;
  31.  
  32. typedef struct ststar 
  33. {
  34.   int x, y;
  35.   struct stplanet *first_planet;
  36.   int visit[2];
  37. } tstar;
  38.  
  39. typedef struct stplanet 
  40. {
  41.   int number,capacity,psee_capacity;
  42.   int team;
  43.   int inhabitants,iu,mb,amb;
  44.   int conquered,under_attack;
  45.   int esee_team;  /*the   team when the enemy last saw it*/
  46.   int esee_def;   /*the   mbs when enemy last saw it*/
  47.   int pstar;
  48.   struct stplanet *next;
  49. } tplanet;
  50.  
  51. typedef struct stplayer
  52. {
  53.   int tf_stars[MAX_NUM_STARS+1];
  54.   int col_stars[MAX_NUM_STARS+1];
  55.   struct sttf tf[27];
  56.   float growth_rate[2];
  57.   int vel, range, weapons, weap_working, ran_working, vel_working;
  58. } tplayer;
  59.  
  60. struct config
  61. {
  62.   bool stars_ordered; /* Are the starts ordered by quality? */
  63.   uint difficulty;     /* How much does the computer cheat? */
  64.   uint board_width;    /* Dimensions of the active part */
  65.   uint board_height;
  66.   uint num_stars;      /* Number of stars, max 27 */
  67. };
  68.  
  69.  
  70.  
  71. typedef int toption;
  72. #define right   0
  73. #define left    1
  74. #define both    2
  75.  
  76. typedef int termtype;
  77. #define hardcopy        0
  78. #define adm3    1
  79. #define vt52    2
  80. #define concept 3
  81. #define vi      4
  82. #define vis400  5
  83. #define unknown 6
  84.  
  85. /* Don't know diddly about these, really, so I just assume... */
  86. #define vt100   vt52
  87. #define xterm   vt52
  88. #define hpterm  vt52
  89.