19 const int img_height = 9; |
19 const int img_height = 9; |
20 const int img_width = 10; |
20 const int img_width = 10; |
21 |
21 |
22 Player::Player(GameState &state, Vector position, bool visible) : |
22 Player::Player(GameState &state, Vector position, bool visible) : |
23 PhysicsObject(state.world, PLAYER_MASS, position, Vector(0, 0)), state(state), visible(visible), |
23 PhysicsObject(state.world, PLAYER_MASS, position, Vector(0, 0)), state(state), visible(visible), |
24 weapons(buildWeaponsList()), selectedWeapon(0), changing(false), animation_step(0), rope(*this) |
24 weapons(buildWeaponsList()), selectedWeapon(0), animation_step(0), rope(*this) |
25 { |
25 { |
26 // XXX: populate weapons from somewhere else |
26 // XXX: populate weapons from somewhere else |
27 |
27 |
28 // build the player's shape |
28 // build the player's shape |
29 // XXX: these dimensions are incorrect... |
29 // XXX: these dimensions are incorrect... |