Is it a "good idea" to use an arraylist to iterate through a group of items in a game?
For example if I have 5 "enemy objects" is it wiser to use this:
for (int e = 0; e < maxenemy; e++)
{
Enemy[e].Update();
}
or can I use this with comprable results?
for(Enemy e : enemies)
{
Enemy.get(e).Update();
}
I'm trying to decide if using the ArrayList is a viable option instead of having a static array of "enemy objects"