Newer
Older
AlgebraicDataflowArchitectureModel / GameEngine / src / main / java / gameEngine / entites / Entity.java
NoranekoFelician on 5 Dec 745 bytes ・エディターカメラの移動の実装
  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 Transform screenTransform = new Transform();
  14.  
  15. public boolean active = true;
  16. public String name = "Entity";
  17.  
  18. public Entity(String eid) {
  19. entityId = eid;
  20. }
  21.  
  22. public void setActive(boolean active) {
  23. this.active = active;
  24. }
  25. public String getName() { return name; }
  26. public void setName(String name){
  27. this.name = name;
  28. }
  29. public String getId(){
  30. return entityId;
  31. }
  32.  
  33. }