C# Class ActivEarth.DAO.BadgeLevelInfoDAO

ファイルを表示 Open project: mlcamilli/ActivEarth

Public Methods

Method Description
GetBadgeImagePath ( Statistic stat, int badgeLevel ) : string

Retrieves the image path for a particular badge.

GetBadgeRequirement ( Statistic stat, int badgeLevel ) : float

Retrieves the statistic requirement for a particular badge.

GetBadgeRequirementArray ( Statistic stat ) : float[]

Retrieves the statistic requirements for all levels of a particular badge.

GetBadgeReward ( Statistic stat, int badgeLevel ) : float

Retrieves the reward for a particular badge.

GetBadgeRewardArray ( Statistic stat ) : int[]

Retrieves the Activity Score rewards for all levels of a particular badge.

Method Details

GetBadgeImagePath() public static method

Retrieves the image path for a particular badge.
public static GetBadgeImagePath ( Statistic stat, int badgeLevel ) : string
stat Statistic Statistic for which the badge is awarded.
badgeLevel int Desired level of the badge.
return string

GetBadgeRequirement() public static method

Retrieves the statistic requirement for a particular badge.
public static GetBadgeRequirement ( Statistic stat, int badgeLevel ) : float
stat Statistic Statistic for which the badge is awarded.
badgeLevel int Desired level of the badge.
return float

GetBadgeRequirementArray() public static method

Retrieves the statistic requirements for all levels of a particular badge.
public static GetBadgeRequirementArray ( Statistic stat ) : float[]
stat Statistic Statistic for which the badge is awarded.
return float[]

GetBadgeReward() public static method

Retrieves the reward for a particular badge.
public static GetBadgeReward ( Statistic stat, int badgeLevel ) : float
stat Statistic Statistic for which the badge is awarded.
badgeLevel int Desired level of the badge.
return float

GetBadgeRewardArray() public static method

Retrieves the Activity Score rewards for all levels of a particular badge.
public static GetBadgeRewardArray ( Statistic stat ) : int[]
stat Statistic Statistic for which the badge is awarded.
return int[]