summaryrefslogtreecommitdiffstats
path: root/balls.h
diff options
context:
space:
mode:
Diffstat (limited to 'balls.h')
-rw-r--r--balls.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/balls.h b/balls.h
index b908183..63d5278 100644
--- a/balls.h
+++ b/balls.h
@@ -33,9 +33,6 @@ typedef struct {
Color color;
} Ball;
-typedef continue_node<continue_msg> node_t;
-typedef const continue_msg & msg_t;
-
class Collision {
public:
Ball *b1, *b2;
@@ -53,22 +50,11 @@ public:
return a.b1 == b.b1 && a.b2 == b.b2;
}
- friend ostream &operator<<(ostream& os, Collision const & c) {
+ friend ostream& operator<<(ostream& os, Collision const & c) {
return os << "(" << c.b1 << ", " << c.b2 << ")";
}
};
-class CollisionGraph {
-private:
- graph g;
- node_t root;
- vector<vector<reference_wrapper<node_t>>> layers;
-
-public:
- CollisionGraph(void);
- void run();
-};
-
vector<vector<Collision>> partitionCollisions(vector<Ball *> balls);
Point addPt(Point p, Point q);