6
int c1, c2; /*computers connected */
7
int x1,y1,x2,y2; /*endpoints of line representing cable */
8
int x, y; /*current location of spark*/
9
float fx, fy; /*needed for line drawing*/
10
int delay; /*how much time until spark leaves*/
11
int active; /*is spark moving and from which end*/
16
onspark (int locx, int locy);