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
int onspark (int locx, int locy);
6
void Cable_setup(Cable **cablep);
7
void Cable_draw(Cable *cable);
8
void Cable_update(Cable *cable);
9
int Cable_onspark(Cable *cable, int locx, int locy);
10
void Cable_reset(Cable *cable);