mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-04 20:46:29 +03:00
Code clean up and refactoring.
Removed HaikuTTF from the project. --HG-- branch : dev
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 );
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user