api: move isDead from NPC to Actor

This commit is contained in:
Adam
2020-10-24 13:22:52 -04:00
parent 643d3a4523
commit 8438b42e15
2 changed files with 7 additions and 7 deletions

View File

@@ -259,4 +259,11 @@ public interface Actor extends Renderable
* @param overheadText the overhead text
*/
void setOverheadText(String overheadText);
/**
* Returns true if this actor has died
*
* @return
*/
boolean isDead();
}

View File

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