![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
A rouge-like rpg, heavily inspired on the binding of isaac. Running on a FRDM-K64F Mbed board. C++.
Dependencies: mbed MotionSensor
Diff: Entity/Entity.cpp
- Revision:
- 14:3361879490b2
- Parent:
- 13:d04a6caba40d
- Child:
- 20:6405835af6e2
- Child:
- 21:be18f33da757
--- a/Entity/Entity.cpp Wed Apr 24 02:33:33 2019 +0000 +++ b/Entity/Entity.cpp Wed Apr 24 03:09:00 2019 +0000 @@ -29,6 +29,13 @@ hp -= damage; } +bool Entity::death_check(){ + if (hp <= 0){ + return true; + } + return false; +} + // mutators // accessors