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

Cable.h

Go to the documentation of this file.
00001 #ifndef CABLE_H
00002 #define CABLE_H
00003 
00004 class Cable {
00005 public:
00006         int c1, c2;             /*computers connected */
00007         int x1,y1,x2,y2;        /*endpoints of line representing cable */
00008         int x, y;               /*current location of spark*/
00009         float fx, fy;           /*needed for line drawing*/
00010         int delay;              /*how much time until spark leaves*/
00011         int active;             /*is spark moving and from which end*/
00012         int index;
00013         void setup();
00014         void draw();
00015         void update();
00016         int onspark (int locx, int locy);
00017 
00018 };
00019 
00020 #endif

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