get width and height
This commit is contained in:
parent
ac67aa6735
commit
28a99d49cd
|
|
@ -24,6 +24,8 @@ public class Simulator extends Thread {
|
|||
private boolean loopingBorder;
|
||||
private boolean clickActionFlag;
|
||||
private int loopDelay = 150;
|
||||
private int width=100;
|
||||
private int height=100;
|
||||
|
||||
//TODO : add missing attribute(s)
|
||||
|
||||
|
|
@ -51,12 +53,12 @@ public class Simulator extends Thread {
|
|||
|
||||
public int getWidth() {
|
||||
//TODO : replace with proper return
|
||||
return 0;
|
||||
return width;
|
||||
}
|
||||
|
||||
public int getHeight() {
|
||||
//TODO : replace with proper return
|
||||
return 0;
|
||||
return height;
|
||||
}
|
||||
|
||||
//Should probably stay as is
|
||||
|
|
|
|||
Loading…
Reference in New Issue