--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Player.cc Thu Dec 04 19:54:51 2008 +0000
@@ -0,0 +1,16 @@
+#include "Player.hh"
+
+Player::Player(GameState &state, Vector position, bool visible) :
+ PhysicsObject((PhysicsWorld &) state, PLAYER_MASS, position, Vector(0, 0)), state(state), visible(visible) {
+
+ std::vector<Vector> shape(4);
+ shape[0] = Vector(0,-9);
+ shape[1] = Vector(6,0);
+ shape[2] = Vector(0,9);
+ shape[3] = Vector(-6,0);
+ // Initialize the shape of the player (salmiakki shape)
+ setShape(shape);
+ collision_elasticity = PLAYER_COLLISION_ELASTICITY;
+ world.addPlayerObject(this);
+}
+