From 3957dfb9361e864f6362e59655c885f52b39371f Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 6 May 2022 18:23:42 +0200 Subject: docs: add tagging to basic example --- examples/basic/src/enemy.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/basic/src/enemy.cpp') 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; -- cgit v1.2.3-18-g5258