Load and store game behavior parameters.
More...
|
|
| ~this () |
| | Reset to the default parameters when destroyed.
|
| |
Load and store game behavior parameters.
◆ ClearInstance()
| static void ConfigManager::ClearInstance |
( |
| ) |
|
|
inlinestatic |
◆ GetInstance()
◆ LoadBounceHeight()
| static float ConfigManager::LoadBounceHeight |
( |
| ) |
|
|
inlinestatic |
Get the current bounce height.
- Returns
- the bounce height.
◆ LoadCellSize()
| static int ConfigManager::LoadCellSize |
( |
| ) |
|
|
inlinestatic |
Get the current size for each grid cell.
- Returns
- the width and height of each cell.
◆ LoadGravity()
| static float ConfigManager::LoadGravity |
( |
| ) |
|
|
inlinestatic |
Get the current gravity value.
- Returns
- the gravity value in pixels/frame^2.
◆ LoadPlayerSpeed()
| static int ConfigManager::LoadPlayerSpeed |
( |
| ) |
|
|
inlinestatic |
Get the current speed for the player.
- Returns
- the player speed in pixels/frame.
◆ LoadSpritePath()
| static string ConfigManager::LoadSpritePath |
( |
string | sprite | ) |
|
|
inlinestatic |
Get the current sprite file path for the player.
- Returns
- the player's sprite file path.
◆ SetBounceHeight()
| static void ConfigManager::SetBounceHeight |
( |
float | bounceHeight | ) |
|
|
inlinestatic |
Set a new bounce height.
- Parameters
-
| bounceHeight | the new bounce height. |
◆ SetCellSize()
| static void ConfigManager::SetCellSize |
( |
int | cellSize | ) |
|
|
inlinestatic |
Set a new size for each grid cell.
- Parameters
-
| cellSize | the new width and height of each cell. |
◆ SetGravity()
| static void ConfigManager::SetGravity |
( |
float | gravity | ) |
|
|
inlinestatic |
Set a new gravity value.
- Parameters
-
| gravity | the new gravity value in pixels/frame^2. |
◆ SetPlayerSpeed()
| static void ConfigManager::SetPlayerSpeed |
( |
int | playerSpeed | ) |
|
|
inlinestatic |
Set a new speed for the player.
- Parameters
-
| playerSpeed | the new speed in pixels/frame. |
◆ SetSpritePath()
| static void ConfigManager::SetSpritePath |
( |
string | sprite, |
|
|
string | path ) |
|
inlinestatic |
Set a new sprite file path for the player.
- Parameters
-
| sprite | the name of the sprite to update. |
| path | the new file path. |
The documentation for this struct was generated from the following file:
- Engine/source/configmanager.d