--- a/src/PhysicsObject.hh Sun Dec 07 18:23:18 2008 +0000
+++ b/src/PhysicsObject.hh Sun Dec 07 19:02:45 2008 +0000
@@ -97,12 +97,9 @@
void disable (void);
private:
- // TODO: I'd be tempted to use some already made ClanLib structure
- // here.
// Shape of the object. Edge points of the shape polygon.
std::vector<Vector> shape;
- // TODO: Should these operations be moved to PhysicsWorld?
// Force queue that is emptied on every tick
std::queue<Force> forceq;
@@ -137,9 +134,7 @@
*/
Vector acceleration(const Force &force);
- // TODO: If integration is moved to PhysicsWorld then this should
- // also move there.
- /**
+ /**
* Handle ground movement.
*
* @param right Boolean describing the movement direction.
@@ -148,15 +143,14 @@
void walk(TimeMS, bool right);
Vector walk_one_step(float, bool);
- /*
- * Handle collision. TODO: This is not used. It probably should
- * be?
+ /**
+ * Define object behaviour on collisions.
*/
virtual void onCollision() {}
- /*
- * TODO: This probably does some kind of collision
- * detection. Could be named/documented better.
+ /**
+ * Checks if it is possible for the object to be in the given
+ * location.
*/
bool possibleLocation(Vector loc);
@@ -248,8 +242,6 @@
virtual void draw(CL_GraphicContext *gc);
};
-// TODO: This could probably be moved somewhere else or removed
-// completely.
struct Derivative {
Vector dx; // Velocity
Vector dv; // Acceleration