summaryrefslogtreecommitdiff
path: root/noncore/games/kbill/Network.h
authormark <mark>2002-04-14 17:08:03 (UTC)
committer mark <mark>2002-04-14 17:08:03 (UTC)
commitbfeb067c8acfb5f1797fdc886ac71ca1b10ccf57 (patch) (side-by-side diff)
treead77e90c90f4bfb598bbe93aa4b3e14b689c96f4 /noncore/games/kbill/Network.h
parenta0fe593db4e700989cc19e28b67a58f87823afeb (diff)
downloadopie-bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57.zip
opie-bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57.tar.gz
opie-bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57.tar.bz2
Import of kbill
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 @@
+#ifndef NETWORK_H
+#define NETWORK_H
+
+#include "Computer.h"
+#include "Cable.h"
+
+class Network { /*structure for global network of computers*/
+public:
+ static const int MAX_COMPUTERS = 20; /* max computers on screen */
+ static const int NUM_SYS = 6; /* number of computer types */
+ Picture pictures[NUM_SYS+1]; /* array of cpu pictures */
+ int width, height; /* size of cpu picture */
+ int units; /* number of cpus in network */
+ int win, base, off; /* number in each state */
+ Computer computers[MAX_COMPUTERS]; /* array of cpu info */
+ Cable cables[MAX_COMPUTERS];
+ int ncables;
+ void setup();
+ void load_pix();
+ void draw();
+ void update();
+ void toasters();
+ int on(int lev);
+
+};
+
+#endif