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

#include <CDManager.h>

Inherits CDManagerInterface.

Inherited by Win32CDManager.

Public Member Functions

 CDManager ()
 
virtual ~CDManager ()
 
virtual void init (void)
 
virtual void update (void)
 
virtual void reset (void)
 
virtual Int driveCount (void)
 Number of CD drives detected.
 
virtual CDDriveInterfacegetDrive (Int index)
 Return the specified drive.
 
virtual CDDriveInterfacenewDrive (const Char *path)
 add new drive of specified path
 
virtual void refreshDrives (void)
 Refresh drive info.
 
virtual void destroyAllDrives (void)
 Like it says, destroy all drives.
 
- Public Member Functions inherited from CDManagerInterface
virtual ~CDManagerInterface ()
 
- 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 Attributes

LList m_drives
 List of drives detected on this machine.
 
- Protected Attributes inherited from SubsystemInterface
AsciiString m_name
 

Additional Inherited Members

- Protected Member Functions inherited from CDManagerInterface
virtual CDDriveInterfacecreateDrive (void)=0
 

Detailed Description

Definition at line 158 of file CDManager.h.

Constructor & Destructor Documentation

◆ CDManager()

CDManager::CDManager ( )

Definition at line 166 of file CDManager.cpp.

◆ ~CDManager()

CDManager::~CDManager ( )
virtual

Definition at line 175 of file CDManager.cpp.

Member Function Documentation

◆ destroyAllDrives()

void CDManager::destroyAllDrives ( void )
virtual

Like it says, destroy all drives.

Implements CDManagerInterface.

Definition at line 279 of file CDManager.cpp.

◆ driveCount()

Int CDManager::driveCount ( void )
virtual

Number of CD drives detected.

Implements CDManagerInterface.

Definition at line 214 of file CDManager.cpp.

◆ getDrive()

CDDriveInterface * CDManager::getDrive ( Int index)
virtual

Return the specified drive.

Implements CDManagerInterface.

Definition at line 223 of file CDManager.cpp.

◆ init()

void CDManager::init ( void )
virtual
  • Assign any default values to data required for the class
    • Allocate any memory and resources needed throughout the lifetime of the class

Implements SubsystemInterface.

Reimplemented in Win32CDManager.

Definition at line 184 of file CDManager.cpp.

◆ newDrive()

CDDriveInterface * CDManager::newDrive ( const Char * path)
virtual

add new drive of specified path

Implements CDManagerInterface.

Definition at line 240 of file CDManager.cpp.

◆ refreshDrives()

void CDManager::refreshDrives ( void )
virtual

Refresh drive info.

Implements CDManagerInterface.

Reimplemented in Win32CDManager.

Definition at line 258 of file CDManager.cpp.

◆ reset()

void CDManager::reset ( void )
virtual
  • Any system should be able to reset all data and go back to an empty state that is ready to accept a completely new set of data. Reset() can expect to be used in the context of resetting the engine in order to start or load a new game.
    • Do NOT free and re-allocate resources needed, where possible reorganize and re-initialize the resources already allocated.
    • After a reset, the system does not need to be in EXACTLY the same state as a fresh instantiation. If there are persistent state information for the system make sure you maintain it while restoring or re-initializing other transient parts.

Implements SubsystemInterface.

Reimplemented in Win32CDManager.

Definition at line 205 of file CDManager.cpp.

◆ update()

void CDManager::update ( void )
virtual
  • Update methods are the place to do system per frame processing. You should call the system update once each time through the game loop to service the system.
    • Note that currently the GameClient and GameLogic will be updating at different rates where the logic is running real time, and the client will adjust how many loops can be done during one server time slice in order to improve performance on low end machines.

Implements SubsystemInterface.

Reimplemented in Win32CDManager.

Definition at line 193 of file CDManager.cpp.

Member Data Documentation

◆ m_drives

LList CDManager::m_drives
protected

List of drives detected on this machine.

Definition at line 181 of file CDManager.h.


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