~ubuntu-branches/ubuntu/natty/xbill/natty

« back to all changes in this revision

Viewing changes to Cable.h

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Bridgett
  • Date: 2004-09-07 09:52:14 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040907095214-d0m46ojc8f7upuqm
Tags: 2.1-4
maintainer upload of NMU - many thanks Tollef (closes: #268885) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef CABLE_H
2
2
#define CABLE_H
3
3
 
4
 
class Cable {
5
 
public:
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*/
12
 
        int index;
13
 
        void setup();
14
 
        void draw();
15
 
        void update();
16
 
        int onspark (int locx, int locy);
 
4
#include "types.h"
17
5
 
18
 
};
 
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);
19
11
 
20
12
#endif