4
class Computer { /*structure for Computers*/
9
int busy; /*is the computer being used?*/
13
int oncomputer (int locx, int locy);
14
int compatible(int system);
16
static const int TOASTER = 0; /* computer 0 is a toaster */
17
static const int PC = 5; /* type>=PC means the computer is a PC*/
18
static const int OFFSET = 4; /* offset of screen from 0,0 */
19
static const int BORDER = 50; /* BORDER pixels free on all sides*/
5
int type; /* CPU type */
6
int os; /* current OS */
7
int x, y; /* location */
8
int busy; /* is the computer being used? */
13
int Computer_setup(Computer *computer, int i);
14
void Computer_draw(Computer *computer);
15
int Computer_on (Computer *computer, int locx, int locy);
16
int Computer_compatible(Computer *computer, int system);
17
void Computer_load_pix(void);
18
int Computer_width(void);
19
int Computer_height(void);
21
#define COMPUTER_TOASTER 0 /* computer 0 is a toaster */