Dynamic list of Objects in External File
My problem is that I need to find a way to be able to dynamically create a list of objects that are being declared in an outside file. In the outside.h file I need to declare the class and declare the actual object to make it global to all files. Inside of the outside.cpp file I will put all of the class's functions. Inside of main.cpp is where I will be determining the amount of objects in the list. As the program continues I may need to go back and add another object.
To make it more clearer I have a class for my enemies, and I'm going to need to be able to store the information for each enemy inside of an object. The amount of objects is going to vary from time to time as each enemy is being created and dying. My guess is that I'm going to need to delete some of the objects and be adding new ones all the time.
I've got somewhat of an idea on how to achieve all of this, and that's about it.