I'm going to be storing the statistics such as Health, Status Ailments, Name etc for use in my game. As it is an RTS format, I will probably be needing alot of values to store. I have already derived a method to cut-down on system memory (my referencing generic stats specific to certain classes eg, warrior strength = 5, knight strength = 9), but I want to reserve as much as possible, to get the unit counts higher. So, would I need to be using DATA or Arrays to store the unit information? As in, which would be faster?
It seems that reading data requires mroe commands and might use more memory, yet Arrays have to be indexed etc to find the values I need. It's a tough one, so I put it to you