se_client::Phrase Class Reference

Maintains in-game text in multiple languages. More...

#include <Phrase.hpp>

List of all members.

Public Types

enum  PhraseType {
  UNDEFINED, MENU_LABEL, ACTION_LABEL, THING_LABEL,
  THING_DESCRIPTION, SPEECH, TYPE_COUNT
}

Public Member Functions

 Phrase ()
 ~Phrase ()
void addPhrase (unsigned short language, PhraseType type, se_core::String *name, se_core::String *phrase)
unsigned short findPhrase (PhraseType type, const char *name)
const char * getPhrase (PhraseType type, const char *name)
void setLanguage (unsigned short language)
void clampToSupportedLanguage ()
void addLanguage (unsigned short id, const char *name)
void addLanguage (const char *id, const char *name)
int supportedLanguageCount ()
LanguagesupportedLanguage (int index)

Static Public Member Functions

unsigned short languageId (const char *language)
short typeIdOfName (const char *name)


Detailed Description

Maintains in-game text in multiple languages.

Definition at line 31 of file Phrase.hpp.


Member Enumeration Documentation

enum se_client::Phrase::PhraseType
 

Enumeration values:
UNDEFINED 
MENU_LABEL 
ACTION_LABEL 
THING_LABEL 
THING_DESCRIPTION 
SPEECH 
TYPE_COUNT 

Definition at line 35 of file Phrase.hpp.


Constructor & Destructor Documentation

se_client::Phrase::Phrase  ) 
 

Definition at line 33 of file Phrase.cpp.

References se_core::DE_PHRASE_TYPE.

se_client::Phrase::~Phrase  ) 
 

Definition at line 52 of file Phrase.cpp.


Member Function Documentation

void se_client::Phrase::addLanguage const char *  id,
const char *  name
 

Definition at line 181 of file Phrase.cpp.

void se_client::Phrase::addLanguage unsigned short  id,
const char *  name
 

Definition at line 172 of file Phrase.cpp.

References Assert.

Referenced by se_client::LanguageParser::parse().

void se_client::Phrase::addPhrase unsigned short  language,
PhraseType  type,
se_core::String name,
se_core::String phrase
 

Definition at line 86 of file Phrase.cpp.

References Assert, and se_core::String::get().

Referenced by se_client::LanguageParser::parse().

void se_client::Phrase::clampToSupportedLanguage  ) 
 

Definition at line 75 of file Phrase.cpp.

References Assert.

unsigned short se_client::Phrase::findPhrase PhraseType  type,
const char *  name
 

Definition at line 117 of file Phrase.cpp.

const char * se_client::Phrase::getPhrase PhraseType  type,
const char *  name
 

Definition at line 137 of file Phrase.cpp.

References Assert.

Referenced by se_ogre::SpeechBubble::translate().

unsigned short se_client::Phrase::languageId const char *  language  )  [static]
 

Definition at line 149 of file Phrase.cpp.

void se_client::Phrase::setLanguage unsigned short  language  ) 
 

Definition at line 70 of file Phrase.cpp.

Language* se_client::Phrase::supportedLanguage int  index  )  [inline]
 

Definition at line 53 of file Phrase.hpp.

int se_client::Phrase::supportedLanguageCount  )  [inline]
 

Definition at line 52 of file Phrase.hpp.

short se_client::Phrase::typeIdOfName const char *  name  )  [static]
 

Definition at line 155 of file Phrase.cpp.

References LogFatal.


The documentation for this class was generated from the following files:

Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:22 2007 by Doxygen version 1.3.9.1.

SourceForge.net Logo