C# Class AttributeBonusPercent, PocketGodsRPG_Proto

Attribute bonus percent representation. Example. 40% increase/decrease to attribute base. By: NeilDG
显示文件 Open project: pocket-playlab/PocketGodsRPG_Proto Class Usage Examples

Public Methods

Method Description
AttributeBonusPercent ( float percentNormalized, PercentType percentType ) : System.Collections

Parameter value should be 0.0 - 1.0f. Percent type should be INCREASING/DECREASING.

GetPercentNormalized ( ) : float
GetPercentString ( ) : string

Returns the percent in displayable form as string

GetPercentType ( ) : PercentType

Method Details

AttributeBonusPercent() public method

Parameter value should be 0.0 - 1.0f. Percent type should be INCREASING/DECREASING.
public AttributeBonusPercent ( float percentNormalized, PercentType percentType ) : System.Collections
percentNormalized float Percent normalized.
percentType PercentType
return System.Collections

GetPercentNormalized() public method

public GetPercentNormalized ( ) : float
return float

GetPercentString() public method

Returns the percent in displayable form as string
public GetPercentString ( ) : string
return string

GetPercentType() public method

public GetPercentType ( ) : PercentType
return PercentType