SDL Breakout Engine  0.1.0
An implementation of a Breakout game using sdl, implemented with efficient resource management.
Public Member Functions | List of all members
Translator Class Reference

#include <LocalizationManager.hpp>

Public Member Functions

 Translator (std::map< wstring, wstring > phraseTranslations)
 
wstring translate (wstring s1)
 

Detailed Description

A translator for a game, between the 2 languages the game wants to use.

Constructor & Destructor Documentation

Translator::Translator ( std::map< wstring, wstring >  phraseTranslations)

Initialize with a mapping from phrase to phrase

Parameters
phraseTranslationsthe mapping

Member Function Documentation

wstring Translator::translate ( wstring  s1)

Translates a string into another language

Parameters
s1

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