summaryrefslogtreecommitdiff
path: root/noncore/games/kbill/Network.h
Unidiff
Diffstat (limited to 'noncore/games/kbill/Network.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/games/kbill/Network.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/noncore/games/kbill/Network.h b/noncore/games/kbill/Network.h
new file mode 100644
index 0000000..03ff148
--- a/dev/null
+++ b/noncore/games/kbill/Network.h
@@ -0,0 +1,27 @@
1#ifndef NETWORK_H
2#define NETWORK_H
3
4#include "Computer.h"
5#include "Cable.h"
6
7 class Network {/*structure for global network of computers*/
8public:
9 static const int MAX_COMPUTERS = 20;/* max computers on screen */
10 static const int NUM_SYS = 6; /* number of computer types */
11 Picture pictures[NUM_SYS+1]; /* array of cpu pictures */
12 int width, height; /* size of cpu picture */
13 int units; /* number of cpus in network */
14 int win, base, off; /* number in each state */
15 Computer computers[MAX_COMPUTERS];/* array of cpu info */
16 Cable cables[MAX_COMPUTERS];
17 int ncables;
18 void setup();
19 void load_pix();
20 void draw();
21 void update();
22 void toasters();
23 int on(int lev);
24
25};
26
27#endif