home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / apilot.lha / APilot / APilot_Ser / serial.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-03  |  772 b   |  27 lines

  1. /**************************************************************************
  2.  *
  3.  * serial.h -- Some defines needed for serial communication.
  4.  *
  5.  *-------------------------------------------------------------------------
  6.  * Authors: Casper Gripenberg  (casper@alpha.hut.fi)
  7.  *          Kjetil Jacobsen    (kjetilja@stud.cs.uit.no)
  8.  *
  9.  */
  10.  
  11. #define SH_THRUSTING  1
  12. #define SH_FIREING    2
  13. #define SH_LEFTTURN   4
  14. #define SH_RIGHTTURN  8
  15. #define SH_SHIELDING  16
  16. #define SH_FUELING    32
  17. #define REMOTE_QUIT   128
  18.  
  19. typedef struct _ShipData {
  20.   UBYTE flags;       /* Shows what the ship is doing.  */
  21.   BYTE delta_x;      /* With these the coordinates are */
  22.   BYTE delta_y;      /* updated.                       */
  23.   UBYTE chksum;
  24.   WORD xvel;       
  25.   WORD yvel;
  26. } ShipData;
  27.