aboutsummaryrefslogtreecommitdiff
path: root/examples/basic/src/enemy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basic/src/enemy.cpp')
-rw-r--r--examples/basic/src/enemy.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/basic/src/enemy.cpp b/examples/basic/src/enemy.cpp
index b20a90d..3923794 100644
--- a/examples/basic/src/enemy.cpp
+++ b/examples/basic/src/enemy.cpp
@@ -1,5 +1,7 @@
#include "enemy.hpp"
+Enemy::Enemy(int health) noexcept : _health(health) {}
+
int Enemy::get_health() const noexcept
{
return _health;