From 97e79b93eadb5a42bfd86af1e282573f16da0778 Mon Sep 17 00:00:00 2001 From: Matt Low Date: Mon, 27 Jan 2020 13:19:36 +0400 Subject: [PATCH] Add isRemoved() and toString() to Entity --- core/src/com/me/common/ecs/Entity.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/src/com/me/common/ecs/Entity.java b/core/src/com/me/common/ecs/Entity.java index 4d06012..e7d975a 100644 --- a/core/src/com/me/common/ecs/Entity.java +++ b/core/src/com/me/common/ecs/Entity.java @@ -34,6 +34,10 @@ public final class Entity { return active; } + public boolean isRemoved() { + return removed; + } + public void activate() { active = true; refresh(); @@ -106,4 +110,8 @@ public final class Entity { this.uniqueId = nextUniqueId++; } + public String toString() { + return "Entity[id=" + id + ", uniqueId=" + uniqueId + "]"; + } + }