package com.tutorial.main; public abstract class GameObject { protected int x, y; protected ID id; protected int velX, velY; public GameObject(int x, int y, ID id){ this.x = x; this.y = y; this.id = id; } public abstract void tick(); public abstract void render(Graphics g); public void setX(int x){ this.x = x; } public void setY(int y){ this.y = y; } public int getx(){ return x } public int getY(){ return y; } public void setId(ID id){ this.id = id; } }