~ubuntu-branches/ubuntu/natty/xbill/natty

« back to all changes in this revision

Viewing changes to Computer.h

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Bridgett
  • Date: 2004-05-25 20:05:48 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040525200548-fmki5q3d0wkntyly
Tags: 2.1-3
use POSIX compliant chown call and set -e in postinst as per
policy (closes: #250722)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef COMPUTER_H
2
2
#define COMPUTER_H
3
3
 
4
 
class Computer {        /*structure for Computers*/
5
 
public:
6
 
        int type;               /*CPU type*/
7
 
        int os;                 /*current OS*/
8
 
        int x, y;               /*location*/
9
 
        int busy;               /*is the computer being used?*/
10
 
        int setup(int i);
11
 
        void draw();
12
 
        int find_stray();
13
 
        int oncomputer (int locx, int locy);
14
 
        int compatible(int system);
15
 
        int determineOS();
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*/
 
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;
20
10
};
21
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
 
22
23
#endif