Package zombie.core.skinnedmodel
Class ModelManager
java.lang.Object
zombie.core.skinnedmodel.ModelManager
public final class ModelManager
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModelManager.ModAnimations
static class
ModelManager.ModelSlot
-
Field Summary
Fields Modifier and Type Field Description boolean
bCreateSoftwareMeshes
boolean
bDebugEnableModels
TextureFBO
bitmap
static ModelManager
instance
Model
m_femaleModel
Model
m_maleModel
Model
m_skeletonFemaleModel
Model
m_skeletonMaleModel
static boolean
NoOpenGL
java.util.HashMap
SoftwareMeshAnims
-
Constructor Summary
Constructors Constructor Description ModelManager()
-
Method Summary
Modifier and Type Method Description void
Add(IsoGameCharacter gameCharacter)
void
addAnimationClip(java.lang.String string, AnimationClip animationClip)
ModelInstance
addStatic(ModelInstance modelInstance, java.lang.String string, java.lang.String string2, java.lang.String string3)
ModelInstance
addStatic(ModelManager.ModelSlot modelSlot, java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4)
ModelInstance
addStaticForcedTex(ModelInstance modelInstance, java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4)
void
addVehicle(BaseVehicle baseVehicle)
void
animationAssetLoaded(AnimationAsset animationAsset)
boolean
ContainsChar(IsoGameCharacter gameCharacter)
void
create()
void
derefModelInstance(ModelInstance modelInstance)
void
derefModelInstances(java.util.ArrayList arrayList)
void
dressInRandomOutfit(IsoGameCharacter gameCharacter)
java.util.Collection
getAllAnimationClips()
AnimationClip
getAnimationClip(java.lang.String string)
Model
getBodyModel(IsoGameCharacter gameCharacter)
void
getClosestThreeLights(IsoMovingObject movingObject, IsoLightSource[] lightSourceArray)
Model
getLoadedModel(java.lang.String string)
Model
getLoadedModel(java.lang.String string, java.lang.String string2, boolean boolean1, java.lang.String string3)
ModelManager.ModelSlot
getSlot(IsoGameCharacter gameCharacter)
int
getTextureFlags()
boolean
isCreated()
boolean
isLoadingAnimations()
void
loadAdditionalModel(java.lang.String string, java.lang.String string2, boolean boolean1, java.lang.String string3)
void
loadModAnimations()
Model
loadStaticModel(java.lang.String string, java.lang.String string2, java.lang.String string3)
ModelInstance
newAdditionalModelInstance(java.lang.String string, java.lang.String string2, IsoGameCharacter gameCharacter, AnimationPlayer animationPlayer, java.lang.String string3)
ModelInstance
newInstance(Model model, IsoGameCharacter gameCharacter, AnimationPlayer animationPlayer)
ModelInstance
newStaticInstance(ModelManager.ModelSlot modelSlot, java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4)
void
putLoadedModel(java.lang.String string, java.lang.String string2, boolean boolean1, java.lang.String string3, Model model)
void
reloadAllOutfits()
void
reloadModelsMatching(java.lang.String string)
void
Remove(IsoGameCharacter gameCharacter)
void
Remove(BaseVehicle baseVehicle)
void
RenderParticles(TextureDraw textureDraw, int int1, int int2)
void
RenderPuddles(int int1, int int2, int int3)
void
RenderSkyBox(TextureDraw textureDraw, int int1, int int2, int int3, int int4)
void
RenderWater(TextureDraw textureDraw, int int1, int int2, boolean boolean1)
void
Reset()
void
Reset(IsoGameCharacter gameCharacter)
void
ResetCharacterEquippedHands(IsoGameCharacter gameCharacter)
void
ResetEquippedNextFrame(IsoGameCharacter gameCharacter)
void
resetModelInstance(ModelInstance modelInstance, java.lang.Object object)
void
resetModelInstanceRecurse(ModelInstance modelInstance, java.lang.Object object)
void
resetModelInstancesRecurse(java.util.ArrayList arrayList, java.lang.Object object)
void
ResetNextFrame(IsoGameCharacter gameCharacter)
void
setModelMetaData(java.lang.String string, java.lang.String string2, java.lang.String string3, boolean boolean1)
void
setModelMetaData(java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4, boolean boolean1)
Model
tryGetLoadedModel(java.lang.String string, java.lang.String string2, boolean boolean1, java.lang.String string3, boolean boolean2)
void
update()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
NoOpenGL
public static boolean NoOpenGL -
instance
-
m_maleModel
-
m_femaleModel
-
m_skeletonMaleModel
-
m_skeletonFemaleModel
-
bitmap
-
bDebugEnableModels
public boolean bDebugEnableModels -
bCreateSoftwareMeshes
public boolean bCreateSoftwareMeshes -
SoftwareMeshAnims
public final java.util.HashMap SoftwareMeshAnims
-
-
Constructor Details
-
ModelManager
public ModelManager()
-
-
Method Details
-
isCreated
public boolean isCreated() -
create
public void create() -
loadAdditionalModel
public void loadAdditionalModel(java.lang.String string, java.lang.String string2, boolean boolean1, java.lang.String string3) -
newAdditionalModelInstance
public ModelInstance newAdditionalModelInstance(java.lang.String string, java.lang.String string2, IsoGameCharacter gameCharacter, AnimationPlayer animationPlayer, java.lang.String string3) -
RenderSkyBox
-
RenderWater
-
RenderPuddles
public void RenderPuddles(int int1, int int2, int int3) -
RenderParticles
-
Reset
-
reloadAllOutfits
public void reloadAllOutfits() -
Add
-
dressInRandomOutfit
-
getBodyModel
-
ContainsChar
-
ResetCharacterEquippedHands
-
resetModelInstance
-
resetModelInstanceRecurse
-
resetModelInstancesRecurse
public void resetModelInstancesRecurse(java.util.ArrayList arrayList, java.lang.Object object) -
derefModelInstance
-
derefModelInstances
public void derefModelInstances(java.util.ArrayList arrayList) -
update
public void update() -
getSlot
-
Remove
-
Remove
-
ResetNextFrame
-
ResetEquippedNextFrame
-
Reset
public void Reset() -
getClosestThreeLights
-
addVehicle
-
addStatic
public ModelInstance addStatic(ModelManager.ModelSlot modelSlot, java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4) -
newStaticInstance
public ModelInstance newStaticInstance(ModelManager.ModelSlot modelSlot, java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4) -
addStatic
public ModelInstance addStatic(ModelInstance modelInstance, java.lang.String string, java.lang.String string2, java.lang.String string3) -
addStaticForcedTex
public ModelInstance addStaticForcedTex(ModelInstance modelInstance, java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4) -
getTextureFlags
public int getTextureFlags() -
setModelMetaData
public void setModelMetaData(java.lang.String string, java.lang.String string2, java.lang.String string3, boolean boolean1) -
setModelMetaData
public void setModelMetaData(java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4, boolean boolean1) -
loadStaticModel
public Model loadStaticModel(java.lang.String string, java.lang.String string2, java.lang.String string3) -
getLoadedModel
-
getLoadedModel
public Model getLoadedModel(java.lang.String string, java.lang.String string2, boolean boolean1, java.lang.String string3) -
tryGetLoadedModel
public Model tryGetLoadedModel(java.lang.String string, java.lang.String string2, boolean boolean1, java.lang.String string3, boolean boolean2) -
putLoadedModel
public void putLoadedModel(java.lang.String string, java.lang.String string2, boolean boolean1, java.lang.String string3, Model model) -
addAnimationClip
-
getAnimationClip
-
getAllAnimationClips
public java.util.Collection getAllAnimationClips() -
newInstance
public ModelInstance newInstance(Model model, IsoGameCharacter gameCharacter, AnimationPlayer animationPlayer) -
isLoadingAnimations
public boolean isLoadingAnimations() -
reloadModelsMatching
public void reloadModelsMatching(java.lang.String string) -
loadModAnimations
public void loadModAnimations() -
animationAssetLoaded
-