This commit is contained in:
titou 2024-05-26 12:35:54 +02:00
parent 5e40da0edb
commit 25de4c1d75
1 changed files with 8 additions and 6 deletions

View File

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