Organizing Unit Data
I have setup a linked list for my units (RTS game), with a data segment pointing to the actual unit object. This list then is part of my players class. Player object has AddUnit, RemoveUnit etc functions. I also have it code so when player.addunit is called it adds a reference it to a linked list under each map cell, so I can call the units draw function from there.
Is this the best way to organize my units data structures?
Thanks,
Mike
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement