Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Network.h

Go to the documentation of this file.
00001 #ifndef NETWORK_H
00002 #define NETWORK_H
00003 
00004 #include "Computer.h"
00005 #include "Cable.h"
00006 
00007 class Network { /*structure for global network of computers*/
00008 public:
00009         static const int MAX_COMPUTERS = 20;    /* max computers on screen */
00010         static const int NUM_SYS = 6;           /* number of computer types */
00011         Picture pictures[NUM_SYS+1];            /* array of cpu pictures */
00012         int width, height;                      /* size of cpu picture */
00013         int units;                              /* number of cpus in network */
00014         int win, base, off;                     /* number in each state */
00015         Computer computers[MAX_COMPUTERS];      /* array of cpu info */
00016         Cable cables[MAX_COMPUTERS];
00017         int ncables;
00018         void setup();
00019         void load_pix();
00020         void draw();
00021         void update();
00022         void toasters();
00023         int on(int lev);
00024 
00025 };
00026 
00027 #endif

Generated on Sat Nov 5 16:17:20 2005 for OPIE by  doxygen 1.4.2