I’m having trouble placing characters and teams for a tactics game. I have a team class and a character class to create the set of characters. The characters are placed correctly, but in the team class, i have an array that stores all the characters within the team so i can cycle through them to enable/disable them or whatever i need to do. However, the array seems to be static with both teams. I can’t figure out why. I have it set up to private. Also, when i call it to add the character to it, it seems to work correctly and its added. But when i call it to disable all the characters for example, it says the array is empty. I can’t figure out why the array won’t work properly. I have a similar setup in my map class used to create the map, and it seems to be working perfectly fine. Any suggestions or ideas on what might be happening would be appreciated. thanx in advance.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Static Variable Troubles | 0 | 79 | December 20, 2010 | |
Array functionality inside classes
|
0 | 50 | August 18, 2005 | |
Class in array with in a class
|
0 | 93 | December 27, 2008 | |
Help! Scope issue within package | 0 | 104 | November 12, 2009 | |
Class array
|
0 | 79 | April 8, 2011 |