aboutsummaryrefslogtreecommitdiffstats
path: root/include/entities.hpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-05-02 08:49:54 -0400
committerClyne Sullivan <tullivan99@gmail.com>2016-05-02 08:49:54 -0400
commitf102149e15ca1ac36cbb4e2627e5ce44f2d5273a (patch)
treefcf939ba1c26bd25c693ae7b05bd79c00ce2a691 /include/entities.hpp
parent6a728a46d837384074228959d6330ba29e03aee0 (diff)
parent13cd55136ffd09afd9f4828a00716ed9f94f0e0b (diff)
Merge branch 'master' of https://github.com/tcsullivan/gamedev
Diffstat (limited to 'include/entities.hpp')
-rw-r--r--include/entities.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/entities.hpp b/include/entities.hpp
index f8780df..5417dac 100644
--- a/include/entities.hpp
+++ b/include/entities.hpp
@@ -254,6 +254,12 @@ public:
// causes the entity to take a player-inflicted hit
void takeHit(unsigned int _health, unsigned int cooldown);
+ // returns the amount of cool down before next hit
+ unsigned int coolDown();
+
+ // set the cool down
+ void setCooldown(unsigned int c);
+
// handles hits if they've been taken
void handleHits(void);