Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

tspfldloaders Class Reference

#include <loaders.h>

Inheritance diagram for tspfldloaders:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void readoldevents (void)
void writedissections (void)
void readdissections (void)
void readLegacyNetwork (void)
virtual void initmap (void)=0
void writemap (void)
void readmap (void)
void writefields (void)
void readfields (void)
void writemessages (void)
void writemessagelist (MessagePntrContainer &lst)
void readmessages (void)
void readmessagelist (MessagePntrContainer &lst)
void chainitems (GameMap *actmap)
void setplayerexistencies (void)
virtual ~tspfldloaders ()
 tspfldloaders (void)

Public Attributes

pnstream stream
GameMapspfld

Static Public Attributes

static SigC::Signal1< void,
GameMap * > 
mapLoaded

Constructor & Destructor Documentation

tspfldloaders::~tspfldloaders  )  [virtual]
 

Definition at line 860 of file loaders.cpp.

References spfld.

tspfldloaders::tspfldloaders void   ) 
 

Definition at line 854 of file loaders.cpp.

References spfld.


Member Function Documentation

void tspfldloaders::chainitems GameMap actmap  ) 
 

Definition at line 834 of file loaders.cpp.

References tfield::setparams().

Referenced by tsavegameloaders::loadgame(), and tnetworkloaders::loadnwgame().

virtual void tspfldloaders::initmap void   )  [pure virtual]
 

Implemented in tgameloaders.

void tspfldloaders::readdissections void   ) 
 

Definition at line 124 of file loaders.cpp.

References Player::__dissectionsToLoad, Player::dissections, Player::Dissection::fzt, Player::Dissection::num, Player::Dissection::orgpoints, GameMap::player, Player::Dissection::points, tnstream::readInt(), spfld, stream, Player::Dissection::tech, technologyRepository, and vehicleTypeRepository.

Referenced by tsavegameloaders::loadgame(), and tnetworkloaders::loadnwgame().

void tspfldloaders::readfields void   ) 
 

Definition at line 607 of file loaders.cpp.

References GameMap::allocateFields(), assertOrThrow, tfield::bdt, tfield::building, cbbuildingentry, cgp_antipersonnelmine_lifetime, OverviewMapHolder::connect(), tfield::connection, csm_b3, csm_b4, csm_building, csm_cnt2, csm_connection, csm_direction, csm_fuel, csm_material, csm_newobject, csm_object, csm_resources, csm_typid32, csm_vehicle, csm_visible, csm_weather, Object::damage, Object::dir, displaymessage(), GameMap::field, tfield::fuel, GameMap::getgameparameter(), getTerrainBitType(), ObjectType::lifetime, AgeableItem::lifetimer, tfield::material, tfield::mines, Building::newFromStream(), Vehicle::newFromStream(), tfield::objects, objectstreamversion, objectTypeRepository, GameMap::overviewMapHolder, tnstream::readChar(), tnstream::readInt(), tnstream::readWord(), Object::remainingGrowthTime, tfield::resourceview, TerrainBits::setInt(), Vehicle::setnewposition(), tfield::sortobjects(), spfld, stream, tfield::tempw, terrainTypeRepository, GameMap::time, GameTime::turn(), Object::typ, tfield::typ, Mine::type, tfield::vehicle, tfield::view, tfield::visible, TerrainType::weather, GameMap::xsize, and GameMap::ysize.

Referenced by tsavegameloaders::loadgame(), and tnetworkloaders::loadnwgame().

void tspfldloaders::readLegacyNetwork void   ) 
 

Definition at line 438 of file loaders.cpp.

References GameMap::___loadLegacyNetwork, readLegacyNetworkData(), spfld, and stream.

Referenced by tsavegameloaders::loadgame(), and tnetworkloaders::loadnwgame().

void tspfldloaders::readmap void   ) 
 

Definition at line 385 of file loaders.cpp.

References GameMap::read(), spfld, and stream.

Referenced by findNextCampaignMap(), tsavegameloaders::loadgame(), and tnetworkloaders::loadnwgame().

void tspfldloaders::readmessagelist MessagePntrContainer lst  ) 
 

Definition at line 251 of file loaders.cpp.

References GameMap::messages, tnstream::readInt(), spfld, stream, and warning().

Referenced by readmessages().

void tspfldloaders::readmessages void   ) 
 

Definition at line 270 of file loaders.cpp.

References GameMap::___loadJournal, GameMap::___loadNewJournal, GameMap::__loadmessages, Player::__loadoldmessage, Player::__loadsentmessage, Player::__loadunreadmessage, GameMap::__loadunsentmessage, assertOrThrow, Message::cc, Message::from, GameMap::gameJournal, Message::gametime, Message::id, magic, messageMinVersion, messageVersion, GameMap::newJournal, Player::oldmessage, GameMap::player, tnstream::readInt(), readmessagelist(), tnstream::readString(), Message::reminder, Player::sentmessage, GameTime::set(), spfld, stream, Message::text, Message::time, Message::to, Player::unreadmessage, and GameMap::unsentmessage.

Referenced by tsavegameloaders::loadgame(), and tnetworkloaders::loadnwgame().

void tspfldloaders::readoldevents void   ) 
 

Definition at line 333 of file loaders.cpp.

References GameMap::loadOldEvents, tnstream::readInt(), spfld, and stream.

Referenced by tsavegameloaders::loadgame(), and tnetworkloaders::loadnwgame().

void tspfldloaders::setplayerexistencies void   ) 
 

void tspfldloaders::writedissections void   ) 
 

Definition at line 156 of file loaders.cpp.

References Player::dissections, GameMap::player, spfld, stream, and tnstream::writeInt().

Referenced by tsavegameloaders::savegame(), and tnetworkloaders::savenwgame().

void tspfldloaders::writefields void   ) 
 

Definition at line 453 of file loaders.cpp.

References tfield::bdt, tfield::building, cbbuildingentry, tfield::connection, csm_b3, csm_b4, csm_building, csm_cnt2, csm_connection, csm_fuel, csm_material, csm_newobject, csm_resources, csm_typid32, csm_vehicle, csm_visible, csm_weather, cwettertypennum, displaymessage(), GameMap::field, tfield::fuel, getTerrainBitType(), TerrainType::id, tfield::material, tfield::mines, tfield::objects, objectstreamversion, tfield::resourceview, spfld, stream, TerrainType::Weather::terraintype, tfield::typ, tfield::vehicle, tfield::visible, TerrainType::weather, Building::write(), Vehicle::write(), tnstream::writeChar(), tnstream::writeInt(), GameMap::xsize, and GameMap::ysize.

Referenced by tsavegameloaders::savegame(), tmaploaders::savemap(), and tnetworkloaders::savenwgame().

void tspfldloaders::writemap void   ) 
 

Definition at line 363 of file loaders.cpp.

References checkForUniqueUnitIDs(), displaymessage(), spfld, stream, and GameMap::write().

Referenced by tsavegameloaders::savegame(), tmaploaders::savemap(), and tnetworkloaders::savenwgame().

void tspfldloaders::writemessagelist MessagePntrContainer lst  ) 
 

Definition at line 234 of file loaders.cpp.

References stream, and tnstream::writeInt().

Referenced by writemessages().

void tspfldloaders::writemessages void   ) 
 

Definition at line 188 of file loaders.cpp.

References GameMap::gameJournal, GameMap::messages, messageVersion, GameMap::newJournal, Player::oldmessage, GameMap::player, Player::sentmessage, spfld, stream, Player::unreadmessage, GameMap::unsentmessage, tnstream::writeInt(), writemessagelist(), and tnstream::writeString().

Referenced by tsavegameloaders::savegame(), and tnetworkloaders::savenwgame().


Member Data Documentation

SigC::Signal1< void, GameMap * > tspfldloaders::mapLoaded [static]
 

Definition at line 851 of file loaders.cpp.

Referenced by tsavegameloaders::loadgame(), tnetworkloaders::loadnwgame(), and main().

GameMap* tspfldloaders::spfld
 

Definition at line 70 of file loaders.h.

Referenced by findNextCampaignMap(), tgameloaders::initmap(), tsavegameloaders::loadgame(), tnetworkloaders::loadnwgame(), tgameloaders::readAI(), readdissections(), readfields(), readLegacyNetwork(), readmap(), readmessagelist(), readmessages(), readoldevents(), tsavegameloaders::savegame(), tmaploaders::savemap(), tnetworkloaders::savenwgame(), tspfldloaders(), tgameloaders::writeAI(), writedissections(), writefields(), writemap(), writemessages(), and ~tspfldloaders().

pnstream tspfldloaders::stream
 

Definition at line 69 of file loaders.h.

Referenced by findNextCampaignMap(), tsavegameloaders::loadgame(), tnetworkloaders::loadnwgame(), readdissections(), readfields(), readLegacyNetwork(), readmap(), readmessagelist(), readmessages(), readoldevents(), tsavegameloaders::savegame(), tmaploaders::savemap(), tnetworkloaders::savenwgame(), tgameloaders::writeAI(), writedissections(), writefields(), writemap(), writemessagelist(), and writemessages().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:21:55 2008 for Advanced Strategic Command by  doxygen 1.4.2