fill getHeight an getWith. Returned the number of column and the number
of lines
This commit is contained in:
parent
7cfd470116
commit
26013a0f0b
|
|
@ -30,6 +30,7 @@ public abstract class Agent {
|
|||
return dist<radius;
|
||||
}
|
||||
|
||||
|
||||
// Does whatever the agent does during a step
|
||||
// then returns a boolean
|
||||
// if false, agent dies at end of turn
|
||||
|
|
|
|||
|
|
@ -52,12 +52,12 @@ public class Simulator extends Thread {
|
|||
|
||||
public int getWidth() {
|
||||
//TODO : replace with proper return
|
||||
return COL_NUM;
|
||||
return COL_NUM; // Return the data stored the number of column
|
||||
}
|
||||
|
||||
public int getHeight() {
|
||||
//TODO : replace with proper return
|
||||
return LINE_NUM;
|
||||
return LINE_NUM;// Return the number of line
|
||||
}
|
||||
|
||||
//Should probably stay as is
|
||||
|
|
|
|||
Loading…
Reference in New Issue