Code clean up and refactoring.

Removed HaikuTTF from the project.

--HG--
branch : dev
This commit is contained in:
Martí­n Lucas Golini
2017-03-17 23:17:21 -03:00
parent 0a71104127
commit c0975dd80d
26 changed files with 30 additions and 1333 deletions

View File

@@ -14,9 +14,6 @@ class Pack;
class Translator {
public:
typedef std::map<std::string, String> StringDictionary;
typedef std::map<std::string, StringDictionary> StringLocaleDictionary;
Translator( const std::locale& locale = std::locale() );
void loadFromDirectory( std::string dirPath, std::string ext = "xml" );
@@ -45,6 +42,9 @@ class Translator {
void setCurrentLanguage( const std::string& currentLanguage );
protected:
typedef std::map<std::string, String> StringDictionary;
typedef std::map<std::string, StringDictionary> StringLocaleDictionary;
std::string mDefaultLanguage;
std::string mCurrentLanguage;
StringLocaleDictionary mDictionary;

View File

@@ -39,15 +39,6 @@ class EE_API Engine {
/** @return If any window is created. */
bool isRunning() const;
/** @return The current window elapsed time. */
Time getElapsed() const;
/** @return The current window width. */
const Uint32& getWidth() const;
/** @return The current window height */
const Uint32& getHeight() const;
/** @return If the window instance is inside the window list. */
bool existsWindow( EE::Window::Window * window );

View File

@@ -20,15 +20,15 @@ class InputFinger {
float ydelta;
Int32 last_x;
Int32 last_y;
float last_pressure;
float lastPressure;
bool down;
bool was_down;
bool wasDown;
/** @return If is currently pressed */
bool isDown();
/** @return If was down in the last update */
bool wasDown();
bool getWasDown();
/** @return The current position of the finger */
Vector2i getPos();

View File

@@ -14,7 +14,7 @@ class EE_API JoystickManager {
virtual ~JoystickManager();
/** @return The number of joysticks attached to the system */
virtual Uint32 count();
virtual Uint32 getCount();
/** Update the states of all joysticks */
virtual void update() = 0;