|
wavelength 1.0.0
|
Tuning values of the game, read from the "game" section of the configuration. More...
#include <gameconfig.h>
Public Member Functions | |
| GameConfig () | |
| Start with every value unset, mAxeSoftFxVolume at 1, and an empty power-up table for each kind of power-up. | |
| ~GameConfig ()=default | |
| Release the tables. | |
| void | Init () |
| Read the "game" section of the configuration and register the cheat script commands. | |
| void | SetStrandBars (int nStrand, int nBars) |
| Replace the bars of one strand in mStrandBars. | |
| float | GetPowerupWeight (int nPlayers, int nSection, int nSections, int nPowerup) |
| Report the weight of a kind of power-up in a section, from the powerup_dist tables. | |
| int | GetZeroRandSeed () const |
| int | GetStreaksEnabled () const |
| void | SetStreaksEnabled (int nStreaksEnabled) |
| int | GetStreakMultiplierMaxSolo () const |
| int | GetStreakMultiplierMaxMulti () const |
| const std::vector< int > & | GetStrandBars () const |
| std::vector< int > & | GetStrandBars () |
| int | GetSlowdownStopTicks () const |
| int | GetSlowdownStartTicks () const |
| float | GetSlowdownSpeed () const |
| int | GetSlowdownDurationBars () const |
| int | GetSlopMs () const |
| int | GetScratcherSampleQuantizationTicks () const |
| int | GetScratcherQuantizationTicks () const |
| float | GetRotationRepeatInitialDelayMs () const |
| float | GetRotationRepeatDelayMs () const |
| float | GetPowerupProbSolo () const |
| const std::vector< float > & | GetPowerupProbMulti () const |
| std::vector< float > & | GetPowerupProbMulti () |
| int | GetPlayAllGems () const |
| void | SetPlayAllGems (int nPlayAllGems) |
| int | GetPhraseScale () const |
| int | GetNoDeactivate () const |
| void | SetNoDeactivate (int nNoDeactivate) |
| int | GetNoCapture () const |
| void | SetNoCapture (int nNoCapture) |
| int | GetMultiplierValue () const |
| int | GetMultiplierDurationBars () const |
| float | GetJuiceMeterMax () const |
| const std::vector< float > & | GetInitialJuice () const |
| std::vector< float > & | GetInitialJuice () |
| int | GetGuideTicks () const |
| void | SetGuideTicks (int nGuideTicks) |
| const std::vector< GemPointValue > & | GetGemPoints () const |
| const std::vector< int > & | GetFreestylePoints () const |
| std::vector< int > & | GetFreestylePoints () |
| int | GetFreestyleDurationBarsSolo () const |
| int | GetFreestyleDurationBarsMultiNet () const |
| int | GetForceFeedbackEnabled () const |
| int | GetFakeInput () const |
| int | GetCripplerDurationBars () const |
| int | GetCheckpointBars () const |
| const std::vector< float > & | GetCaptureJuice () const |
| std::vector< float > & | GetCaptureJuice () |
| int | GetBeatLeadMs () const |
| int | GetBeatDurationMs () const |
| const std::vector< float > & | GetBarsPerCapture () const |
| std::vector< float > & | GetBarsPerCapture () |
| int | GetBarCaptureThreshold () const |
| float | GetAxeSoftFxVolume () const |
| const std::vector< int > & | GetAutocatcherPoints () const |
| std::vector< int > & | GetAutocatcherPoints () |
| const char * | GetPlayFromFile () const |
| const char * | GetRecordToFile () const |
Static Public Member Functions | |
| static GameConfig * | shared () |
| Report the single instance, constructing it on first use. | |
Tuning values of the game, read from the "game" section of the configuration.
The class is not polymorphic and has no RTTI. The name is inferred from the section. The one instance is the function-local static of shared(), and TheGameConfig addresses it. Each value except mAxeSoftFxVolume starts unset (-1, null, or false) until Init() reads its key. The vectors with one entry for each skill level are indexed by GameDb::mSkillLevel.
| GameConfig::GameConfig | ( | ) |
Start with every value unset, mAxeSoftFxVolume at 1, and an empty power-up table for each kind of power-up.
|
default |
Release the tables.
| void GameConfig::Init | ( | ) |
Read the "game" section of the configuration and register the cheat script commands.
| void GameConfig::SetStrandBars | ( | int | nStrand, |
| int | nBars ) |
Replace the bars of one strand in mStrandBars.
| nStrand | The strand, counting from 1. |
| nBars | The bars. |
| float GameConfig::GetPowerupWeight | ( | int | nPlayers, |
| int | nSection, | ||
| int | nSections, | ||
| int | nPowerup ) |
Report the weight of a kind of power-up in a section, from the powerup_dist tables.
Each of the last three sections has a column of its own, and the earlier sections share the first column.
| nPlayers | The number of players. |
| nSection | The section. |
| nSections | The number of sections. |
| nPowerup | The kind of power-up, a GameLogic::Powerup. |
|
static |
Report the single instance, constructing it on first use.
The instance is destroyed at exit.
|
inline |
|
inline |
|
inline |
| nStreaksEnabled | streaks_enabled. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| nPlayAllGems | play_all_gems. |
|
inline |
|
inline |
|
inline |
| nNoDeactivate | Set by the set_no_deactivate command. |
|
inline |
|
inline |
| nNoCapture | no_capture. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| nGuideTicks | guide_ticks. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |