Package zombie.iso.sprite
Class IsoSprite
java.lang.Object
zombie.iso.sprite.IsoSprite
-
Field Summary
Modifier and TypeFieldDescriptionstatic float
boolean
boolean
boolean
boolean
boolean
boolean
boolean
int
boolean
boolean
static float
static float
int
boolean
boolean
boolean
static int
boolean
final PropertyContainer
byte
static final byte
static final byte
short
short
boolean
boolean
boolean
int
final ColorInfo
boolean
int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
AddProperties
(IsoSprite sprite) void
CacheAnims
(String key) void
ChangeTintMod
(ColorInfo NewTintMod) static IsoSprite
CreateSprite
(IsoSpriteManager manager) static IsoSprite
CreateSpriteUsingCache
(String objectName, String animName, int numFrames) void
Dispose()
static void
int
getID()
float
getMaskClickedY
(IsoDirections dir, int x, int y, boolean flip) getName()
int
static int
getSheetGridIdFromName
(String name) static IsoSprite
getSprite
(IsoSpriteManager manager, int id) static IsoSprite
getSprite
(IsoSpriteManager manager, String name, int offset) static IsoSprite
getSprite
(IsoSpriteManager manager, IsoSprite spr, int offset) getTextureForFrame
(int frame, IsoDirections dir) getType()
boolean
static boolean
boolean
isMaskClicked
(IsoDirections dir, int x, int y) boolean
isMaskClicked
(IsoDirections dir, int x, int y, boolean flip) boolean
void
load
(DataInputStream input) void
LoadFrameExplicit
(String ObjectName) void
LoadFrames
(String ObjectName, String AnimName, int nFrames) void
LoadFramesNoDirPage
(String ObjectName, String AnimName, int nFrames) void
LoadFramesNoDirPageDirect
(String ObjectName, String AnimName, int nFrames) void
LoadFramesNoDirPageSimple
(String ObjectName) void
LoadFramesPageSimple
(String NObjectName, String SObjectName, String EObjectName, String WObjectName) void
LoadFramesPcx
(String ObjectName, String AnimName, int nFrames) void
LoadFramesReverseAltName
(String ObjectName, String AnimName, String AltName, int nFrames) void
void
void
PlayAnimUnlooped
(String name) final void
render
(IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info2, boolean bDoRenderPrep) final void
render
(IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info2, boolean bDoRenderPrep, Consumer<TextureDraw> texdModifier) final void
render
(IsoSpriteInstance inst, IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info2, boolean bDoRenderPrep) void
render
(IsoSpriteInstance inst, IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info2, boolean bDoRenderPrep, Consumer<TextureDraw> texdModifier) void
void
renderBloodSplat
(float x, float y, float z, ColorInfo info2) void
renderCurrentAnim
(IsoSpriteInstance inst, IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo col, boolean bDoRenderPrep, Consumer<TextureDraw> texdModifier) void
RenderGhostTile
(int x, int y, int z) void
RenderGhostTileColor
(int x, int y, int z, float r, float g, float b, float a) void
RenderGhostTileColor
(int x, int y, int z, float offsetX, float offsetY, float r, float g, float b, float a) void
RenderGhostTileRed
(int x, int y, int z) void
renderObjectPicker
(IsoSpriteInstance def, IsoObject obj, IsoDirections dir) void
renderVehicle
(IsoSpriteInstance inst, IsoObject obj, float x, float y, float z, float offsetX, float offsetY, ColorInfo info2, boolean bDoRenderPrep) void
ReplaceCurrentAnimFrames
(String ObjectName) void
save
(DataOutputStream output) void
setAnimate
(boolean animate) setFromCache
(String objectName, String animName, int numFrames) void
void
void
void
setSpriteGrid
(IsoSpriteGrid sGrid) static void
setSpriteID
(IsoSpriteManager manager, int id, IsoSprite spr) void
setTintMod
(ColorInfo info) void
setType
(IsoObjectType ntype) void
update()
void
update
(IsoSpriteInstance def)
-
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
-
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:
-
RL_FLOOR
public static final byte RL_FLOOR- See Also:
-
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
-
AnimStack
-
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
-
getSprite
-
setSpriteID
-
getSprite
-
getSprite
-
DisposeAll
public static void DisposeAll() -
HasCache
-
newInstance
-
getProperties
- Returns:
- the Properties
-
getParentObjectName
-
setParentObjectName
-
save
- Throws:
IOException
-
load
- Throws:
IOException
-
Dispose
public void Dispose() -
isMaskClicked
-
isMaskClicked
-
getMaskClickedY
-
LoadFrameExplicit
-
LoadFrames
-
LoadFramesReverseAltName
-
LoadFramesNoDirPage
-
LoadFramesNoDirPageDirect
-
LoadFramesNoDirPageSimple
-
ReplaceCurrentAnimFrames
-
LoadFramesPageSimple
-
LoadFramesPcx
-
PlayAnim
-
PlayAnim
-
PlayAnimUnlooped
-
ChangeTintMod
-
RenderGhostTile
public void RenderGhostTile(int x, int y, int z) -
RenderGhostTileRed
public void RenderGhostTileRed(int x, int y, int z) -
RenderGhostTileColor
public void RenderGhostTileColor(int x, int y, int z, float r, float g, float b, float a) -
RenderGhostTileColor
public void RenderGhostTileColor(int x, int y, int z, float offsetX, float offsetY, float r, float g, float b, float a) -
hasActiveModel
public boolean hasActiveModel() -
renderVehicle
public void renderVehicle(IsoSpriteInstance inst, IsoObject obj, float x, float y, float z, float offsetX, float offsetY, ColorInfo info2, boolean bDoRenderPrep) -
render
public final void render(IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info2, boolean bDoRenderPrep) -
render
public final void render(IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info2, boolean bDoRenderPrep, Consumer<TextureDraw> texdModifier) -
render
public final void render(IsoSpriteInstance inst, IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info2, boolean bDoRenderPrep) -
render
public void render(IsoSpriteInstance inst, IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info2, boolean bDoRenderPrep, Consumer<TextureDraw> texdModifier) -
renderCurrentAnim
public void renderCurrentAnim(IsoSpriteInstance inst, IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo col, boolean bDoRenderPrep, Consumer<TextureDraw> texdModifier) -
renderActiveModel
public void renderActiveModel() -
renderBloodSplat
-
renderObjectPicker
-
getTextureForFrame
-
getTextureForCurrentFrame
-
update
public void update() -
update
-
CacheAnims
-
LoadCache
-
setFromCache
-
getType
-
setType
-
AddProperties
-
getID
public int getID() -
getName
-
setName
-
getTintMod
-
setTintMod
-
setAnimate
public void setAnimate(boolean animate) -
getSpriteGrid
-
setSpriteGrid
-
isMoveWithWind
public boolean isMoveWithWind() -
getSheetGridIdFromName
public int getSheetGridIdFromName() -
getSheetGridIdFromName
-