* Executes the provided action and returns null.
*/
@Override
public EnvironmentState executeAction(Agent agent, Action action) {
if (action instanceof QueenAction) {
QueenAction act = (QueenAction) action;
XYLocation loc = new XYLocation(act.getX(), act.getY());
if (act.getName() == QueenAction.PLACE_QUEEN)
board.addQueenAt(loc);
else if (act.getName() == QueenAction.REMOVE_QUEEN)
board.removeQueenFrom(loc);
else if (act.getName() == QueenAction.MOVE_QUEEN)
board.moveQueenTo(loc);
if (agent == null)
updateEnvironmentViewsAgentActed(agent, action, null);
}
return null;