Package zombie.iso.sprite
Class IsoSprite
java.lang.Object
zombie.iso.sprite.IsoSprite
public final class IsoSprite
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static float
alphaStep
boolean
alwaysDraw
boolean
Animate
java.util.HashMap
AnimMap
java.util.ArrayList
AnimStack
boolean
attachedFloor
java.lang.String
burntTile
boolean
canBeRemoved
IsoAnim
CurrentAnim
boolean
cutN
boolean
cutW
IsoSpriteInstance
def
boolean
DeleteWhenFinished
int
firerequirement
boolean
forceAmbient
boolean
forceRender
static float
globalOffsetX
static float
globalOffsetY
int
ID
boolean
invisible
boolean
isBush
boolean
Loop
static int
maxCount
ModelManager.ModelSlot
modelSlot
boolean
moveWithWind
java.lang.String
name
PropertyContainer
Properties
byte
renderLayer
static byte
RL_DEFAULT
static byte
RL_FLOOR
short
soffX
short
soffY
boolean
solid
boolean
solidfloor
boolean
solidTrans
int
tileSheetIndex
ColorInfo
TintMod
boolean
treatAsWallOrder
int
windType
-
Constructor Summary
Constructors Constructor Description IsoSprite()
IsoSprite(IsoSpriteManager spriteManager)
-
Method Summary
Modifier and Type Method Description void
AddProperties(IsoSprite sprite)
void
CacheAnims(java.lang.String string)
void
ChangeTintMod(ColorInfo colorInfo)
static IsoSprite
CreateSprite(IsoSpriteManager spriteManager)
static IsoSprite
CreateSpriteUsingCache(java.lang.String string, java.lang.String string2, int int1)
void
Dispose()
static void
DisposeAll()
int
getID()
float
getMaskClickedY(IsoDirections directions, int int1, int int2, boolean boolean1)
java.lang.String
getName()
java.lang.String
getParentObjectName()
PropertyContainer
getProperties()
int
getSheetGridIdFromName()
static int
getSheetGridIdFromName(java.lang.String string)
static IsoSprite
getSprite(IsoSpriteManager spriteManager, int int1)
static IsoSprite
getSprite(IsoSpriteManager spriteManager, java.lang.String string, int int1)
static IsoSprite
getSprite(IsoSpriteManager spriteManager, IsoSprite sprite, int int1)
IsoSpriteGrid
getSpriteGrid()
Texture
getTextureForCurrentFrame(IsoDirections directions)
Texture
getTextureForFrame(int int1, IsoDirections directions)
ColorInfo
getTintMod()
IsoObjectType
getType()
boolean
hasActiveModel()
static boolean
HasCache(java.lang.String string)
boolean
isMaskClicked(IsoDirections directions, int int1, int int2)
boolean
isMaskClicked(IsoDirections directions, int int1, int int2, boolean boolean1)
boolean
isMoveWithWind()
void
load(java.io.DataInputStream dataInputStream)
void
LoadCache(java.lang.String string)
Texture
LoadFrameExplicit(java.lang.String string)
void
LoadFrames(java.lang.String string, java.lang.String string2, int int1)
void
LoadFramesNoDirPage(java.lang.String string, java.lang.String string2, int int1)
void
LoadFramesNoDirPageDirect(java.lang.String string, java.lang.String string2, int int1)
void
LoadFramesNoDirPageSimple(java.lang.String string)
void
LoadFramesPageSimple(java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4)
void
LoadFramesPcx(java.lang.String string, java.lang.String string2, int int1)
void
LoadFramesReverseAltName(java.lang.String string, java.lang.String string2, java.lang.String string3, int int1)
IsoSpriteInstance
newInstance()
void
PlayAnim(java.lang.String string)
void
PlayAnim(IsoAnim anim)
void
PlayAnimUnlooped(java.lang.String string)
void
render(IsoObject object, float float1, float float2, float float3, IsoDirections directions, float float4, float float5, ColorInfo colorInfo, boolean boolean1)
void
render(IsoObject object, float float1, float float2, float float3, IsoDirections directions, float float4, float float5, ColorInfo colorInfo, boolean boolean1, java.util.function.Consumer consumer)
void
render(IsoSpriteInstance spriteInstance, IsoObject object, float float1, float float2, float float3, IsoDirections directions, float float4, float float5, ColorInfo colorInfo, boolean boolean1)
void
render(IsoSpriteInstance spriteInstance, IsoObject object, float float1, float float2, float float3, IsoDirections directions, float float4, float float5, ColorInfo colorInfo, boolean boolean1, java.util.function.Consumer consumer)
void
renderActiveModel()
void
renderBloodSplat(float float1, float float2, float float3, ColorInfo colorInfo)
void
renderCurrentAnim(IsoSpriteInstance spriteInstance, IsoObject object, float float1, float float2, float float3, IsoDirections directions, float float4, float float5, ColorInfo colorInfo, boolean boolean1, java.util.function.Consumer consumer)
void
RenderGhostTile(int int1, int int2, int int3)
void
RenderGhostTileColor(int int1, int int2, int int3, float float1, float float2, float float3, float float4)
void
RenderGhostTileColor(int int1, int int2, int int3, float float1, float float2, float float3, float float4, float float5, float float6)
void
RenderGhostTileRed(int int1, int int2, int int3)
void
renderObjectPicker(IsoSpriteInstance spriteInstance, IsoObject object, IsoDirections directions)
void
renderVehicle(IsoSpriteInstance spriteInstance, IsoObject object, float float1, float float2, float float3, float float4, float float5, ColorInfo colorInfo, boolean boolean1)
void
ReplaceCurrentAnimFrames(java.lang.String string)
void
save(java.io.DataOutputStream dataOutputStream)
void
setAnimate(boolean boolean1)
IsoSprite
setFromCache(java.lang.String string, java.lang.String string2, int int1)
void
setHideForWaterRender()
void
setName(java.lang.String string)
void
setParentObjectName(java.lang.String string)
void
setSpriteGrid(IsoSpriteGrid spriteGrid)
static void
setSpriteID(IsoSpriteManager spriteManager, int int1, IsoSprite sprite)
void
setTintMod(ColorInfo colorInfo)
void
setType(IsoObjectType objectType)
void
update()
void
update(IsoSpriteInstance spriteInstance)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
maxCount
public static int maxCount -
alphaStep
public static float alphaStep -
globalOffsetX
public static float globalOffsetX -
globalOffsetY
public static float globalOffsetY -
firerequirement
public int firerequirement -
burntTile
public java.lang.String burntTile -
forceAmbient
public boolean forceAmbient -
solidfloor
public boolean solidfloor -
canBeRemoved
public boolean canBeRemoved -
attachedFloor
public boolean attachedFloor -
cutW
public boolean cutW -
cutN
public boolean cutN -
solid
public boolean solid -
solidTrans
public boolean solidTrans -
invisible
public boolean invisible -
alwaysDraw
public boolean alwaysDraw -
forceRender
public boolean forceRender -
moveWithWind
public boolean moveWithWind -
isBush
public boolean isBush -
RL_DEFAULT
public static final byte RL_DEFAULT- See Also:
- Constant Field Values
-
RL_FLOOR
public static final byte RL_FLOOR- See Also:
- Constant Field Values
-
renderLayer
public byte renderLayer -
windType
public int windType -
Animate
public boolean Animate -
CurrentAnim
-
DeleteWhenFinished
public boolean DeleteWhenFinished -
Loop
public boolean Loop -
soffX
public short soffX -
soffY
public short soffY -
Properties
-
TintMod
-
AnimMap
public final java.util.HashMap AnimMap -
AnimStack
public final java.util.ArrayList AnimStack -
name
public java.lang.String name -
tileSheetIndex
public int tileSheetIndex -
ID
public int ID -
def
-
modelSlot
-
treatAsWallOrder
public boolean treatAsWallOrder
-
-
Constructor Details
-
IsoSprite
public IsoSprite() -
IsoSprite
-
-
Method Details
-
setHideForWaterRender
public void setHideForWaterRender() -
CreateSprite
-
CreateSpriteUsingCache
public static IsoSprite CreateSpriteUsingCache(java.lang.String string, java.lang.String string2, int int1) -
getSprite
-
setSpriteID
-
getSprite
-
getSprite
public static IsoSprite getSprite(IsoSpriteManager spriteManager, java.lang.String string, int int1) -
DisposeAll
public static void DisposeAll() -
HasCache
public static boolean HasCache(java.lang.String string) -
newInstance
-
getProperties
-
getParentObjectName
public java.lang.String getParentObjectName() -
setParentObjectName
public void setParentObjectName(java.lang.String string) -
save
public void save(java.io.DataOutputStream dataOutputStream) throws java.io.IOException- Throws:
java.io.IOException
-
load
public void load(java.io.DataInputStream dataInputStream) throws java.io.IOException- Throws:
java.io.IOException
-
Dispose
public void Dispose() -
isMaskClicked
-
isMaskClicked
-
getMaskClickedY
-
LoadFrameExplicit
-
LoadFrames
public void LoadFrames(java.lang.String string, java.lang.String string2, int int1) -
LoadFramesReverseAltName
public void LoadFramesReverseAltName(java.lang.String string, java.lang.String string2, java.lang.String string3, int int1) -
LoadFramesNoDirPage
public void LoadFramesNoDirPage(java.lang.String string, java.lang.String string2, int int1) -
LoadFramesNoDirPageDirect
public void LoadFramesNoDirPageDirect(java.lang.String string, java.lang.String string2, int int1) -
LoadFramesNoDirPageSimple
public void LoadFramesNoDirPageSimple(java.lang.String string) -
ReplaceCurrentAnimFrames
public void ReplaceCurrentAnimFrames(java.lang.String string) -
LoadFramesPageSimple
public void LoadFramesPageSimple(java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4) -
LoadFramesPcx
public void LoadFramesPcx(java.lang.String string, java.lang.String string2, int int1) -
PlayAnim
-
PlayAnim
public void PlayAnim(java.lang.String string) -
PlayAnimUnlooped
public void PlayAnimUnlooped(java.lang.String string) -
ChangeTintMod
-
RenderGhostTile
public void RenderGhostTile(int int1, int int2, int int3) -
RenderGhostTileRed
public void RenderGhostTileRed(int int1, int int2, int int3) -
RenderGhostTileColor
public void RenderGhostTileColor(int int1, int int2, int int3, float float1, float float2, float float3, float float4) -
RenderGhostTileColor
public void RenderGhostTileColor(int int1, int int2, int int3, float float1, float float2, float float3, float float4, float float5, float float6) -
hasActiveModel
public boolean hasActiveModel() -
renderVehicle
public void renderVehicle(IsoSpriteInstance spriteInstance, IsoObject object, float float1, float float2, float float3, float float4, float float5, ColorInfo colorInfo, boolean boolean1) -
render
public final void render(IsoObject object, float float1, float float2, float float3, IsoDirections directions, float float4, float float5, ColorInfo colorInfo, boolean boolean1) -
render
public final void render(IsoObject object, float float1, float float2, float float3, IsoDirections directions, float float4, float float5, ColorInfo colorInfo, boolean boolean1, java.util.function.Consumer consumer) -
render
public final void render(IsoSpriteInstance spriteInstance, IsoObject object, float float1, float float2, float float3, IsoDirections directions, float float4, float float5, ColorInfo colorInfo, boolean boolean1) -
render
public void render(IsoSpriteInstance spriteInstance, IsoObject object, float float1, float float2, float float3, IsoDirections directions, float float4, float float5, ColorInfo colorInfo, boolean boolean1, java.util.function.Consumer consumer) -
renderCurrentAnim
public void renderCurrentAnim(IsoSpriteInstance spriteInstance, IsoObject object, float float1, float float2, float float3, IsoDirections directions, float float4, float float5, ColorInfo colorInfo, boolean boolean1, java.util.function.Consumer consumer) -
renderActiveModel
public void renderActiveModel() -
renderBloodSplat
-
renderObjectPicker
public void renderObjectPicker(IsoSpriteInstance spriteInstance, IsoObject object, IsoDirections directions) -
getTextureForFrame
-
getTextureForCurrentFrame
-
update
public void update() -
update
-
CacheAnims
public void CacheAnims(java.lang.String string) -
LoadCache
public void LoadCache(java.lang.String string) -
setFromCache
-
getType
-
setType
-
AddProperties
-
getID
public int getID() -
getName
public java.lang.String getName() -
setName
public void setName(java.lang.String string) -
getTintMod
-
setTintMod
-
setAnimate
public void setAnimate(boolean boolean1) -
getSpriteGrid
-
setSpriteGrid
-
isMoveWithWind
public boolean isMoveWithWind() -
getSheetGridIdFromName
public int getSheetGridIdFromName() -
getSheetGridIdFromName
public static int getSheetGridIdFromName(java.lang.String string)
-