fill getHeight an getWith. Returned the number of column and the number

of lines
This commit is contained in:
Abes Adam 2024-05-07 16:35:14 +02:00
parent 7cfd470116
commit 26013a0f0b
2 changed files with 3 additions and 2 deletions

View File

@ -30,6 +30,7 @@ public abstract class Agent {
return dist<radius; return dist<radius;
} }
// Does whatever the agent does during a step // Does whatever the agent does during a step
// then returns a boolean // then returns a boolean
// if false, agent dies at end of turn // if false, agent dies at end of turn

View File

@ -52,12 +52,12 @@ public class Simulator extends Thread {
public int getWidth() { public int getWidth() {
//TODO : replace with proper return //TODO : replace with proper return
return COL_NUM; return COL_NUM; // Return the data stored the number of column
} }
public int getHeight() { public int getHeight() {
//TODO : replace with proper return //TODO : replace with proper return
return LINE_NUM; return LINE_NUM;// Return the number of line
} }
//Should probably stay as is //Should probably stay as is