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;
//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
}
/**
*