home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-01-01 | 917 b | 34 lines | [TEXT/KAHL] |
- // Bolo code (C) Stuart Cheshire <cheshire@cs.stanford.edu> 1987-1994.
- // All rights reserved. This code is owned by Stuart Cheshire and is donated
- // free of charge for non-commercial use. You may not use this code in any
- // product sold for commercial profit, except shareware priced at $25 or less.
-
- #include <AppleEvents.h> // Needed for PPCSessRefNum
- #include "Brain.h" // Needed for just about everything
-
- #define until(A) while (!(A))
- #define elementsof(A) (sizeof(A)/sizeof((A)[0]))
- #define TOGGLE(A) ((A)=!(A))
-
- #define CREATOR_CODE 'BFRM'
-
- typedef struct ConnectionInfo
- {
- struct ConnectionInfo *next;
-
- // PPC connection information
- PPCSessRefNum BoloSessRefNum;
- unsigned long BoloUserRefNum;
-
- // Brain information
- WindowPtr win;
- PPCPortRec portinfo;
-
- // Bolo information
- BrainInfo *info;
- BYTE last_dir;
- WORLD_X last_x;
- WORLD_Y last_y;
- u_long last_TerrainCheckSum;
- } ConnectionInfo;
-