formatting
This commit is contained in:
24
Flag.java
24
Flag.java
@@ -1,15 +1,15 @@
|
||||
import javax.swing.ImageIcon;
|
||||
|
||||
public class Flag extends Collidable {
|
||||
public Flag(int x, int y, int w, int h) {
|
||||
super(x, y, w, h, new ImageIcon("Sprites/Flag.png"));
|
||||
}
|
||||
|
||||
public void setPosition(int x, int y, int w, int h) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.width = w;
|
||||
this.height = h;
|
||||
this.rect.setBounds(x, y, w, h);
|
||||
}
|
||||
}
|
||||
public Flag(int x, int y, int w, int h) {
|
||||
super(x, y, w, h, new ImageIcon("Sprites/Flag.png"));
|
||||
}
|
||||
|
||||
public void setPosition(int x, int y, int w, int h) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
this.width = w;
|
||||
this.height = h;
|
||||
this.rect.setBounds(x, y, w, h);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user