clean up 'n bugcrushing

This commit is contained in:
Bilel Bghiel
2015-06-19 14:36:40 +02:00
parent 864b6efa52
commit d92cd7333b
16 changed files with 116 additions and 183 deletions
+6 -4
View File
@@ -5,10 +5,13 @@ import java.awt.geom.AffineTransform;
public abstract class DrawObject {
protected AffineTransform transform;
protected double width,height;
protected double width,
height;
protected int index = 0;
public DrawObject() {
transform = new AffineTransform();
}
@@ -20,8 +23,7 @@ public abstract class DrawObject {
public void setIndex(int index){
this.index = index;
}
public abstract void draw(Graphics2D g2);
public abstract void update(float factor);
}