changeset 180 | bfe1077edab3 |
parent 170 | fe74105c07ea |
child 182 | 84675387ca74 |
--- a/src/proto2/GameState.cc Tue Dec 02 01:46:18 2008 +0000 +++ b/src/proto2/GameState.cc Wed Dec 03 12:09:42 2008 +0000 @@ -2,6 +2,10 @@ #include "GameState.hh" #include "Engine.hh" +void Player::shoot (void) { + this->state.addProjectile(new Shot(this->state, this->position, true)); +} + void Player::handleMove (PlayerInput_Move input) { float fx = 0; // Force in x-direction float da = 0; // Crosshair angle