drawAgents(g2d, currentDim);
}
private void drawAgents(Graphics2D g2d, Dimension currentDim) {
WorldModelState state = getLastState();
if (state!=null) {
for (SituatedObject p : state.getObjects())
{
if(p instanceof AgentBody)
{
drawAgent(
g2d,
(int)p.getX(), (int)p.getY(),
(int)(p.getDirection().getX()*DIRECTION_RADIUS),
(int)(p.getDirection().getY()*DIRECTION_RADIUS),
state.isLeader(p));
}
if(p instanceof Floor)
{
drawFloor(g2d,
(int)p.getX(), (int)p.getY(),