package gameEngine.entites; import gameEngine.entites.gameComponents.GameComponent; import gameEngine.entites.gameComponents.MoveImage; import gameEngine.geometry.Transform; import java.awt.*; public class Entity { private String entityId; // 作成時に割り当て public Transform transform = new Transform(); public Transform originalTransform = new Transform(); //Editorで保持 public boolean active = true; public String name = "Entity"; public Entity(String eid) { entityId = eid; } public void saveOriginalTransform() { this.originalTransform = new Transform(this.transform); } public void restoreOriginalTransform() { this.transform = new Transform(this.originalTransform); } public void setActive(boolean active) { this.active = active; } public String getName() { return name; } public void setName(String name){ this.name = name; } public String getId(){ return entityId; } }