Hi,
I am making a game where the player can switch between magic spells to use as projectiles, the controls are similar to a lot of FPS games, where one can switch from weapon to weapon.
So far I have been declaring my game objects in a constructor, and setting a spell active when switching should take place. It is a successful way of achieving what I am wanting to achieve, however I am aware of Array Lists and how they are probably more appropriate for my needs than my current set up.
Please could someone enlighten me about why an Array List could be better for my needs apart from nicer looking code (the examples I can find do look nicer). I do not really get why I should use an Array, but I am open to using one at this stage.
Thanks for the prospective feedback.