diff options
author | Lukas Pioch <lukas@zgow.de> | 2015-11-09 16:22:05 +0100 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2015-11-09 16:22:05 +0100 |
commit | 3c3be921d79e7abc5635c222de0d4f04187cf421 (patch) | |
tree | 1e4c0b9a618b994528530a3bd998f7be8f04c28b /src/Mobs | |
parent | Merge pull request #2625 from Gargaj/chilloutyo (diff) | |
parent | Add comment to Attack() return values (diff) | |
download | cuberite-3c3be921d79e7abc5635c222de0d4f04187cf421.tar cuberite-3c3be921d79e7abc5635c222de0d4f04187cf421.tar.gz cuberite-3c3be921d79e7abc5635c222de0d4f04187cf421.tar.bz2 cuberite-3c3be921d79e7abc5635c222de0d4f04187cf421.tar.lz cuberite-3c3be921d79e7abc5635c222de0d4f04187cf421.tar.xz cuberite-3c3be921d79e7abc5635c222de0d4f04187cf421.tar.zst cuberite-3c3be921d79e7abc5635c222de0d4f04187cf421.zip |
Diffstat (limited to 'src/Mobs')
-rw-r--r-- | src/Mobs/AggressiveMonster.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Mobs/AggressiveMonster.h b/src/Mobs/AggressiveMonster.h index 90b2988dc..17539d39e 100644 --- a/src/Mobs/AggressiveMonster.h +++ b/src/Mobs/AggressiveMonster.h @@ -20,6 +20,10 @@ public: virtual void InStateChasing(std::chrono::milliseconds a_Dt) override; virtual void EventSeePlayer(cEntity *) override; + + /** Try to perform attack + returns true if attack was deemed successful (hit player, fired projectile, creeper exploded, etc.) even if it didn't actually do damage + return false if e.g. the mob is still in cooldown from a previous attack */ virtual bool Attack(std::chrono::milliseconds a_Dt); } ; |