|
xoreos
0.0.5
|
#include <savedgame.h>

Public Member Functions | |
| SavedGame () | |
| const Common::UString & | getName () const |
| const Common::UString & | getModuleName () const |
| uint32 | getTimePlayed () const |
| Creature * | getPC () |
| bool | isPCLoaded () const |
Static Public Member Functions | |
| static SavedGame * | load (const Common::UString &dir, bool loadSav=false) |
| Load saved game from a specified directory. More... | |
Static Private Member Functions | |
| static void | fillFromNFO (const Aurora::GFF3File &gff, SavedGame *save) |
| static void | fillFromSAV (const Aurora::ERFFile &erf, const Common::UString &moduleName, SavedGame *save) |
| static void | fillFromModuleSAV (const Aurora::ERFFile &erf, SavedGame *save) |
| static void | fillFromModuleIFO (const Aurora::GFF3File &gff, SavedGame *save) |
Private Attributes | |
| Common::UString | _name |
| Common::UString | _moduleName |
| uint32 | _timePlayed |
| uint8 | _pcGender |
| float | _pcPosition [3] |
| bool | _pcLoaded |
| Creature * | _pc |
Definition at line 40 of file savedgame.h.
| Engines::KotOR::SavedGame::SavedGame | ( | ) |
Definition at line 117 of file savedgame.cpp.
Referenced by load().

|
staticprivate |
Definition at line 104 of file savedgame.cpp.
References _pcGender, _pcLoaded, _pcPosition, Aurora::GFF3Struct::getDouble(), Aurora::GFF3Struct::getList(), Aurora::GFF3File::getTopLevel(), Aurora::GFF3Struct::getUint(), and warning().
Referenced by fillFromModuleSAV().


|
staticprivate |
Definition at line 84 of file savedgame.cpp.
References fillFromModuleIFO(), Aurora::ERFFile::getResource(), Aurora::ERFFile::getResources(), Aurora::Archive::Resource::index, Aurora::kFileTypeIFO, Aurora::Archive::Resource::name, Aurora::Archive::Resource::type, and warning().
Referenced by fillFromSAV().


|
staticprivate |
Definition at line 56 of file savedgame.cpp.
References _moduleName, _name, _timePlayed, Aurora::GFF3Struct::getString(), Aurora::GFF3File::getTopLevel(), and Aurora::GFF3Struct::getUint().
Referenced by load().


|
staticprivate |
Definition at line 63 of file savedgame.cpp.
References Common::UString::c_str(), fillFromModuleSAV(), Aurora::ERFFile::getResource(), Aurora::ERFFile::getResources(), Aurora::Archive::Resource::index, Aurora::kFileTypeSAV, Aurora::Archive::Resource::name, Common::UString::stricmp(), Aurora::Archive::Resource::type, and warning().
Referenced by load().


| const Common::UString & Engines::KotOR::SavedGame::getModuleName | ( | ) | const |
Definition at line 127 of file savedgame.cpp.
References _moduleName.
Referenced by Engines::KotOR::Module::loadSavedGame().

| const Common::UString & Engines::KotOR::SavedGame::getName | ( | ) | const |
Definition at line 123 of file savedgame.cpp.
References _name.
Referenced by Engines::KotOR::SaveLoadMenu::addSavedGameItems().

| Creature * Engines::KotOR::SavedGame::getPC | ( | ) |
Definition at line 135 of file savedgame.cpp.
References _pc, _pcGender, _pcLoaded, _pcPosition, Engines::KotOR::CharacterGenerationInfo::createRandomFemaleSoldier(), Engines::KotOR::CharacterGenerationInfo::createRandomMaleSoldier(), info(), Engines::KotOR::kGenderFemale, and Engines::KotOR::Creature::setPosition().
Referenced by Engines::KotOR::Module::loadSavedGame().


| uint32 Engines::KotOR::SavedGame::getTimePlayed | ( | ) | const |
Definition at line 131 of file savedgame.cpp.
References _timePlayed.
Referenced by Engines::KotOR::SaveLoadMenu::addSavedGameItems().

| bool Engines::KotOR::SavedGame::isPCLoaded | ( | ) | const |
Definition at line 158 of file savedgame.cpp.
References _pcLoaded.
Referenced by Engines::KotOR::Module::loadSavedGame().

|
static |
Load saved game from a specified directory.
| loadSav | if true load all saved state, otherwise load menu info only |
Definition at line 38 of file savedgame.cpp.
References _moduleName, fillFromNFO(), fillFromSAV(), Common::FilePath::normalize(), and SavedGame().
Referenced by Engines::KotOR::SaveLoadMenu::addSavedGameItems(), and Engines::KotOR::SaveLoadMenu::tryLoadGame().


|
private |
Definition at line 65 of file savedgame.h.
Referenced by fillFromNFO(), getModuleName(), and load().
|
private |
Definition at line 64 of file savedgame.h.
Referenced by fillFromNFO(), and getName().
|
private |
Definition at line 70 of file savedgame.h.
Referenced by getPC().
|
private |
Definition at line 67 of file savedgame.h.
Referenced by fillFromModuleIFO(), and getPC().
|
private |
Definition at line 69 of file savedgame.h.
Referenced by fillFromModuleIFO(), getPC(), and isPCLoaded().
|
private |
Definition at line 68 of file savedgame.h.
Referenced by fillFromModuleIFO(), and getPC().
|
private |
Definition at line 66 of file savedgame.h.
Referenced by fillFromNFO(), and getTimePlayed().
1.8.14