Space von Team 22 (Nico B. Benjamin F. Lea A.)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
596 B

  1. package rendering;
  2. import gameobjects.GameObject;
  3. import java.awt.Graphics2D;
  4. public abstract class Artist {
  5. protected GameObject gameObject;
  6. Artist(GameObject go) {
  7. this.gameObject = go;
  8. }
  9. public double getX() {
  10. return this.gameObject.getX();
  11. }
  12. public double getY() {
  13. return this.gameObject.getY();
  14. }
  15. public double getVX() {
  16. return this.gameObject.getX();
  17. }
  18. public double getVY() {
  19. return this.gameObject.getX();
  20. }
  21. public double getGameTime() {
  22. return this.gameObject.getGameTime();
  23. }
  24. public abstract void draw(Graphics2D g);
  25. }