equal
deleted
inserted
replaced
26 weapons(buildWeaponsList()), |
26 weapons(buildWeaponsList()), |
27 selectedWeapon(0), |
27 selectedWeapon(0), |
28 rope(*this), |
28 rope(*this), |
29 health(PLAYER_HEALTH), |
29 health(PLAYER_HEALTH), |
30 respawn_timer(PLAYER_RESPAWN_DELAY), |
30 respawn_timer(PLAYER_RESPAWN_DELAY), |
31 animation_step(0) |
31 animation_step(0), |
|
32 kills(0), |
|
33 deaths(0) |
32 { |
34 { |
33 // XXX: populate weapons from somewhere else |
35 // XXX: populate weapons from somewhere else |
34 |
36 |
35 // build the player's shape |
37 // build the player's shape |
36 // XXX: these dimensions are incorrect... |
38 // XXX: these dimensions are incorrect... |
67 // enable |
69 // enable |
68 enable(); |
70 enable(); |
69 } |
71 } |
70 |
72 |
71 void Player::die (bool start_timer) { |
73 void Player::die (bool start_timer) { |
|
74 |
|
75 deaths++; // Increment death counter |
|
76 |
72 // we don't have a rope anymore |
77 // we don't have a rope anymore |
73 rope.release(); |
78 rope.release(); |
74 |
79 |
75 // disable our PhysicsObject |
80 // disable our PhysicsObject |
76 disable(); |
81 disable(); |