tsavegameloaders Class Reference

#include <loaders.h>

Inheritance diagram for tsavegameloaders:

Inheritance graph
[legend]
List of all members.

Public Member Functions

GameMaploadgame (tnstream *strm)
GameFileInformation loadMapimageFromFile (const ASCString &filename)
void savegame (tnstream *strm, GameMap *gamemap, bool writeReplays=true)
void savegame (GameMap *gamemap, const ASCString &name)

Static Public Member Functions

static GameMaploadGameFromFile (const ASCString &name)

Detailed Description

Definition at line 139 of file loaders.h.


Member Function Documentation

GameMap * tsavegameloaders::loadgame ( tnstream strm  ) 

Definition at line 1141 of file loaders.cpp.

References actsavegameversion, calculateallobjects(), tspfldloaders::chainitems(), checkForUniqueUnitIDs(), fileterminator, tnstream::getDeviceName(), loadmapfromstream(), tspfldloaders::mapLoaded, minsavegameversion, GameMap::player, Research::read_techs(), tgameloaders::readAI(), tspfldloaders::readdissections(), tspfldloaders::readfields(), tnstream::readInt(), tspfldloaders::readLegacyNetwork(), tspfldloaders::readmap(), tspfldloaders::readmessages(), readOldEventLists(), tspfldloaders::readoldevents(), tnstream::readString(), tnstream::readWord(), GameMap::replayinfo, Player::research, seteventtriggers(), tspfldloaders::spfld, tspfldloaders::stream, and weatherSystemRequired().

Referenced by loadGameFromFile(), and loadreplay().

GameMap * tsavegameloaders::loadGameFromFile ( const ASCString name  )  [static]

Definition at line 1134 of file loaders.cpp.

References loadgame(), and tnstream::reading.

Referenced by loadGameFromFile().

GameFileInformation tsavegameloaders::loadMapimageFromFile ( const ASCString filename  ) 

Definition at line 1108 of file loaders.cpp.

References fileterminator, tnstream::getDeviceName(), GameFileInformation::image, loadmapfromstream(), GameFileInformation::maptitle, GameFileInformation::playername, tnstream::reading, tnstream::readInt(), tnstream::readString(), tnstream::readWord(), tspfldloaders::stream, and GameFileInformation::turn.

Referenced by SavegameWidget::display().

void tsavegameloaders::savegame ( tnstream strm,
GameMap gamemap,
bool  writeReplays = true 
)

Definition at line 1059 of file loaders.cpp.

References actsavegameversion, fileterminator, GameMap::getCurrentPlayer(), getFullVersionString(), Player::getName(), GameMap::maptitle, GameMap::replayinfo, tspfldloaders::spfld, PackageManager::storeData(), tspfldloaders::stream, GameMap::time, GameTime::turn(), tgameloaders::writeAI(), tspfldloaders::writedissections(), tspfldloaders::writefields(), tnstream::writeInt(), tspfldloaders::writemap(), writemaptostream(), tspfldloaders::writemessages(), tnstream::writepchar(), tnstream::writeString(), and tnstream::writeWord().

Referenced by savegame(), savegame(), and savereplay().

void tsavegameloaders::savegame ( GameMap gamemap,
const ASCString name 
)

Definition at line 1102 of file loaders.cpp.

References savegame(), and tnstream::writing.


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:47:56 2012 for Advanced Strategic Command by  doxygen 1.5.1