home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / TANK11.ZIP / SOURCE.ZIP / TYPES.H < prev    next >
Text File  |  1993-01-16  |  806b  |  34 lines

  1. /* TYPES.H  Type definitions for the tank game */
  2.  
  3. typedef struct {
  4.     char      pic[4][TBMLEN];        /* char array of color codes  */
  5.     int         dir;                    /* direction tank is facing   */
  6.     int        x;                        /* position                   */
  7.     int        y;
  8.     int        xmove;                /* number pixels to move in x */
  9.     int        ymove;               /* number pixels to move in y */
  10.     int      score;
  11.     int       treeshit;         /* number of trees hit during round */
  12.     int        speed;            /* see TANKSPEED in defs.h          */
  13.     char    upk;                 /* scan codes to move this tank     */
  14.     char    downk;
  15.     char    leftk;
  16.     char    rightk;
  17.     char    firek;
  18. } tankRec;
  19.  
  20. typedef struct shotrec_s {
  21.     int    x;
  22.     int    y;
  23.     int    dx;
  24.     int    dy;
  25.     int    range;
  26.     int    dir;
  27.     int    speed;
  28.     int    owner;
  29. } shotrec;
  30.  
  31. typedef struct {
  32.     int    x;
  33.     int    y;
  34. } treeRec;