getCell
This commit is contained in:
parent
5e40da0edb
commit
25de4c1d75
|
|
@ -26,6 +26,8 @@ public class Simulator extends Thread {
|
|||
private int loopDelay = 150;
|
||||
|
||||
//TODO : add missing attribute(s)
|
||||
private int[][] field;
|
||||
//DONE
|
||||
|
||||
public Simulator(MyInterface mjfParam) {
|
||||
mjf = mjfParam;
|
||||
|
|
@ -50,13 +52,13 @@ public class Simulator extends Thread {
|
|||
}
|
||||
|
||||
public int getWidth() {
|
||||
//TODO : replace with proper return
|
||||
return 0;
|
||||
return COL_NUM;
|
||||
//DONE
|
||||
}
|
||||
|
||||
public int getHeight() {
|
||||
//TODO : replace with proper return
|
||||
return 0;
|
||||
return LINE_NUM;
|
||||
//DONE
|
||||
}
|
||||
|
||||
//Should probably stay as is
|
||||
|
|
@ -154,8 +156,8 @@ public class Simulator extends Thread {
|
|||
* @return value of cell
|
||||
*/
|
||||
public int getCell(int x, int y) {
|
||||
//TODO : complete method with proper return
|
||||
return 0;
|
||||
return field[y][x];
|
||||
//DONE
|
||||
}
|
||||
/**
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue