|
coastline 0.0.4
|
The settings saved in BossRally.cfg. More...
#include <rallyconfig.h>

Public Member Functions | |
| const char * | GetPlayerName () const |
| int | GetSfxVolume () const |
| int | GetMusicVolume () const |
| RallyConfig () | |
| Set the defaults. | |
| ~RallyConfig () | |
| The destructor does nothing, and the linker shares its code with NullStub(). | |
| void | LoadDeviceDefaultBindings (int nDevice) |
| Bind a device to its default controls. | |
| void | SetInputBinding (int nDevice, int nControl, int nKind, int nKeyCode) |
| Bind a control of a device. | |
| int | GetInputBindingFlags (int nDevice, int nControl) |
| The kind of device of a binding. | |
| int | GetInputBindingKeyCode (int nDevice, int nControl) |
| The key or button of a binding. | |
| void | InitRallyConfigDefaults () |
| Set every setting to its default and bind each device to its default controls. | |
| RallyConfig & | CopyRallyConfig (const RallyConfig &other) |
| Copy the settings of another configuration, binding the copy to its own tables. | |
| bool | LoadRallyConfigFile (const char *pszPath) |
| Read the settings from a configuration file of version 2. | |
| bool | SaveConfigToFile (const char *pszPath) |
| Write the settings to a configuration file of version 2. | |
| InputBinding * | GetDeviceBindings (int nDevice) |
| The bindings of a device. | |
| void | SelectActiveInputBindings () |
| Point pActiveInputBindings at the table of dwInputDeviceType. | |
Public Attributes | |
| InputBinding | aInputBindingsKeyboard [INPUT_BINDING_COUNT] |
| InputBinding | aInputBindingsDevice1 [INPUT_BINDING_COUNT] |
| InputBinding | aInputBindingsDevice2 [INPUT_BINDING_COUNT] |
| InputBinding | aInputBindingsDevice3 [INPUT_BINDING_COUNT] |
| int | dwInputDeviceType |
| The device the game reads, 1 to 3 for a game controller and any other for the keyboard. | |
| InputBinding * | pActiveInputBindings |
| int | bCarShadowSelection |
| int | bSpecularLightingSelection |
| int | bForceFeedbackEnabled |
| char | szSavedModemPhoneNumber [MAX_PATH] |
| char | szPlayerName [1024] |
| int | dwDisplayModeWidth |
| int | dwDisplayModeHeight |
| int | dwDisplayModeBitDepth |
| int | dwDisplayModeExtra |
| GUID | DisplayDriverGuid |
| int | dwSfxVolume |
| int | dwMusicVolume |
| int | adwMenuSelectionBackup [MENU_SELECTION_COUNT] |
| char | szTcpIpPort [32] |
| char | szTcpIpAddress [64] |
| int | bSkidMarksSelection |
The settings saved in BossRally.cfg.
| RallyConfig::RallyConfig | ( | ) |
Set the defaults.
|
inline |
The destructor does nothing, and the linker shares its code with NullStub().
|
inline |
|
inline |
|
inline |
| void RallyConfig::LoadDeviceDefaultBindings | ( | int | nDevice | ) |
Bind a device to its default controls.
| nDevice | The device, 1 to 3 for a game controller and any other for the keyboard. |
| void RallyConfig::SetInputBinding | ( | int | nDevice, |
| int | nControl, | ||
| int | nKind, | ||
| int | nKeyCode ) |
Bind a control of a device.
The alternate controls are taken from the defaults, and an alternate that another binding of the device uses is cleared.
| nDevice | The device, 1 to 3 for a game controller and any other for the keyboard. |
| nControl | The control of the game. |
| nKind | The kind of device in the high byte. |
| nKeyCode | The key or button in the low byte. |
| int RallyConfig::GetInputBindingFlags | ( | int | nDevice, |
| int | nControl ) |
The kind of device of a binding.
| nDevice | The device, 1 to 3 for a game controller and any other for the keyboard. |
| nControl | The control of the game. |
| int RallyConfig::GetInputBindingKeyCode | ( | int | nDevice, |
| int | nControl ) |
The key or button of a binding.
A control of a game controller with its top bit set has the code in its high byte.
| nDevice | The device, 1 to 3 for a game controller and any other for the keyboard. |
| nControl | The control of the game. |
| void RallyConfig::InitRallyConfigDefaults | ( | ) |
Set every setting to its default and bind each device to its default controls.
| RallyConfig & RallyConfig::CopyRallyConfig | ( | const RallyConfig & | other | ) |
Copy the settings of another configuration, binding the copy to its own tables.
| other | The configuration copied. |
| bool RallyConfig::LoadRallyConfigFile | ( | const char * | pszPath | ) |
Read the settings from a configuration file of version 2.
A file that does not read whole results in the defaults.
| pszPath | Path of the file. |
| bool RallyConfig::SaveConfigToFile | ( | const char * | pszPath | ) |
Write the settings to a configuration file of version 2.
| pszPath | Path of the file. |
|
inline |
The bindings of a device.
| nDevice | The device, 1 to 3 for a game controller and any other for the keyboard. |
|
inline |
Point pActiveInputBindings at the table of dwInputDeviceType.
| InputBinding RallyConfig::aInputBindingsKeyboard[INPUT_BINDING_COUNT] |
The keyboard bindings.
| InputBinding RallyConfig::aInputBindingsDevice1[INPUT_BINDING_COUNT] |
First game controller bindings.
| InputBinding RallyConfig::aInputBindingsDevice2[INPUT_BINDING_COUNT] |
Second controller bindings.
| InputBinding RallyConfig::aInputBindingsDevice3[INPUT_BINDING_COUNT] |
Third controller bindings.
| int RallyConfig::dwInputDeviceType |
The device the game reads, 1 to 3 for a game controller and any other for the keyboard.
| InputBinding* RallyConfig::pActiveInputBindings |
The bindings of dwInputDeviceType, not saved.
| int RallyConfig::bCarShadowSelection |
Whether the shadow of a car is drawn.
| int RallyConfig::bSpecularLightingSelection |
Whether specular lighting is drawn.
| int RallyConfig::bForceFeedbackEnabled |
Whether force feedback is on.
| char RallyConfig::szSavedModemPhoneNumber[MAX_PATH] |
The number the modem dials last.
| char RallyConfig::szPlayerName[1024] |
The name of the player.
| int RallyConfig::dwDisplayModeWidth |
The width of the display mode.
| int RallyConfig::dwDisplayModeHeight |
The height of the display mode.
| int RallyConfig::dwDisplayModeBitDepth |
The bits of a pixel of the display mode.
| int RallyConfig::dwDisplayModeExtra |
A fourth value of the display mode.
| GUID RallyConfig::DisplayDriverGuid |
The DirectDraw driver, all zero for the default.
| int RallyConfig::dwSfxVolume |
The volume of sound effects.
| int RallyConfig::dwMusicVolume |
The volume of music.
| int RallyConfig::adwMenuSelectionBackup[MENU_SELECTION_COUNT] |
The last choices of the menus.
| char RallyConfig::szTcpIpPort[32] |
The TCP/IP port of network play.
| char RallyConfig::szTcpIpAddress[64] |
The TCP/IP address of network play.
| int RallyConfig::bSkidMarksSelection |
Whether skid marks are drawn.