blob: 7edcafb22868a48f394b15518cbef9921caa1d46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef COMPUTER_H
#define COMPUTER_H
class Computer { /*structure for Computers*/
public:
int type; /*CPU type*/
int os; /*current OS*/
int x, y; /*location*/
int busy; /*is the computer being used?*/
int setup(int i);
void draw();
int find_stray();
int oncomputer (int locx, int locy);
int compatible(int system);
int determineOS();
static const int TOASTER = 0; /* computer 0 is a toaster */
static const int PC = 5; /* type>=PC means the computer is a PC*/
static const int OFFSET = 4; /* offset of screen from 0,0 */
static const int BORDER = 50; /* BORDER pixels free on all sides*/
};
#endif
|