diff options
author | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-11-24 19:57:03 +0000 |
---|---|---|
committer | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-11-24 19:57:03 +0000 |
commit | 3383e8be9001826bf0d09f1fb73ad5013cc8627e (patch) | |
tree | 27be0f78ab8672a7187d517c73b4ee22817369cc /Monster.cpp |
Initial commit
Diffstat (limited to 'Monster.cpp')
-rw-r--r-- | Monster.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Monster.cpp b/Monster.cpp new file mode 100644 index 0000000..dea5175 --- /dev/null +++ b/Monster.cpp @@ -0,0 +1,13 @@ +#include <iostream> +#include "Monster.h" + +Monster::Monster() { + std::cout << "Monster::Monster(): Monster created.\n"; + health = 100; +} + +void Monster::kill() { + std::cout << "Monster::kill(): Killing monster.\n"; + health = 0; + isVisible = false; +} |