Skip to content
Snippets Groups Projects
Commit 6326a38b authored by AxelCarayon's avatar AxelCarayon
Browse files

removed todo and unused methods

parent 39d75251
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,6 @@ public class GraphicEnvironment extends Canvas implements IEnvironment {
if (agent != null) {
colorAgent(g,agent);
drawCenteredCircle(g,agent.getPosition().x,agent.getPosition().y,RADIUS);
//g.fillOval(agent.getPosition().x,agent.getPosition().y, RADIUS, RADIUS);
}
}
}
......@@ -77,12 +76,6 @@ public class GraphicEnvironment extends Canvas implements IEnvironment {
for (int i = 0; i < MAX_CHUNK; i++) {
neighbors.addAll(getChunkNeighbors(i,p));
}
//for (Agent agent : agents) {
// if (detectCollision(p, agent.getPosition())) {
// neighbors.add(agent);
// }
//}
return neighbors;
}
......@@ -145,8 +138,6 @@ public class GraphicEnvironment extends Canvas implements IEnvironment {
return distanceSquared < (2*RADIUS) * (2*RADIUS);
}
//TODO : vérifier les collisions
private void colorAgent(Graphics g,Agent a) {
switch (a.getState()) {
case SUSCEPTIBLE -> g.setColor(Color.GRAY);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment