samedi 12 novembre 2016

Random iterate over an array (not shuffle)

I have a array of Effect's and a method should iterate thru all items randomly and remove it if its of the type Boon and return. I can't shuffle the array because each class e.g. FireEffect has a static index in the array.




Aucun commentaire:

Enregistrer un commentaire