libHSPlasma
|
#include <plAgeInfo.h>
Classes | |
struct | PageEntry |
Public Types | |
enum | CommonPages { kTextures, kGlobal, kNumCommonPages } |
enum | LoadFlags { kPreventAutoLoad = 0x1, kLoadIfSDLPresent = 0x2, kDontLoadMask = (kPreventAutoLoad | kLoadIfSDLPresent), kIsLocalOnly = 0x4, kIsVolatile = 0x8 } |
Public Member Functions | |
plAgeInfo () | |
void | readFromFile (const plString &filename) |
void | writeToFile (const plString &filename, PlasmaVer ver) |
void | prcWrite (pfPrcHelper *prc) |
void | prcParse (const pfPrcTag *tag) |
plString | getAgeName () const |
unsigned int | getStartDateTime () const |
float | getDayLength () const |
short | getMaxCapacity () const |
short | getLingerTime () const |
int | getSeqPrefix () const |
unsigned int | getReleaseVersion () const |
void | setAgeName (const plString &name) |
void | setStartDateTime (unsigned int time) |
void | setDayLength (float length) |
void | setMaxCapacity (short maxCap) |
void | setLingerTime (short time) |
void | setSeqPrefix (int prefix) |
void | setReleaseVersion (unsigned int ver) |
size_t | getNumPages () const |
PageEntry | getPage (size_t idx) const |
void | setPage (size_t idx, const PageEntry &page) |
void | addPage (const PageEntry &page) |
void | clearPages () |
size_t | getNumCommonPages (PlasmaVer pv) const |
PageEntry | getCommonPage (size_t idx, PlasmaVer pv) const |
plString | getPageFilename (size_t idx, PlasmaVer pv) const |
plString | getCommonPageFilename (size_t idx, PlasmaVer pv) const |
plLocation | getPageLoc (size_t idx, PlasmaVer pv) const |
plLocation | getCommonPageLoc (size_t idx, PlasmaVer pv) const |
std::vector< plLocation > | getPageLocs (PlasmaVer pv, bool all=false) const |
Static Public Attributes | |
static const plString | kCommonPages [kNumCommonPages] |
Protected Attributes | |
plString | fName |
unsigned int | fStartDateTime |
float | fDayLength |
short | fMaxCapacity |
short | fLingerTime |
int | fSeqPrefix |
unsigned int | fReleaseVersion |
std::vector< PageEntry > | fPages |
enum plAgeInfo::LoadFlags |
plAgeInfo::plAgeInfo | ( | ) |
void plAgeInfo::addPage | ( | const PageEntry & | page | ) |
void plAgeInfo::clearPages | ( | ) |
plString plAgeInfo::getAgeName | ( | ) | const |
plLocation plAgeInfo::getCommonPageLoc | ( | size_t | idx, |
PlasmaVer | pv | ||
) | const |
float plAgeInfo::getDayLength | ( | ) | const |
short plAgeInfo::getLingerTime | ( | ) | const |
short plAgeInfo::getMaxCapacity | ( | ) | const |
size_t plAgeInfo::getNumCommonPages | ( | PlasmaVer | pv | ) | const |
size_t plAgeInfo::getNumPages | ( | ) | const |
PageEntry plAgeInfo::getPage | ( | size_t | idx | ) | const |
plLocation plAgeInfo::getPageLoc | ( | size_t | idx, |
PlasmaVer | pv | ||
) | const |
std::vector<plLocation> plAgeInfo::getPageLocs | ( | PlasmaVer | pv, |
bool | all = false |
||
) | const |
unsigned int plAgeInfo::getReleaseVersion | ( | ) | const |
int plAgeInfo::getSeqPrefix | ( | ) | const |
unsigned int plAgeInfo::getStartDateTime | ( | ) | const |
void plAgeInfo::prcParse | ( | const pfPrcTag * | tag | ) |
void plAgeInfo::prcWrite | ( | pfPrcHelper * | prc | ) |
void plAgeInfo::readFromFile | ( | const plString & | filename | ) |
void plAgeInfo::setAgeName | ( | const plString & | name | ) |
void plAgeInfo::setDayLength | ( | float | length | ) |
void plAgeInfo::setLingerTime | ( | short | time | ) |
void plAgeInfo::setMaxCapacity | ( | short | maxCap | ) |
void plAgeInfo::setPage | ( | size_t | idx, |
const PageEntry & | page | ||
) |
void plAgeInfo::setReleaseVersion | ( | unsigned int | ver | ) |
void plAgeInfo::setSeqPrefix | ( | int | prefix | ) |
void plAgeInfo::setStartDateTime | ( | unsigned int | time | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |