Can I call a function in ArrayList without having to use a for loop or is there a anthoer way of doing this I hope my example will make more sense.
public class Fireball {
public void draw(GL10 gl){
draw(gl);
}
public class Gameview {
private ArrayList<FireBall> fireBall = new ArrayList<FireBall>();
public draw(GL10 gl){
//this is where I what to draw everthing in the ArrayList
fireBall.getIndex(ALL).draw(gl)
}
}
the reason I am asking is because I what to be able to add and remove fireball without having to worry about the computer speed thank you