File: Computer.h

package info (click to toggle)
xbill 2.0-9
  • links: PTS
  • area: main
  • in suites: slink
  • size: 528 kB
  • ctags: 339
  • sloc: cpp: 1,803; makefile: 38; sh: 21
file content (22 lines) | stat: -rw-r--r-- 620 bytes parent folder | download | duplicates (6)
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