WindowsPlatform Class Reference

Inherits AbstractPlatform.

Collaboration diagram for WindowsPlatform:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool Initialize (HINSTANCE hInstance)
bool CheckOnlyInstance ()
virtual bool CreateNewWindow ()
int Loop ()
virtual void Exit (int code)
 Called in order to force the application to exit.
virtual std::wstring GetPlatformDescription ()
 Get a brief description if this platform.
virtual unsigned long GetSystemTime ()
 Used to retrieve the current system time from the underlying platform.
virtual Rect GetWindowRectangle ()
 Retrieves the rectangle for the game window from the OS.
virtual const SettingsGetSettings () const
 Retrieve the settings for this application.
virtual void PrintError (const std::wstring &message) const
 Prints an error message.

Static Public Member Functions

static bool CheckMemory (DWORD nMin, DWORD nVMin)
static bool CheckCPU (INT nMin)
static bool CheckHDD (INT nMin)
static LRESULT CALLBACK WndProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)

Member Function Documentation

virtual void WindowsPlatform::Exit ( int  code  )  [inline, virtual]

Called in order to force the application to exit.

Parameters:
code The code with which to exit with.

Implements AbstractPlatform.

virtual std::wstring WindowsPlatform::GetPlatformDescription (  )  [inline, virtual]

Get a brief description if this platform.

A string representing the platform, i.e "Win32", "UNIX" etc.

Implements AbstractPlatform.

virtual const Settings& WindowsPlatform::GetSettings (  )  const [inline, virtual]

Retrieve the settings for this application.

See also:
Settings
Returns:
A const reference to a settings structure.

Implements AbstractPlatform.

virtual unsigned long WindowsPlatform::GetSystemTime (  )  [inline, virtual]

Used to retrieve the current system time from the underlying platform.

Returns:
The current system time in milliseconds.

Implements AbstractPlatform.

virtual Rect WindowsPlatform::GetWindowRectangle (  )  [inline, virtual]

Retrieves the rectangle for the game window from the OS.

Returns:
A rectangle representing the on screen position and width and height of the window.

Implements AbstractPlatform.


The documentation for this class was generated from the following file:
 All Classes Functions Variables

Generated on Fri Nov 20 15:29:21 2009 for PhysTank by  doxygen 1.6.1