C# Class ARKBreedingStats.Utils

Mostra file Open project: cadon/ARKStatsExtractor Class Usage Examples

Public Methods

Method Description
creatureColor ( int colorId ) : Color
creatureColorName ( int colorId ) : string
genderColor ( Gender g ) : Color
genderSymbol ( Gender g ) : string
getARKml ( string text, int r, int g, int b ) : string
getARKmlFromPercent ( string text, int percent, double light ) : string
getColorFromPercent ( int percent, double light ) : Color

This method returns a shade from red over yellow to green, corresponding to the value p (0-100). If light is given, the brightness is adjusted (-1 to 1)

levelPercentile ( int l ) : string
nextGender ( Gender g ) : Gender
nextStatus ( CreatureStatus s ) : CreatureStatus
precision ( int s ) : int
statName ( int s, bool abr = false ) : string
statusSymbol ( CreatureStatus s ) : string

Private Methods

Method Description
getRGBFromPercent ( int &r, int &g, int &b, int percent, double light ) : void

Method Details

creatureColor() public static method

public static creatureColor ( int colorId ) : Color
colorId int
return Color

creatureColorName() public static method

public static creatureColorName ( int colorId ) : string
colorId int
return string

genderColor() public static method

public static genderColor ( Gender g ) : Color
g Gender
return Color

genderSymbol() public static method

public static genderSymbol ( Gender g ) : string
g Gender
return string

getARKml() public static method

public static getARKml ( string text, int r, int g, int b ) : string
text string
r int
g int
b int
return string

getARKmlFromPercent() public static method

public static getARKmlFromPercent ( string text, int percent, double light ) : string
text string
percent int
light double
return string

getColorFromPercent() public static method

This method returns a shade from red over yellow to green, corresponding to the value p (0-100). If light is given, the brightness is adjusted (-1 to 1)
public static getColorFromPercent ( int percent, double light ) : Color
percent int percent that determines the shade between red and green (0 to 100)
light double double from -1 to 1. Values greater zero make the color brighter, lower than zero make the color darker.
return Color

levelPercentile() public static method

public static levelPercentile ( int l ) : string
l int
return string

nextGender() public static method

public static nextGender ( Gender g ) : Gender
g Gender
return Gender

nextStatus() public static method

public static nextStatus ( CreatureStatus s ) : CreatureStatus
s CreatureStatus
return CreatureStatus

precision() public static method

public static precision ( int s ) : int
s int
return int

statName() public static method

public static statName ( int s, bool abr = false ) : string
s int
abr bool
return string

statusSymbol() public static method

public static statusSymbol ( CreatureStatus s ) : string
s CreatureStatus
return string