From 4e991f46323ca1b6e0097e661812f1ff61852ce5 Mon Sep 17 00:00:00 2001 From: Gargaj Date: Mon, 9 Nov 2015 15:51:35 +0100 Subject: [PATCH] Add comment to Attack() return values --- src/Mobs/AggressiveMonster.h | 4 ++++ 1 file changed, 4 insertions(+) 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); } ;