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;
|
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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue