Class that groups multiple difficulties together. Useful when you want to have all the difficulties within a game in one place and be able to perform some calculations based off of them.
More...
|
| DifficultySet (List< Difficulty > difficulties) |
| Creates a new instance of DifficultySet with an initial list of difficulties.
|
|
| DifficultySet () |
| Creates a new instance of DifficultySet with a blank list of difficulties.
|
|
Difficulty | GetDifficultyByRating (double rating) |
| Returns the difficulty within the Difficulties list who has the highest difficulty rating less than or equal to the difficulty rating specified in the rating parameter.
|
|
|
List< Difficulty > | Difficulties |
| The list of difficulties within the set.
|
|
Class that groups multiple difficulties together. Useful when you want to have all the difficulties within a game in one place and be able to perform some calculations based off of them.
◆ DifficultySet()
Jumpvalley.Levels.DifficultySet.DifficultySet |
( |
List< Difficulty > | difficulties | ) |
|
|
inline |
Creates a new instance of DifficultySet with an initial list of difficulties.
- Parameters
-
difficulties | The initial list of difficulties |
◆ GetDifficultyByRating()
Difficulty Jumpvalley.Levels.DifficultySet.GetDifficultyByRating |
( |
double | rating | ) |
|
|
inline |
Returns the difficulty within the Difficulties list who has the highest difficulty rating less than or equal to the difficulty rating specified in the rating parameter.
- Parameters
-
rating | The difficulty rating |
- Returns
- The corresponding difficulty
The documentation for this class was generated from the following file: