I have a person in the game, a character with stats. Ex: Hit Points, Strength..etc. Of course I will need multiple copies of this character for each person and each persons stats will grow independently of each other. The stats will likely be a mix of bytes / ints which will later be parsed if needed (hopefully in an effort to save memory instead of making them all ints) and the name will of course be a string.
So the problem I face is either A) How can I dynamically name these new objects at runtime so they can be manipulated later in real time or Can I make multiple instances/objects of the same class with an identical name if I place them in a unique location (like inside of an array / arrayList for objects)? and if so how would I access the object inside of the array?
Class characters //An array to hold 100 players object array1 = new object; //HP..etc might extend into the 10,000+ int hp = 100; int end = 100; int mana = 100; byte str = 10; byte agil = 12; ..etc
characters players = new characters; array1 = players(); ????
array1 = characters players = new characters; ????
However I still dont know how to access an object once Ive placed it inside of the array. Any help would be greatly appreciated and help me understand objects and arrays quite a bit.