Merge pull request #2627 from Gargaj/patch-1
Add comment to Attack() return values
This commit is contained in:
commit
3c3be921d7
@ -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);
|
||||
} ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user