home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / Games / Bolo 0.99.6 / More information / Sample Code / Std Autopilot / BrainFrame.h < prev    next >
Encoding:
Text File  |  1995-01-01  |  917 b   |  34 lines  |  [TEXT/KAHL]

  1. // Bolo code (C) Stuart Cheshire <cheshire@cs.stanford.edu> 1987-1994.
  2. // All rights reserved. This code is owned by Stuart Cheshire and is donated
  3. // free of charge for non-commercial use. You may not use this code in any
  4. // product sold for commercial profit, except shareware priced at $25 or less.
  5.  
  6. #include <AppleEvents.h>        // Needed for PPCSessRefNum
  7. #include "Brain.h"                // Needed for just about everything
  8.  
  9. #define until(A) while (!(A))
  10. #define elementsof(A) (sizeof(A)/sizeof((A)[0]))
  11. #define TOGGLE(A) ((A)=!(A))
  12.  
  13. #define CREATOR_CODE 'BFRM'
  14.  
  15. typedef struct ConnectionInfo
  16.     {
  17.     struct ConnectionInfo *next;
  18.     
  19.     // PPC connection information
  20.     PPCSessRefNum BoloSessRefNum;
  21.     unsigned long BoloUserRefNum;
  22.  
  23.     // Brain information
  24.     WindowPtr win;
  25.     PPCPortRec portinfo;
  26.     
  27.     // Bolo information
  28.     BrainInfo *info;
  29.     BYTE    last_dir;
  30.     WORLD_X last_x;
  31.     WORLD_Y last_y;
  32.     u_long  last_TerrainCheckSum;
  33.     } ConnectionInfo;
  34.