From bfeb067c8acfb5f1797fdc886ac71ca1b10ccf57 Mon Sep 17 00:00:00 2001 From: mark Date: Sun, 14 Apr 2002 17:08:03 +0000 Subject: Import of kbill --- (limited to 'noncore/games/kbill/Network.h') 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 -- cgit v0.9.0.2