Flag npc as dead when their health ratio hits 0

Sometimes npcs despawn without their HP var visible after death
This commit is contained in:
Adam
2018-05-31 18:18:29 -04:00
parent fd3a27f8b6
commit 8a6fc94239
4 changed files with 38 additions and 4 deletions

View File

@@ -65,4 +65,11 @@ public interface NPC extends Actor
* @return the transformed NPC
*/
NPCComposition getTransformedComposition();
/**
* Returns true if this NPC has died
*
* @return
*/
boolean isDead();
}