Jumpvalley 0.5.0
An app and library that can be used to test and run 3D platformer levels. Currently being made with Godot.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Jumpvalley.Levels.DifficultySet Class Reference

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...

Public Member Functions

 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.
 

Public Attributes

List< DifficultyDifficulties
 The list of difficulties within the set.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ DifficultySet()

Jumpvalley.Levels.DifficultySet.DifficultySet ( List< Difficulty > difficulties)
inline

Creates a new instance of DifficultySet with an initial list of difficulties.

Parameters
difficultiesThe initial list of difficulties

Member Function Documentation

◆ 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
ratingThe difficulty rating
Returns
The corresponding difficulty

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