vegastrike
0.5.1.r1
|
#include <savegame.h>
Public Member Functions | |
~SaveGame () | |
void | ReloadPickledData () |
const std::string & | GetCallsign () const |
void | SetCallsign (const std::string &cs) |
std::vector< float > & | getMissionData (const std::string &magic_number) |
const std::vector< float > & | readMissionData (const std::string &magic_number) const |
unsigned int | getMissionDataLength (const std::string &magic_number) const |
std::vector< std::string > & | getMissionStringData (const std::string &magic_number) |
const std::vector< std::string > & | readMissionStringData (const std::string &magic_number) const |
unsigned int | getMissionStringDataLength (const std::string &magic_number) const |
SaveGame (const std::string &pilotname) | |
void | PurgeZeroStarships () |
float | GetSavedCredits () |
void | SetSavedCredits (float) |
void | SetPlayerLocation (const QVector &playerloc) |
QVector | GetPlayerLocation () |
void | SetStarSystem (std::string sys) |
std::string | GetStarSystem () |
std::string | GetOldStarSystem () |
std::string | GetPlayerFaction () |
void | SetPlayerFaction (std::string faction) |
std::string | WriteSavedUnit (SavedUnits *su) |
std::string | WriteSaveGame (const char *systemname, const class QVector &Pos, float credits, std::vector< std::string >unitname, int player_num, std::string fact="", bool write=true) |
std::string | WritePlayerData (const QVector &FP, std::vector< std::string >unitname, const char *systemname, float credits, std::string fact="") |
std::string | WriteDynamicUniverse () |
void | ReadSavedPackets (char *&buf, bool commitfaction, bool skip_news=false, bool select_data=false, const std::set< std::string > &select_data_filter=std::set< std::string >()) |
void | AddUnitToSave (const char *unitname, int type, const char *faction, long address) |
cast address to long (for 64 bits compatibility) More... | |
void | RemoveUnitFromSave (long address) |
void | SetOutputFileName (const std::string &filename) |
void | ParseSaveGame (const std::string &filename, std::string &ForceStarSystem, const std::string &originalstarsystem, QVector &pos, bool &shouldupdatedfighter0pos, float &credits, std::vector< std::string > &originalunit, int player_num, const std::string &savestr=std::string(), bool read=true, bool commitFaction=true, bool quick_read=false, bool skip_news=false, bool select_data=false, const std::set< std::string > &select_data_filter=std::set< std::string >()) |
void | LoadSavedMissions () |
Definition at line 28 of file savegame.h.
SaveGame::~SaveGame | ( | ) |
Definition at line 182 of file savegame.cpp.
SaveGame::SaveGame | ( | const std::string & | pilotname) |
Definition at line 173 of file savegame.cpp.
void SaveGame::AddUnitToSave | ( | const char * | unitname, |
int | type, | ||
const char * | faction, | ||
long | address | ||
) |
cast address to long (for 64 bits compatibility)
Definition at line 374 of file savegame.cpp.
|
inline |
Definition at line 53 of file savegame.h.
std::vector< float > & SaveGame::getMissionData | ( | const std::string & | magic_number) |
Get read-write access to mission data
Definition at line 380 of file savegame.cpp.
unsigned int SaveGame::getMissionDataLength | ( | const std::string & | magic_number) | const |
Get mission data length (read-only)
Definition at line 392 of file savegame.cpp.
std::vector< string > & SaveGame::getMissionStringData | ( | const std::string & | magic_number) |
Get read-write access to mission string data
Definition at line 405 of file savegame.cpp.
unsigned int SaveGame::getMissionStringDataLength | ( | const std::string & | magic_number) | const |
Get mission string data length (read-only)
Definition at line 410 of file savegame.cpp.
string SaveGame::GetOldStarSystem | ( | ) |
Definition at line 198 of file savegame.cpp.
|
inline |
Definition at line 90 of file savegame.h.
QVector SaveGame::GetPlayerLocation | ( | ) |
Definition at line 214 of file savegame.cpp.
float SaveGame::GetSavedCredits | ( | ) |
Definition at line 856 of file savegame.cpp.
string SaveGame::GetStarSystem | ( | ) |
Definition at line 193 of file savegame.cpp.
void SaveGame::LoadSavedMissions | ( | ) |
Definition at line 692 of file savegame.cpp.
void SaveGame::ParseSaveGame | ( | const std::string & | filename, |
std::string & | ForceStarSystem, | ||
const std::string & | originalstarsystem, | ||
QVector & | pos, | ||
bool & | shouldupdatedfighter0pos, | ||
float & | credits, | ||
std::vector< std::string > & | originalunit, | ||
int | player_num, | ||
const std::string & | savestr = std::string() , |
||
bool | read = true , |
||
bool | commitFaction = true , |
||
bool | quick_read = false , |
||
bool | skip_news = false , |
||
bool | select_data = false , |
||
const std::set< std::string > & | select_data_filter = std::set< std::string > () |
||
) |
Definition at line 874 of file savegame.cpp.
void SaveGame::PurgeZeroStarships | ( | ) |
Definition at line 581 of file savegame.cpp.
const std::vector< float > & SaveGame::readMissionData | ( | const std::string & | magic_number) | const |
Get read-only access to mission data - note: returns empty stub if key isn't found
Definition at line 385 of file savegame.cpp.
const std::vector< string > & SaveGame::readMissionStringData | ( | const std::string & | magic_number) | const |
Get read-only access to mission string data - note: returns empty stub if key isn't found
Definition at line 398 of file savegame.cpp.
void SaveGame::ReadSavedPackets | ( | char *& | buf, |
bool | commitfaction, | ||
bool | skip_news = false , |
||
bool | select_data = false , |
||
const std::set< std::string > & | select_data_filter = std::set< std::string > () |
||
) |
Definition at line 651 of file savegame.cpp.
void SaveGame::ReloadPickledData | ( | ) |
Definition at line 101 of file load_mission.cpp.
void SaveGame::RemoveUnitFromSave | ( | long | address) |
Definition at line 219 of file savegame.cpp.
|
inline |
Definition at line 57 of file savegame.h.
void SaveGame::SetOutputFileName | ( | const std::string & | filename) |
Definition at line 866 of file savegame.cpp.
|
inline |
Definition at line 94 of file savegame.h.
void SaveGame::SetPlayerLocation | ( | const QVector & | playerloc) |
Definition at line 203 of file savegame.cpp.
void SaveGame::SetSavedCredits | ( | float | c) |
Definition at line 861 of file savegame.cpp.
void SaveGame::SetStarSystem | ( | std::string | sys) |
Definition at line 188 of file savegame.cpp.
string SaveGame::WriteDynamicUniverse | ( | ) |
Definition at line 770 of file savegame.cpp.
string SaveGame::WritePlayerData | ( | const QVector & | FP, |
std::vector< std::string > | unitname, | ||
const char * | systemname, | ||
float | credits, | ||
std::string | fact = "" |
||
) |
Definition at line 740 of file savegame.cpp.
string SaveGame::WriteSavedUnit | ( | SavedUnits * | su) |
Definition at line 723 of file savegame.cpp.
string SaveGame::WriteSaveGame | ( | const char * | systemname, |
const class QVector & | Pos, | ||
float | credits, | ||
std::vector< std::string > | unitname, | ||
int | player_num, | ||
std::string | fact = "" , |
||
bool | write = true |
||
) |
Definition at line 819 of file savegame.cpp.