C# Class ManicDigger.Renderers.CharacterRendererMonsterCode

Inheritance: ICharacterRenderer
Show file Open project: henon/manic_digger Class Usage Examples

Public Properties

Property Type Description
currentanim int

Public Methods

Method 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

Method 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 method

public Animations ( ) : string[]
return string[]

CuboidNet() public method

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
return System.Drawing.RectangleF[]

CuboidNetNormalize() public static method

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

DrawCharacter() public method

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
return void

DrawCuboid() public method

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

Load() public method

public Load ( List code ) : void
code List
return void

Normalize() public static method

public static Normalize ( float p, float period ) : float
p float
period float
return float

SetAnimation() public method

public SetAnimation ( string p ) : void
p string
return void

Property Details

currentanim public property

public int currentanim
return int