aboutsummaryrefslogtreecommitdiff
path: root/examples/basic/src/enemy.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-06 18:23:42 +0200
committerHampusM <hampus@hampusmat.com>2022-05-06 18:23:55 +0200
commit3957dfb9361e864f6362e59655c885f52b39371f (patch)
tree5ef55a5eb418664b4a5c0d2d9328ff4ca99a74a7 /examples/basic/src/enemy.cpp
parentd8ea3721d83254e91c5617d83f2aac5a897107fb (diff)
docs: add tagging to basic examplev0.1.3
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;