summaryrefslogtreecommitdiffstats
path: root/src/app/app.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/app.h')
-rw-r--r--src/app/app.h174
1 files changed, 87 insertions, 87 deletions
diff --git a/src/app/app.h b/src/app/app.h
index ee6184f..a58ea98 100644
--- a/src/app/app.h
+++ b/src/app/app.h
@@ -46,108 +46,108 @@ struct ApplicationPrivate;
class CApplication
{
public:
- //! Constructor (can only be called once!)
- CApplication();
- //! Destructor
- ~CApplication();
+ //! Constructor (can only be called once!)
+ CApplication();
+ //! Destructor
+ ~CApplication();
public:
- //! Parses commandline arguments
- Error ParseArguments(int argc, char *argv[]);
- //! Initializes the application
- bool Create();
- //! Main event loop
- int Run();
+ //! Parses commandline arguments
+ Error ParseArguments(int argc, char *argv[]);
+ //! Initializes the application
+ bool Create();
+ //! Main event loop
+ int Run();
protected:
- //! Cleans up before exit
- void Destroy();
- //! Processes an SDL event to Event struct
- void ParseEvent();
- //! Handles some incoming events
- void ProcessEvent(Event event);
- //! Renders the image in window
- bool Render();
+ //! Cleans up before exit
+ void Destroy();
+ //! Processes an SDL event to Event struct
+ void ParseEvent();
+ //! Handles some incoming events
+ void ProcessEvent(Event event);
+ //! Renders the image in window
+ bool Render();
public:
- void Pause(bool pause);
- void StepSimulation(float rTime);
+ void Pause(bool pause);
+ void StepSimulation(float rTime);
- void SetMousePos(Math::Point pos);
+ void SetMousePos(Math::Point pos);
- void SetShowStat(bool show);
- bool RetShowStat();
- void SetDebugMode(bool mode);
- bool RetDebugMode();
- bool RetSetupMode();
+ void SetShowStat(bool show);
+ bool RetShowStat();
+ void SetDebugMode(bool mode);
+ bool RetDebugMode();
+ bool RetSetupMode();
- void FlushPressKey();
- void ResetKey();
- void SetKey(int keyRank, int option, int key);
- int RetKey(int keyRank, int option);
+ void FlushPressKey();
+ void ResetKey();
+ void SetKey(int keyRank, int option, int key);
+ int RetKey(int keyRank, int option);
- void SetJoystick(bool enable);
- bool RetJoystick();
+ void SetJoystick(bool enable);
+ bool RetJoystick();
- void SetMouseType(Gfx::MouseType type);
- void SetNiceMouse(bool nice);
- bool RetNiceMouse();
- bool RetNiceMouseCap();
+ void SetMouseType(Gfx::MouseType type);
+ void SetNiceMouse(bool nice);
+ bool RetNiceMouse();
+ bool RetNiceMouseCap();
- bool WriteScreenShot(char *filename, int width, int height);
+ bool WriteScreenShot(char *filename, int width, int height);
protected:
- //HRESULT ConfirmDevice( DDCAPS* pddDriverCaps, D3DDEVICEDESC7* pd3dDeviceDesc );
- //HRESULT Initialize3DEnvironment();
- //HRESULT Change3DEnvironment();
- //HRESULT CreateZBuffer(GUID* pDeviceGUID);
- //HRESULT Render3DEnvironment();
- //VOID Cleanup3DEnvironment();
- //VOID DeleteDeviceObjects();
- //VOID DisplayFrameworkError( HRESULT, DWORD );
-
- void InitText();
- void DrawSuppl();
- void ShowStats();
- void OutputText(long x, long y, char* str);
+ //HRESULT ConfirmDevice( DDCAPS* pddDriverCaps, D3DDEVICEDESC7* pd3dDeviceDesc );
+ //HRESULT Initialize3DEnvironment();
+ //HRESULT Change3DEnvironment();
+ //HRESULT CreateZBuffer(GUID* pDeviceGUID);
+ //HRESULT Render3DEnvironment();
+ //VOID Cleanup3DEnvironment();
+ //VOID DeleteDeviceObjects();
+ //VOID DisplayFrameworkError( HRESULT, DWORD );
+
+ void InitText();
+ void DrawSuppl();
+ void ShowStats();
+ void OutputText(long x, long y, char* str);
protected:
- //! Private (SDL-dependent data)
- ApplicationPrivate* m_private;
- CInstanceManager* m_iMan;
- Gfx::DeviceConfig m_deviceConfig;
- Gfx::CEngine* m_engine;
- CEvent* m_event;
- CRobotMain* m_robotMain;
- CSound* m_sound;
-
- //! Code to return at exit
- int m_exitCode;
-
- bool m_active;
- bool m_activateApp;
- bool m_ready;
- bool m_joystick;
-
- std::string m_windowTitle;
- long m_vidMemTotal;
- bool m_appUseZBuffer;
- bool m_appUseStereo;
- bool m_showStats;
- bool m_debugMode;
- bool m_audioState;
- bool m_audioTrack;
- bool m_niceMouse;
- bool m_setupMode;
-
- int m_keyState;
- Math::Vector m_axeKey;
- Math::Vector m_axeJoy;
- bool m_joyButton[32];
- Math::Point m_mousePos;
- long m_mouseWheel;
-
- float m_time;
- long m_key[50][2];
+ //! Private (SDL-dependent data)
+ ApplicationPrivate* m_private;
+ CInstanceManager* m_iMan;
+ Gfx::DeviceConfig m_deviceConfig;
+ Gfx::CEngine* m_engine;
+ CEvent* m_event;
+ CRobotMain* m_robotMain;
+ CSound* m_sound;
+
+ //! Code to return at exit
+ int m_exitCode;
+
+ bool m_active;
+ bool m_activateApp;
+ bool m_ready;
+ bool m_joystick;
+
+ std::string m_windowTitle;
+ long m_vidMemTotal;
+ bool m_appUseZBuffer;
+ bool m_appUseStereo;
+ bool m_showStats;
+ bool m_debugMode;
+ bool m_audioState;
+ bool m_audioTrack;
+ bool m_niceMouse;
+ bool m_setupMode;
+
+ int m_keyState;
+ Math::Vector m_axeKey;
+ Math::Vector m_axeJoy;
+ bool m_joyButton[32];
+ Math::Point m_mousePos;
+ long m_mouseWheel;
+
+ float m_time;
+ long m_key[50][2];
};