--- a/src/proto2/Physics.hh Mon Nov 24 15:18:55 2008 +0000
+++ b/src/proto2/Physics.hh Mon Nov 24 17:14:29 2008 +0000
@@ -77,11 +77,28 @@
*/
PhysicsObject (PhysicsWorld &world, float mass, Vector position, Vector velocity);
+ /**
+ * Used to handle in-air movement
+ */
virtual void applyForce (Force force, TimeMS dt);
+
+ /**
+ * Called on network clients to sync state from server
+ */
void updatePhysics (Vector position, Vector velocity);
- Vector moveVertically (bool right);
+
+ /**
+ * Handle ground movement
+ *
+ * @return new position
+ */
+ Vector walk (bool right);
+
+ /**
+ * Handle ground-jumping
+ */
void jump (void);
-
+
private:
void updatePosition (void);
bool possibleLocation (Vector loc);