I`m creating a tile-based RTS on arrays (kind of Dwarf Fortress on C2 :) ). I`m a newbie at arrays, but no matter because i`m going to raise my skill.
I`ve got a big array which is the "tiles" with sprites (graphic tiles) on it. Each tile (sprite) is a container with another type of an array - a "pile" of anything on that tile (grass, raindrops, elves, dorfs). Elves and dorfs must be arrays too, so i can store them like "body, clothes, armor, weapon and shield, enemy`s blood on the face"
So, the logic is: tiles (array) -> tiles (sprites) -> items on tile (array) -> creatures (arrays).
And the question is: how to put an array (creature) into the array (items)?