Newer
Older
AlgebraicDataflowArchitectureModel / GameEngine / src / main / java / gameEngine / entites / Entity.java
  1. package gameEngine.entites;
  2.  
  3. import gameEngine.entites.gameComponents.GameComponent;
  4. import gameEngine.entites.gameComponents.MoveImage;
  5. import gameEngine.geometry.Transform;
  6.  
  7. import java.awt.*;
  8.  
  9. public class Entity {
  10.  
  11. private String entityId; // 作成時に割り当て
  12. public Transform transform = new Transform();
  13. public boolean active = true;
  14. public String name = "Entity";
  15.  
  16. public Entity(String eid) {
  17. entityId = eid;
  18. }
  19.  
  20. public void setActive(boolean active) {
  21. this.active = active;
  22. }
  23. public String getName() { return name; }
  24. public void setName(String name){
  25. this.name = name;
  26. }
  27. public String getId(){
  28. return entityId;
  29. }
  30.  
  31. }