make three base classes TUnit TTile and TBullet, now derive all Units from TUnit etc...
if you use a linked list for the units, you save them like this
TUnitfleet::save(char*filename)
{
ofstream data(filename,ios::binary)
TUnit *P=items
TUnit hulp;
while (P!=NULL)
{
hulp.X=P->X;
hulp.Y=P->Y;
//etc.
data.write((char*) &hulp,sizeof(hulp));
P=P->NEXT;
}
}
load is vice verca !
you do the same for tiles and bullets
if you don't succeed, Email me. I'll sent you the code of my save/load routine
happy coding
Aries...
------------------
Programming is an art