Added some notes
authorsaiam
Sun, 30 Nov 2008 00:36:24 +0000
changeset 140 b264b39224e5
parent 139 77220921ae7d
child 141 73109c5652d3
Added some notes
src/proto2/Terrain.cc
--- 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) {