![]() |
VR-Forces 4.6 Class Documentation
|
Contains data describing the available attributes and animations of every DI-Guy character type that can be used at runtime by the sim engine. More...
Public Member Functions | |
| DtDiGuyCharacterDataManager (const DtFilename &appDataDir, const DtFilename &dataDir) | |
| Constructor. | |
| DtDiGuyCharacterDataManager (const DtFilename &appDataDir, const DtFilename &dataDir, makVrv::DtDiGuyScenario *) | |
| virtual | ~DtDiGuyCharacterDataManager () |
| Destructor. | |
| DtDiGuyCharacterDataManager (const DtDiGuyCharacterDataManager &orig) | |
| copy constructor | |
| DtDiGuyCharacterDataManager & | operator= (const DtDiGuyCharacterDataManager &orig) |
| assignment operator | |
| virtual bool | init () |
| Initialization. Must be called before any other functions are called. | |
| virtual void | setAnimationsConfigurationFilename (const DtFilename &config) |
| virtual bool | loadCharacterAnimationsFile (const DtFilename &mtlName) |
| Load the additional animation file. | |
| virtual bool | loadDataFromDIGuy () |
| Construct character data by instantiating DI-Guy and querying the instance for character types, appearances, actions, etc. | |
| virtual DtDiGuyCharacterData * | lookupCharacterByName (const DtString &characterName) |
| Returns DtDiGuyCharacterData object associated with named DI-Guy character type or NULL. | |
| virtual AlternateNamesList * | availableCharactersList () |
| Returns the list of all the DI-Guy characters available. | |
| virtual void | getAppearancesMatchingDiGuyTypeMap (const DtString &characterType, std::vector< DtString > &fields, std::vector< DtString > &retAppearances) |
| Given a DI-Guy character type and a complete set of type map field values, any of which can be a wildcard ("*"), return all matching character appearances. | |
| virtual void | getAppearancesMatchingPartialDiGuyTypeMap (const DtString &characterType, std::vector< DtString > &partialFields, std::vector< int > &fieldIndices, std::vector< DtString > &retAppearances) |
| Similar to above, but only some fields are specified. | |
| virtual void | getTypeMapFieldOptions (const DtString &characterType, std::vector< DtString > &fields, std::vector< std::list< DtString > > &retValues) |
| Given a DI-Guy character type and a complete set of type map field values, any of which can be a wildcard ("*"), return the possible choices for each type map field. | |
| virtual void | getTypeMapPartialFieldOptions (const DtString &characterType, std::vector< DtString > &partialFields, std::vector< int > &fieldIndices, std::vector< std::list< DtString > > &retValues) |
| Uses the same idea as getAppearancesMatchingPartialDiGuyTypeMap(). retValues only contains a set of lists for the fields passed in. | |
| DtDiGuyCharacterAnimationsTable * | animationTable () const |
| DtVrvDiGuyCharacterData * | masterDiGuyCharacterData () const |
| virtual makVrv::DtDiGuyScenario * | lightweightInstance () |
| Gets the lightweight instance used for diguy scenario information. | |
Static Public Member Functions | |
| static DtDiGuyCharacterDataManager * | characterManager () |
| Returns singleton instance of DtDiGuyCharacterDataManager. | |
| static DtDiGuyCharacterDataManager * | creator (const DtFilename &appDataDir, const DtFilename &dataDir) |
| Creates new singleton of DtDiGuyCharacterDataManager. | |
| static DtDiGuyCharacterDataManager * | creator (const DtFilename &appDataDir, const DtFilename &dataDir, makVrv::DtDiGuyScenario *) |
| static int | numberOfDiGuyTypeMapFields () |
| Number of type fields currently supported by di-guy. | |
Protected Member Functions | |
| virtual void | addCharacterData (DtDiGuyCharacterData *data) |
| void | findListIntersection (std::list< DtString > &orig, std::list< DtString > &second) |
| only orig is modified | |
| void | debugPrint (const char *fmt,...) |
| If myPrintInfo is true, then call printf() | |
Protected Attributes | |
| DtFilename | myAnimationsConfigurationFilename |
| DtDiGuyCharacterAnimationsTable * | myAnimationsConfigurationFile |
| std::map< DtString, DtDiGuyCharacterData * > | myCharacterMap |
| std::list< DtString > | myCharactersList |
| bool | myPrintInfo |
| DtVrvDiGuyCharacterData * | myMasterDiGuyCharacterData |
| DtFilename | myDataDir |
| makVrv::DtDiGuyScenario * | myLightweightInstance |
Static Protected Attributes | |
| static DtDiGuyCharacterDataManager * | theCharacterDataManager |
| So everyone can get at this class when they need to. | |
| static double | theCharacterManagerVersion |
Contains data describing the available attributes and animations of every DI-Guy character type that can be used at runtime by the sim engine.
| DtDiGuyCharacterDataManager::DtDiGuyCharacterDataManager | ( | const DtFilename & | appDataDir, |
| const DtFilename & | dataDir | ||
| ) |
Constructor.
| DtDiGuyCharacterDataManager::DtDiGuyCharacterDataManager | ( | const DtFilename & | appDataDir, |
| const DtFilename & | dataDir, | ||
| makVrv::DtDiGuyScenario * | |||
| ) |
|
virtual |
Destructor.
| DtDiGuyCharacterDataManager::DtDiGuyCharacterDataManager | ( | const DtDiGuyCharacterDataManager & | orig | ) |
copy constructor
|
static |
Returns singleton instance of DtDiGuyCharacterDataManager.
|
static |
Creates new singleton of DtDiGuyCharacterDataManager.
|
static |
| DtDiGuyCharacterDataManager& DtDiGuyCharacterDataManager::operator= | ( | const DtDiGuyCharacterDataManager & | orig | ) |
assignment operator
|
virtual |
Initialization. Must be called before any other functions are called.
|
virtual |
|
virtual |
Load the additional animation file.
|
virtual |
Construct character data by instantiating DI-Guy and querying the instance for character types, appearances, actions, etc.
|
virtual |
Returns DtDiGuyCharacterData object associated with named DI-Guy character type or NULL.
|
virtual |
Returns the list of all the DI-Guy characters available.
|
virtual |
Given a DI-Guy character type and a complete set of type map field values, any of which can be a wildcard ("*"), return all matching character appearances.
|
virtual |
Similar to above, but only some fields are specified.
The entries in fieldIndices correspond to the entries in partialFields, and each is the index of a type map field. partialFields contains the values of those particular fields; all others are assumed to be wildcards.
|
virtual |
Given a DI-Guy character type and a complete set of type map field values, any of which can be a wildcard ("*"), return the possible choices for each type map field.
The idea is that choices made in a more significant field narrow down the available choices in less significant fields. Each vector entry in retValues contains a list of choices corresponding to that type map field index.
|
virtual |
Uses the same idea as getAppearancesMatchingPartialDiGuyTypeMap(). retValues only contains a set of lists for the fields passed in.
|
inline |
|
static |
Number of type fields currently supported by di-guy.
|
inline |
|
virtual |
Gets the lightweight instance used for diguy scenario information.
|
protectedvirtual |
|
protected |
only orig is modified
|
protected |
If myPrintInfo is true, then call printf()
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
So everyone can get at this class when they need to.
|
staticprotected |