Created
September 16, 2014 16:50
-
-
Save boyanov83/36256933e274abf14b40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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