# How to stack units in a tile based game?

I'm trying to make it so that no more than 5 units can be stacked on a tile. I have a Tile class that creates each tile's preferences. Should I store the units in an array or arraylist in this class?

• I agree @Sidar. I say ArrayList because it's much easier for a new developer to handle. With easy functions like add and remove. – MichaelHouse Jan 13 '13 at 20:02