C# Class ManicDigger.Renderers.CharacterRendererMonsterCode

Inheritance: ICharacterRenderer
Afficher le fichier Open project: henon/manic_digger Class Usage Examples

Méthodes publiques

Свойство Type Description
currentanim int

Méthodes publiques

Méthode Description
Animations ( ) : string[]
CuboidNet ( float tsizex, float tsizey, float tsizez, float tstartx, float tstarty ) : System.Drawing.RectangleF[]
CuboidNetNormalize ( RectangleF coords, float texturewidth, float textureheight ) : void
DrawCharacter ( AnimationState animstate, Vector3 pos, byte heading, byte pitch, bool moves, float dt, int playertexture, AnimationHint animationhint ) : void
DrawCuboid ( Vector3 pos, Vector3 size, int textureid, RectangleF texturecoords ) : void
Load ( List code ) : void
Normalize ( float p, float period ) : float
SetAnimation ( string p ) : void

Private Methods

Méthode Description
LeftLegRotation ( float time, float period ) : float
ParseDouble ( string s ) : double
RightLegRotation ( float time, float period ) : float
TriWave ( double t ) : float
UpDown ( float time, float period ) : float
getval ( object ss2, object>.Dictionary variables ) : double

Method Details

Animations() public méthode

public Animations ( ) : string[]
Résultat string[]

CuboidNet() public méthode

public CuboidNet ( float tsizex, float tsizey, float tsizez, float tstartx, float tstarty ) : System.Drawing.RectangleF[]
tsizex float
tsizey float
tsizez float
tstartx float
tstarty float
Résultat System.Drawing.RectangleF[]

CuboidNetNormalize() public static méthode

public static CuboidNetNormalize ( RectangleF coords, float texturewidth, float textureheight ) : void
coords System.Drawing.RectangleF
texturewidth float
textureheight float
Résultat void

DrawCharacter() public méthode

public DrawCharacter ( AnimationState animstate, Vector3 pos, byte heading, byte pitch, bool moves, float dt, int playertexture, AnimationHint animationhint ) : void
animstate AnimationState
pos Vector3
heading byte
pitch byte
moves bool
dt float
playertexture int
animationhint AnimationHint
Résultat void

DrawCuboid() public méthode

public DrawCuboid ( Vector3 pos, Vector3 size, int textureid, RectangleF texturecoords ) : void
pos Vector3
size Vector3
textureid int
texturecoords System.Drawing.RectangleF
Résultat void

Load() public méthode

public Load ( List code ) : void
code List
Résultat void

Normalize() public static méthode

public static Normalize ( float p, float period ) : float
p float
period float
Résultat float

SetAnimation() public méthode

public SetAnimation ( string p ) : void
p string
Résultat void

Property Details

currentanim public_oe property

public int currentanim
Résultat int