public ArrayList<Cell> sightTower(Team team) { ArrayList<Cell> c = new ArrayList<Cell>(); Iterator i = tower.iterator(); while (i.hasNext()) { Tower t = (Tower) i.next(); if (t.getTeam() == team && t.isBroken() == false) c.addAll(t.getSight()); } return c; }