Skip to content

Instantly share code, notes, and snippets.

@boyanov83
Created September 16, 2014 16:50
Show Gist options
  • Save boyanov83/36256933e274abf14b40 to your computer and use it in GitHub Desktop.
Save boyanov83/36256933e274abf14b40 to your computer and use it in GitHub Desktop.
import java.awt.Graphics;
public abstract class GameObjects {
private int xPos, yPos, width, height;
abstract void draw(Graphics g);
abstract void update();
public int getxPos() {
return xPos;
}
public void setxPos(int xPos) {
this.xPos = xPos;
}
public int getyPos() {
return yPos;
}
public void setyPos(int yPos) {
this.yPos = yPos;
}
public int getWidth() {
return width;
}
public void setWidth(int width) {
this.width = width;
}
public int getHeight() {
return height;
}
public void setHeight(int height) {
this.height = height;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment