diff options
Diffstat (limited to 'Player.cpp')
-rw-r--r-- | Player.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Player.cpp b/Player.cpp new file mode 100644 index 0000000..a7df818 --- /dev/null +++ b/Player.cpp @@ -0,0 +1,17 @@ +#include <iostream> +#include "Player.h" + +Player::Player() { + std::cout << "Player::Player(): Player created.\n"; + health = 100; +} + +void Player::jump() { + std::cout << "Player::jump(): Jumping!.\n"; +} + +void Player::kill() { + std::cout << "Player::kill(): Killing player, resetting to start position.\n"; + health = 0; + // Do resetting stuff +} |