Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
Win32GameEngine Class Reference

#include <Win32GameEngine.h>

Inherits GameEngine.

Public Member Functions

 Win32GameEngine ()
 
virtual ~Win32GameEngine ()
 
virtual void init (void)
 initialization
 
virtual void reset (void)
 reset engine
 
virtual void update (void)
 update the game engine
 
virtual void serviceWindowsOS (void)
 allow windows maintenance in background
 
- Public Member Functions inherited from GameEngine
 GameEngine (void)
 
virtual ~GameEngine ()
 
virtual void init (int argc, char *argv[])
 Init engine by creating client and logic.
 
virtual void execute (void)
 
virtual void setFramesPerSecondLimit (Int fps)
 Set the maximum rate engine updates are allowed to occur.
 
virtual Int getFramesPerSecondLimit (void)
 Get maxFPS. Not inline since it is called from another lib.
 
virtual void setQuitting (Bool quitting)
 set quitting status
 
virtual Bool getQuitting (void)
 is app getting ready to quit.
 
virtual Bool isMultiplayerSession (void)
 
virtual Bool isActive (void)
 service the native OS
 
virtual void setIsActive (Bool isActive)
 
- Public Member Functions inherited from SubsystemInterface
 SubsystemInterface ()
 
virtual ~SubsystemInterface ()
 
virtual void postProcessLoad ()
 
virtual void draw (void)
 
void UPDATE (void)
 
void DRAW (void)
 
AsciiString getName (void)
 
void setName (AsciiString name)
 

Protected Member Functions

virtual GameLogiccreateGameLogic (void)
 factory for game logic
 
virtual GameClientcreateGameClient (void)
 factory for game client
 
virtual ModuleFactorycreateModuleFactory (void)
 factory for creating modules
 
virtual ThingFactorycreateThingFactory (void)
 factory for the thing factory
 
virtual FunctionLexiconcreateFunctionLexicon (void)
 factory for function lexicon
 
virtual LocalFileSystemcreateLocalFileSystem (void)
 factory for local file system
 
virtual ArchiveFileSystemcreateArchiveFileSystem (void)
 factory for archive file system
 
virtual NetworkInterfacecreateNetwork (void)
 Factory for the network.
 
virtual RadarcreateRadar (void)
 Factory for radar.
 
virtual WebBrowsercreateWebBrowser (void)
 Factory for embedded browser.
 
virtual AudioManagercreateAudioManager (void)
 Factory for audio device.
 
virtual ParticleSystemManagercreateParticleSystemManager (void)
 
- Protected Member Functions inherited from GameEngine
virtual FileSystemcreateFileSystem (void)
 Factory for FileSystem classes.
 
virtual MessageStreamcreateMessageStream (void)
 Factory for the message stream.
 

Protected Attributes

UINT m_previousErrorMode
 
- Protected Attributes inherited from GameEngine
Int m_maxFPS
 Maximum frames per second allowed.
 
Bool m_quitting
 true when we need to quit the game
 
Bool m_isActive
 app has OS focus.
 
- Protected Attributes inherited from SubsystemInterface
AsciiString m_name
 

Detailed Description

Class declaration for the Win32 game engine

Definition at line 59 of file Win32GameEngine.h.

Constructor & Destructor Documentation

◆ Win32GameEngine()

Win32GameEngine::Win32GameEngine ( )

Constructor for Win32GameEngine

Definition at line 43 of file Win32GameEngine.cpp.

◆ ~Win32GameEngine()

Win32GameEngine::~Win32GameEngine ( )
virtual

Destructor for Win32GameEngine

Definition at line 52 of file Win32GameEngine.cpp.

Member Function Documentation

◆ createArchiveFileSystem()

ArchiveFileSystem * Win32GameEngine::createArchiveFileSystem ( void )
inlineprotectedvirtual

factory for archive file system

Implements GameEngine.

Definition at line 99 of file Win32GameEngine.h.

◆ createAudioManager()

AudioManager * Win32GameEngine::createAudioManager ( void )
inlineprotectedvirtual

Factory for audio device.

Implements GameEngine.

Definition at line 105 of file Win32GameEngine.h.

◆ createFunctionLexicon()

FunctionLexicon * Win32GameEngine::createFunctionLexicon ( void )
inlineprotectedvirtual

factory for function lexicon

Implements GameEngine.

Definition at line 97 of file Win32GameEngine.h.

◆ createGameClient()

GameClient * Win32GameEngine::createGameClient ( void )
inlineprotectedvirtual

factory for game client

Implements GameEngine.

Definition at line 94 of file Win32GameEngine.h.

◆ createGameLogic()

GameLogic * Win32GameEngine::createGameLogic ( void )
inlineprotectedvirtual

factory for game logic

Implements GameEngine.

Definition at line 93 of file Win32GameEngine.h.

◆ createLocalFileSystem()

LocalFileSystem * Win32GameEngine::createLocalFileSystem ( void )
inlineprotectedvirtual

factory for local file system

Implements GameEngine.

Definition at line 98 of file Win32GameEngine.h.

◆ createModuleFactory()

ModuleFactory * Win32GameEngine::createModuleFactory ( void )
inlineprotectedvirtual

factory for creating modules

Implements GameEngine.

Definition at line 95 of file Win32GameEngine.h.

◆ createNetwork()

NetworkInterface * Win32GameEngine::createNetwork ( void )
inlineprotectedvirtual

Factory for the network.

Definition at line 102 of file Win32GameEngine.h.

◆ createParticleSystemManager()

ParticleSystemManager * Win32GameEngine::createParticleSystemManager ( void )
inlineprotectedvirtual

Implements GameEngine.

Definition at line 100 of file Win32GameEngine.h.

◆ createRadar()

Radar * Win32GameEngine::createRadar ( void )
inlineprotectedvirtual

Factory for radar.

Implements GameEngine.

Definition at line 103 of file Win32GameEngine.h.

◆ createThingFactory()

ThingFactory * Win32GameEngine::createThingFactory ( void )
inlineprotectedvirtual

factory for the thing factory

Implements GameEngine.

Definition at line 96 of file Win32GameEngine.h.

◆ createWebBrowser()

WebBrowser * Win32GameEngine::createWebBrowser ( void )
inlineprotectedvirtual

Factory for embedded browser.

Implements GameEngine.

Definition at line 104 of file Win32GameEngine.h.

◆ init()

void Win32GameEngine::init ( void )
virtual

initialization

Initialize the game engine

Reimplemented from GameEngine.

Definition at line 62 of file Win32GameEngine.cpp.

◆ reset()

void Win32GameEngine::reset ( void )
virtual

reset engine

Reset the system

Reimplemented from GameEngine.

Definition at line 73 of file Win32GameEngine.cpp.

◆ serviceWindowsOS()

void Win32GameEngine::serviceWindowsOS ( void )
virtual

allow windows maintenance in background

This function may be called from within this application to let Microsoft Windows do its message processing and dispatching. Presumeably we would call this at least once each time around the game loop to keep Windows services from backing up

Reimplemented from GameEngine.

Definition at line 133 of file Win32GameEngine.cpp.

◆ update()

void Win32GameEngine::update ( void )
virtual

update the game engine

Update the game engine by updating the GameClient and GameLogic singletons.

Reimplemented from GameEngine.

Definition at line 85 of file Win32GameEngine.cpp.

Member Data Documentation

◆ m_previousErrorMode

UINT Win32GameEngine::m_previousErrorMode
protected

Definition at line 89 of file Win32GameEngine.h.


The documentation for this class was generated from the following files: