Complete the getWithd and getHeight and returned the number of colimn
and line
This commit is contained in:
parent
3fd7715009
commit
7cfd470116
|
|
@ -24,7 +24,8 @@ public class Simulator extends Thread {
|
|||
private boolean loopingBorder;
|
||||
private boolean clickActionFlag;
|
||||
private int loopDelay = 150;
|
||||
|
||||
|
||||
|
||||
//TODO : add missing attribute(s)
|
||||
|
||||
public Simulator(MyInterface mjfParam) {
|
||||
|
|
@ -51,12 +52,12 @@ public class Simulator extends Thread {
|
|||
|
||||
public int getWidth() {
|
||||
//TODO : replace with proper return
|
||||
return 0;
|
||||
return COL_NUM;
|
||||
}
|
||||
|
||||
public int getHeight() {
|
||||
//TODO : replace with proper return
|
||||
return 0;
|
||||
return LINE_NUM;
|
||||
}
|
||||
|
||||
//Should probably stay as is
|
||||
|
|
|
|||
Loading…
Reference in New Issue