Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

SCA_ISystem Class Reference

System Abstraction. More...

#include <SCA_ISystem.h>

Inheritance diagram for SCA_ISystem:

KX_BlenderSystem MyGlutSystem SDLSystem List of all members.

Public Methods

 SCA_ISystem ()
virtual ~SCA_ISystem ()
void AddInputDevice (SCA_IInputDevice* inputdev)
void SetKeyboardDevice (SCA_IInputDevice* inputdev)
virtual SCA_IInputDeviceGetKeyboardDevice ()
void SetMouseDevice (SCA_IInputDevice* inputdev)
virtual SCA_IInputDeviceGetMouseDevice ()
void SetMainLoop (SCA_IMainLoop* mainloop)
void DoMainLoopCallback ()
virtual void StartMainLoop () = 0
virtual void NextFrame () = 0
virtual double GetTimeInSeconds () = 0
virtual void Sleep (int millisec) = 0
bool IsExitRequested ()

Protected Attributes

bool m_exitrequested
std::vector<SCA_IInputDevice*> m_inputDevices
int m_keyboardDeviceIndex
int m_mouseDeviceIndex
SCA_IMainLoopm_mainloopobj

Detailed Description

System Abstraction.

In order to be able to have both an embedded gameengine and a standalone (glut/sdl etc.) version.

Definition at line 29 of file SCA_ISystem.h.


Constructor & Destructor Documentation

SCA_ISystem::SCA_ISystem ( ) [inline]
 

Definition at line 43 of file SCA_ISystem.h.

SCA_ISystem::~SCA_ISystem ( ) [inline, virtual]
 

Definition at line 50 of file SCA_ISystem.h.


Member Function Documentation

void SCA_ISystem::AddInputDevice ( SCA_IInputDevice * inputdev ) [inline]
 

Definition at line 53 of file SCA_ISystem.h.

Referenced by SetKeyboardDevice(), and SetMouseDevice().

void SCA_ISystem::DoMainLoopCallback ( ) [inline]
 

Definition at line 89 of file SCA_ISystem.h.

Referenced by MyGlutDisplay(), SDLSystem::StartMainLoop(), and KX_BlenderSystem::StartMainLoop().

SCA_IInputDevice * SCA_ISystem::GetKeyboardDevice ( ) [inline, virtual]
 

Definition at line 64 of file SCA_ISystem.h.

Referenced by MyGlutSystem::AddKey(), and SDLSystem::HandleEvent().

SCA_IInputDevice * SCA_ISystem::GetMouseDevice ( ) [inline, virtual]
 

Definition at line 77 of file SCA_ISystem.h.

virtual double SCA_ISystem::GetTimeInSeconds ( ) [pure virtual]
 

Reimplemented in KX_BlenderSystem, MyGlutSystem, MyGlutSystem, and SDLSystem.

Referenced by KX_KetsjiEngine::MainLoopCallback().

bool SCA_ISystem::IsExitRequested ( ) [inline]
 

Definition at line 97 of file SCA_ISystem.h.

Referenced by SDLSystem::StartMainLoop().

virtual void SCA_ISystem::NextFrame ( ) [pure virtual]
 

Reimplemented in KX_BlenderSystem, MyGlutSystem, MyGlutSystem, and SDLSystem.

Referenced by KX_KetsjiEngine::MainLoopCallback().

void SCA_ISystem::SetKeyboardDevice ( SCA_IInputDevice * inputdev ) [inline]
 

Definition at line 58 of file SCA_ISystem.h.

Referenced by EXPERIMENTAL_SOUND(), Ketsji_Start1(), and main().

void SCA_ISystem::SetMainLoop ( SCA_IMainLoop * mainloop ) [inline]
 

Definition at line 86 of file SCA_ISystem.h.

Referenced by EXPERIMENTAL_SOUND(), KX_KetsjiEngine::Run(), and main().

void SCA_ISystem::SetMouseDevice ( SCA_IInputDevice * inputdev ) [inline]
 

Definition at line 71 of file SCA_ISystem.h.

Referenced by Ketsji_Start1().

virtual void SCA_ISystem::Sleep ( int millisec ) [pure virtual]
 

Reimplemented in KX_BlenderSystem, MyGlutSystem, MyGlutSystem, and SDLSystem.

virtual void SCA_ISystem::StartMainLoop ( ) [pure virtual]
 

Reimplemented in KX_BlenderSystem, MyGlutSystem, MyGlutSystem, and SDLSystem.

Referenced by EXPERIMENTAL_SOUND(), KX_KetsjiEngine::Run(), and main().


Member Data Documentation

bool SCA_ISystem::m_exitrequested [protected]
 

Definition at line 33 of file SCA_ISystem.h.

std::vector< SCA_IInputDevice *> SCA_ISystem::m_inputDevices [protected]
 

Definition at line 35 of file SCA_ISystem.h.

int SCA_ISystem::m_keyboardDeviceIndex [protected]
 

Definition at line 37 of file SCA_ISystem.h.

SCA_IMainLoop * SCA_ISystem::m_mainloopobj [protected]
 

Definition at line 40 of file SCA_ISystem.h.

int SCA_ISystem::m_mouseDeviceIndex [protected]
 

Definition at line 38 of file SCA_ISystem.h.


The documentation for this class was generated from the following file:
Generated at Thu Feb 1 13:03:55 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000