Package zombie.core.skinnedmodel.model
Class ModelInstance
java.lang.Object
zombie.core.skinnedmodel.model.ModelInstance
public class ModelInstance
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description AnimationPlayerAnimPlayerIsoGameCharactercharacterIsoLightSource[]lightsModelmodelTexturetexfloattintBfloattintGfloattintRbooleanupdateLights -
Constructor Summary
Constructors Constructor Description ModelInstance(Model model, IsoGameCharacter character, AnimationPlayer player) -
Method Summary
Modifier and Type Method Description voidDraw()voidLoadTexture(java.lang.String name)AnimationTrackPlay(java.lang.String animName, boolean looped, boolean finished, IsoGameCharacter chr)voidSetDir(Vector2 dir)voidUpdate(float time)voidUpdateDir()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
model
-
AnimPlayer
-
tex
-
character
-
updateLights
public boolean updateLights -
tintR
public float tintR -
tintG
public float tintG -
tintB
public float tintB -
lights
-
-
Constructor Details
-
ModelInstance
-
-
Method Details
-
LoadTexture
public void LoadTexture(java.lang.String name) -
Draw
public void Draw() -
Play
public AnimationTrack Play(java.lang.String animName, boolean looped, boolean finished, IsoGameCharacter chr) -
UpdateDir
public void UpdateDir() -
Update
public void Update(float time) -
SetDir
-