1 #ifndef COMPUTER_H 2 #define COMPUTER_H 3 4 struct Computer { 5 int type; /* CPU type */ 6 int os; /* current OS */ 7 int x, y; /* location */ 8 int busy; /* is the computer being used? */ 9 Bill *stray; 10 }; 11 12 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); 20 21 #define COMPUTER_TOASTER 0 /* computer 0 is a toaster */ 22 23 #endif 24