code:struct Level{char levelNum, tileSet;int length, numEnemies, numPowerups;Tile* tiles;Enemy* enemies;Powerup* powerups;}
Of course, the pointers would be allocated as arrays when the level file is read in, using the length, numEnemies, and numPowerups variables. Would this still save to file correctly if I just wrote a Level object to file, or would I have to cycle through all the members? Also, for the enemies and stuff during the game, would it be better (faster) to use dynamically allocated arrays, or linked lists?
------------------
http://qoy.tripod.com