18#include <OgreString.h>
19#include <OgreSingleton.h>
83 const Ogre::String& name, TiXmlNode* node,
const float width,
const float height
153 void SetParty(
int char_1,
int char_2,
int char_3);
float * position
Used to keep track of the skeleton and it's bones positions.
Definition: DrawSkeleton.cpp:33
The text handler.
Definition: TextHandler.h:25
void AddText(const Ogre::String &name, TiXmlNode *node)
Adds text.
Definition: TextHandler.cpp:50
std::string GetPartyCharacterName(int position)
Retrieves a character name from it's party position.
Definition: TextHandler.cpp:108
std::vector< Dialog > dialogs_
The list of dialogs in the handler.
Definition: TextHandler.h:219
virtual ~TextHandler()
Destructor.
Definition: TextHandler.cpp:34
void AddDialog(const Ogre::String &name, TiXmlNode *node, const float width, const float height)
Adds a text dialog.
Definition: TextHandler.cpp:57
std::string GetCharacterName(int id)
Retrieves a character name from it's ID.
Definition: TextHandler.cpp:103
std::string character_names_[11]
Character names, indexed by character IDs.
Definition: TextHandler.h:227
TiXmlNode * GetDialog(const Ogre::String &name, float &width, float &height) const
Retrieves a dialog and it's dimensions by name.
Definition: TextHandler.cpp:75
TextHandler()
Constructor.
Definition: TextHandler.cpp:28
std::vector< Text > texts_
The list of texts in the handler.
Definition: TextHandler.h:188
void UnloadTexts()
Deletes all texts in the handler.
Definition: TextHandler.cpp:96
const Ogre::String & GetLanguage()
Retrieves the currently set language.
Definition: TextHandler.cpp:48
void InitCmd()
Initializes the commands for the text handler.
Definition: TextHandlerCommands.h:50
void SetParty(int char_1, int char_2, int char_3)
Sets the party member IDs.
Definition: TextHandler.cpp:121
void SetCharacterName(int id, char *name)
Sets a character name.
Definition: TextHandler.cpp:116
std::string GetDialogText(const std::string name)
Retrieves a dialog text by name.
Definition: TextHandler.cpp:86
TiXmlNode * GetText(const Ogre::String &name) const
Retrieves a text by name.
Definition: TextHandler.cpp:68
std::vector< int > GetParty()
Retrieves the party member IDs.
Definition: TextHandler.cpp:127
void SetLanguage(const Ogre::String &language)
Sets the language for texts.
Definition: TextHandler.cpp:41
Ogre::String language_
The language for the texts.
Definition: TextHandler.h:167
int current_party_[3]
Current party formation.
Definition: TextHandler.h:236
void LoadFieldText(const std::string field_name)
Loads texts for a specific field.
Definition: TextHandler.cpp:36
Ogre::String String
Definition: TypeDefine.h:37
A dialog.
Definition: TextHandler.h:193
float width
The text width.
Definition: TextHandler.h:208
float height
The text height.
Definition: TextHandler.h:213
TiXmlNode * node
Text node in an XML file.
Definition: TextHandler.h:203
Ogre::String name
Name or identifier of the text.
Definition: TextHandler.h:198
A text.
Definition: TextHandler.h:172
Ogre::String name
Name or identifier of the text.
Definition: TextHandler.h:177
TiXmlNode * node
Text node in an XML file.
Definition: TextHandler.h:182