![]() |
V-Gears 0
Free Final Fantasy VII engine.
|
Handles Final Fantasy VII Metadata. More...
#include <FF7NameLookup.h>
Classes | |
struct | FieldMetaData |
A field metadata representation. More... | |
Public Member Functions | |
FF7Metadata (Ogre::String file) | |
Constructor. More... | |
const String & | Animation (const String &key) const |
Matches animation names. More... | |
const String & | Model (const String &key) const |
Matches model names. More... | |
![]() | |
XmlFile (const Ogre::String &file) | |
Constructor. More... | |
virtual | ~XmlFile () |
Destructor. More... | |
bool | GetBool (TiXmlNode *node, const Ogre::String &tag, bool def=false) const |
Retrieves a boolean from an XMl tag. More... | |
int | GetInt (TiXmlNode *node, const Ogre::String &tag, int def=0) const |
Retrieves an integer from an XMl tag. More... | |
float | GetFloat (TiXmlNode *node, const Ogre::String &tag, float def=0.0f) const |
Retrieves a defcimal from an XMl tag. More... | |
const Ogre::String | GetString (TiXmlNode *node, const Ogre::String &tag, const Ogre::String &def="") const |
Retrieves a string from an XMl tag. More... | |
const Ogre::UTFString | GetUTFString (TiXmlNode *node, const Ogre::String &tag, const Ogre::UTFString &def="") const |
Retrieves a string from an XMl tag. More... | |
const Ogre::Vector2 | GetVector2 (TiXmlNode *node, const Ogre::String &tag, const Ogre::Vector2 &def=Ogre::Vector2::ZERO) const |
Retrieves a 2-dimensional vector from an XMl tag. More... | |
const Ogre::Vector3 | GetVector3 (TiXmlNode *node, const Ogre::String &tag, const Ogre::Vector3 &def=Ogre::Vector3::ZERO) const |
Retrieves a 3-dimensional vector from an XMl tag. More... | |
const Ogre::Vector4 | GetVector4 (TiXmlNode *node, const Ogre::String &tag, const Ogre::Vector4 &def=Ogre::Vector4::ZERO) const |
Retrieves a 4-dimensional vector from an XMl tag. More... | |
const Ogre::Matrix4 | GetMatrix4 (TiXmlNode *node, const Ogre::String &tag, const Ogre::Matrix4 &def=Ogre::Matrix4::IDENTITY) const |
Retrieves a 4-dimensional matrix from an XMl tag. More... | |
const Ogre::Quaternion | GetQuaternion (TiXmlNode *node, const Ogre::String &tag, const Ogre::Quaternion &def=Ogre::Quaternion::IDENTITY) const |
Retrieves a quaternion from an XMl tag. More... | |
const Ogre::ColourValue | GetColourValue (TiXmlNode *node, const Ogre::String &tag, const Ogre::ColourValue &def=Ogre::ColourValue::ZERO) const |
Retrieves a colour from an XMl tag. More... | |
Private Types | |
typedef std::map< String, String > | LookupMap |
Private Member Functions | |
void | ReadModels (TiXmlNode *node) |
Reads all models from an XML node. More... | |
void | ReadAnimations (TiXmlNode *node) |
Reads all models from an XML node. More... | |
void | ReadScripts (TiXmlNode *node) |
Reads all scripts from an XML node. More... | |
void | ReadField (TiXmlNode *node, const std::string &name) |
Reads field information from an XML node. More... | |
void | ReadFunction (TiXmlNode *node, const std::string &field_name) |
Reads a function of a field from an XML node. More... | |
void | ReadEntityNames (TiXmlNode *node) |
Reads all entity from an XML node. More... | |
void | ReadVarNames (TiXmlNode *node) |
Reads all variable names from an XML node. More... | |
void | ReadCharacterIds (TiXmlNode *node) |
Reads all character identifiers from an XML node. More... | |
std::pair< String, String > | FieldScriptFunctionData (const String &field_name, const String &entity_name, const String &old_function_name) |
Retrieves a field script function data. More... | |
Private Attributes | |
LookupMap | models_ |
The list of models. More... | |
LookupMap | animations_ |
The list of animations. More... | |
std::map< int, String > | character_ids_ |
Character identifier map. More... | |
std::map< int, std::map< int, String > > | var_map_ |
Variable map. More... | |
LookupMap | entity_name_map_ |
Entity name map. More... | |
std::map< String, FieldMetaData > | field_data_ |
Friends | |
class | NameLookup |
Additional Inherited Members | |
![]() | |
bool | normal_file_ |
Indicates if the file is a normal file. More... | |
TiXmlDocument | file_ |
The XML file. More... | |
Handles Final Fantasy VII Metadata.
|
private |
|
inline |
Constructor.
[in] | file | The XML file. |
Matches animation names.
Looks for defined names associated to the original game animation names. Defined names are more user friendly, more readable and more descriptive.
[in] | key | Original game animation name. |
|
inlineprivate |
Retrieves a field script function data.
[in] | field_name | The name of the field from witch to get the data. |
[in] | entity_name | Name of the entity rom witch to get the data. |
[in] | old_function_name | The original function name. |
Matches model names.
Looks for defined names associated to the original game model names. Defined names are more user friendly, more readable and more descriptive.
[in] | key | Original game model name. |
|
inlineprivate |
Reads all models from an XML node.
[in] | node | XML node to read. |
|
inlineprivate |
Reads all character identifiers from an XML node.
[in] | node | XML node to read. |
|
inlineprivate |
Reads all entity from an XML node.
[in] | node | XML node to read. |
|
inlineprivate |
Reads field information from an XML node.
[in] | node | XML node to read. |
[in] | name | Unused. |
|
inlineprivate |
Reads a function of a field from an XML node.
[in] | node | XML node to read. |
[in] | field_name | The anme of the field. |
|
inlineprivate |
Reads all models from an XML node.
[in] | node | XML node to read. |
|
inlineprivate |
Reads all scripts from an XML node.
[in] | node | XML node to read. |
|
inlineprivate |
Reads all variable names from an XML node.
[in] | node | XML node to read. |
|
friend |
|
private |
The list of animations.
|
private |
|
private |
The list of models.
|
private |
Variable map.