--- a/src/proto2/Terrain.cc Sun Nov 30 00:28:12 2008 +0000
+++ b/src/proto2/Terrain.cc Sun Nov 30 00:36:24 2008 +0000
@@ -20,10 +20,17 @@
bool Terrain::collides(const Vector &begin, const Vector &end) const {
// TODO: Implement. Bresenhams line algorithm could be usefull
+ // TODO: Maybe we should have another function prototype that also
+ // returns the point where we collided.
+
+ // 1. Go trough every point in line in order and check if we collide
+
}
void Terrain::removeGround(const Vector &pos, const float r) {
// TODO: Implement. Some circle algoritmh should be usefull here.
+
+ // Remember also to redraw the pixelbuffer
}
Vector Terrain::getPixelLocation(Vector point) {