From 3383e8be9001826bf0d09f1fb73ad5013cc8627e Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Wed, 24 Nov 2010 19:57:03 +0000 Subject: Initial commit --- Player.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Player.cpp (limited to 'Player.cpp') 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 +#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 +} -- cgit v1.2.3