C# 클래스 Aura.Mabi.MabiMath

파일 보기 프로젝트 열기: aura-project/aura

공개 메소드들

메소드 설명
ByteToRadian ( byte direction ) : float

Converts Mabi's byte direction into a radian.

While entity packets use a byte from 0-255 for the direction, props are using radian floats.

DegreeToByte ( int degree ) : byte

Converts degree into Mabi's byte direction.

DegreeToRadian ( int degree ) : float

Converts degree to radian.

DirectionToByte ( double x, double y ) : byte

Converts vector direction into Mabi's byte direction.

DirectionToRadian ( double x, double y ) : float

Converts vector direction into a radian.

FoodStatBonus ( double boost, double hunger, double hungerFilled, int age ) : float

Calculates the stat bonus for eating food.

Formula: (Stat Boost * Hunger Filled) / (Hunger Fill * 20 * Current Age of Character) Reference: http://wiki.mabinogiworld.com/view/Food_List

GetNameColor ( string name ) : int

Returns the color for the name.

RadianToByte ( float radian ) : byte

Converts radian to byte.

메소드 상세

ByteToRadian() 공개 정적인 메소드

Converts Mabi's byte direction into a radian.
While entity packets use a byte from 0-255 for the direction, props are using radian floats.
public static ByteToRadian ( byte direction ) : float
direction byte
리턴 float

DegreeToByte() 공개 정적인 메소드

Converts degree into Mabi's byte direction.
public static DegreeToByte ( int degree ) : byte
degree int
리턴 byte

DegreeToRadian() 공개 정적인 메소드

Converts degree to radian.
public static DegreeToRadian ( int degree ) : float
degree int
리턴 float

DirectionToByte() 공개 정적인 메소드

Converts vector direction into Mabi's byte direction.
public static DirectionToByte ( double x, double y ) : byte
x double
y double
리턴 byte

DirectionToRadian() 공개 정적인 메소드

Converts vector direction into a radian.
public static DirectionToRadian ( double x, double y ) : float
x double
y double
리턴 float

FoodStatBonus() 공개 정적인 메소드

Calculates the stat bonus for eating food.
Formula: (Stat Boost * Hunger Filled) / (Hunger Fill * 20 * Current Age of Character) Reference: http://wiki.mabinogiworld.com/view/Food_List
public static FoodStatBonus ( double boost, double hunger, double hungerFilled, int age ) : float
boost double
hunger double
hungerFilled double
age int
리턴 float

GetNameColor() 공개 정적인 메소드

Returns the color for the name.
public static GetNameColor ( string name ) : int
name string
리턴 int

RadianToByte() 공개 정적인 메소드

Converts radian to byte.
public static RadianToByte ( float radian ) : byte
radian float
리턴 byte