Method | Description | |
---|---|---|
Badge ( ) : System |
Empty constructor for reading back in from the DB.
|
|
Badge ( int userId, Statistic statistic ) : System |
Creates a new badge belonging to a user, based on a specific statistic.
|
|
Badge ( int userId, Statistic statistic, float levelValues, int levelPoints, string imagePaths ) : System |
Creates a new badge belonging to a user, based on a specific statistic.
|
|
GetNextLevelRequirement ( ) : float |
Returns the statistic value required to get to the next level of the badge.
|
|
GetNextLevelReward ( ) : int |
Returns the number of Activity Points awarded for achieving the next level of the badge.
|
|
IsComplete ( ) : bool |
Whether or not the badge path has been completed.
|
public Badge ( int userId, Statistic statistic ) : System | ||
userId | int | |
statistic | Statistic | Statistic to which the Badge is bound. |
return | System |
public Badge ( int userId, Statistic statistic, float levelValues, int levelPoints, string imagePaths ) : System | ||
userId | int | |
statistic | Statistic | Statistic to which the Badge is bound. |
levelValues | float | |
levelPoints | int | |
imagePaths | string | |
return | System |