I'm working on a game where 3 guns turn and fire at a tank moving
within range...when I place three guns in world, they all three turn but
only the first fires...how do I make the other two fire as well?


if ("space".equals(Greenfoot.getKey())){ List<Gun> guns = (List<Gun>) getObjects(Gun.class); for(Gun gun : guns) gun.fire(); }