summaryrefslogtreecommitdiff
path: root/Monster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Monster.cpp')
-rw-r--r--Monster.cpp13
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;
+}