Package zombie.iso.sprite
Class IsoSprite
java.lang.Object
zombie.iso.sprite.IsoSprite
public class IsoSprite
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static float
alphaStep
float
Angle
boolean
Animate
boolean
AnimateWhenPaused
java.util.HashMap
AnimMap
java.util.ArrayList
AnimStack
IsoAnim
CurrentAnim
IsoSpriteInstance
def
boolean
DeleteWhenFinished
static int
globalOffsetX
static int
globalOffsetY
int
ID
boolean
Loop
static int
maxCount
ModelManager.ModelSlot
modelSlot
java.lang.String
name
PropertyContainer
Properties
boolean
Scissor
short
soffX
short
soffY
short
sprOffX
ColorInfo
TintMod
-
Constructor Summary
Constructors Constructor Description IsoSprite()
IsoSprite(IsoSpriteManager manager)
-
Method Summary
Modifier and Type Method Description void
AddFramesUseOtherFrame(java.lang.String ObjectName, java.lang.String Variant, java.lang.String AnimName, java.lang.String OtherAnimName, int nOtherFrameFrame, java.lang.String pal)
void
AddProperties(IsoSprite sprite)
void
CacheAnims(java.lang.String key)
void
ChangeTintMod(ColorInfo NewTintMod)
static IsoSprite
CreateSprite(IsoSpriteManager manager)
void
Dispose()
static void
DisposeAll()
void
drawAt(IsoSpriteInstance inst, IsoObject obj, int sx, int sy, IsoDirections dir)
void
DupeFrame()
IsoSpriteInstance
getDefaultSpriteInst()
float
getMaskClickedY(IsoDirections dir, int x, int y, boolean flip)
java.lang.String
getName()
java.lang.String
getParentObjectName()
PropertyContainer
getProperties()
float
getScreenX(float x, float y, float z, float offsetX, float offsetY)
float
getScreenY(float x, float y, float z, float offsetX, float offsetY)
static IsoSprite
getSprite(IsoSpriteManager manager, int id)
static IsoSprite
getSprite(IsoSpriteManager manager, java.lang.String name, int offset)
static IsoSprite
getSprite(IsoSpriteManager manager, IsoSprite spr, int offset)
IsoSpriteGrid
getSpriteGrid()
ColorInfo
getTintMod()
IsoObjectType
getType()
boolean
hasActiveModel()
static boolean
HasCache(java.lang.String string)
boolean
isMaskClicked(IsoDirections dir, int x, int y)
boolean
isMaskClicked(IsoDirections dir, int x, int y, boolean flip)
void
load(java.io.DataInputStream input)
void
LoadCache(java.lang.String string)
void
LoadExtraFrame(java.lang.String ObjectName, java.lang.String AnimName, int i)
Texture
LoadFrameExplicit(java.lang.String ObjectName)
void
LoadFrames(java.lang.String ObjectName, java.lang.String AnimName, int nFrames)
void
LoadFramesBitRepeatFrame(java.lang.String ObjectName, java.lang.String AnimName, int FrameToAdd)
void
LoadFramesBitRepeatFrame(java.lang.String ObjectName, java.lang.String Variant, java.lang.String AnimName, int FrameToAdd, java.lang.String pal)
void
LoadFramesBits(java.lang.String ObjectName, java.lang.String AnimName, int nFrames)
void
LoadFramesBits(java.lang.String ObjectName, java.lang.String Variant, java.lang.String AnimName, int nFrames)
void
LoadFramesBits(java.lang.String ObjectName, java.lang.String Variant, java.lang.String AnimName, int nFrames, java.lang.String pal)
void
LoadFramesNoDir(java.lang.String ObjectName, java.lang.String AnimName, int nFrames)
void
LoadFramesNoDirPage(java.lang.String ObjectName, java.lang.String AnimName, int nFrames)
void
LoadFramesNoDirPageDirect(java.lang.String ObjectName, java.lang.String AnimName, int nFrames)
void
LoadFramesNoDirPageSimple(java.lang.String ObjectName)
void
LoadFramesNoDirPalette(java.lang.String ObjectName, java.lang.String AnimName, int nFrames, java.lang.String Palette)
void
LoadFramesPageSimple(java.lang.String NObjectName, java.lang.String SObjectName, java.lang.String EObjectName, java.lang.String WObjectName)
void
LoadFramesPalette(java.lang.String ObjectName, java.lang.String AnimName, int nFrames, java.lang.String Palette)
void
LoadFramesPalette(java.lang.String ObjectName, java.lang.String AnimName, int nFrames, PaletteManager.PaletteInfo info)
void
LoadFramesPcx(java.lang.String ObjectName, java.lang.String AnimName, int nFrames)
void
LoadFramesReverseAltName(java.lang.String ObjectName, java.lang.String AnimName, java.lang.String AltName, int nFrames)
void
LoadFramesUseOtherFrame(java.lang.String ObjectName, java.lang.String Variant, java.lang.String AnimName, java.lang.String OtherAnimName, int nOtherFrameFrame, java.lang.String pal)
IsoSpriteInstance
newInstance()
void
PlayAnim(java.lang.String name)
void
PlayAnim(IsoAnim anim)
void
PlayAnimNoReset(java.lang.String name)
void
PlayAnimUnlooped(java.lang.String name)
void
render(IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info2)
void
render(IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info2, boolean brenderPrep)
void
render(IsoSpriteInstance inst, IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info2)
void
render(IsoSpriteInstance inst, IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info2, boolean bDoRenderPrep)
void
renderBloodSplat(float x, float y, float z, ColorInfo info2)
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, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info)
void
ReplaceCurrentAnimFrames(java.lang.String ObjectName)
void
save(java.io.DataOutputStream output)
void
setAnimateWhenPaused(boolean animate)
void
setName(java.lang.String string)
void
setParentObjectName(java.lang.String val)
void
setProperties(PropertyContainer Properties)
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)
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 -
Animate
public boolean Animate -
AnimateWhenPaused
public boolean AnimateWhenPaused -
CurrentAnim
-
DeleteWhenFinished
public boolean DeleteWhenFinished -
sprOffX
public short sprOffX -
Loop
public boolean Loop -
soffX
public short soffX -
soffY
public short soffY -
Properties
-
TintMod
-
AnimMap
public java.util.HashMap AnimMap -
AnimStack
public java.util.ArrayList AnimStack -
Angle
public float Angle -
name
public java.lang.String name -
Scissor
public boolean Scissor -
ID
public int ID -
def
-
globalOffsetX
public static int globalOffsetX -
globalOffsetY
public static int globalOffsetY -
modelSlot
-
-
Constructor Details
-
IsoSprite
public IsoSprite() -
IsoSprite
-
-
Method Details
-
newInstance
-
getProperties
-
setProperties
-
getParentObjectName
public java.lang.String getParentObjectName() -
save
public void save(java.io.DataOutputStream output) throws java.io.IOException- Throws:
java.io.IOException
-
load
public void load(java.io.DataInputStream input) throws java.io.IOException- Throws:
java.io.IOException
-
CreateSprite
-
getSprite
-
setSpriteID
-
getSprite
-
getSprite
-
DisposeAll
public static void DisposeAll() -
Dispose
public void Dispose() -
isMaskClicked
-
isMaskClicked
-
getMaskClickedY
-
LoadFrameExplicit
-
LoadFrames
public void LoadFrames(java.lang.String ObjectName, java.lang.String AnimName, int nFrames) -
LoadFramesReverseAltName
public void LoadFramesReverseAltName(java.lang.String ObjectName, java.lang.String AnimName, java.lang.String AltName, int nFrames) -
DupeFrame
public void DupeFrame() -
LoadExtraFrame
public void LoadExtraFrame(java.lang.String ObjectName, java.lang.String AnimName, int i) -
LoadFramesBits
public void LoadFramesBits(java.lang.String ObjectName, java.lang.String Variant, java.lang.String AnimName, int nFrames) -
LoadFramesUseOtherFrame
public void LoadFramesUseOtherFrame(java.lang.String ObjectName, java.lang.String Variant, java.lang.String AnimName, java.lang.String OtherAnimName, int nOtherFrameFrame, java.lang.String pal) -
AddFramesUseOtherFrame
public void AddFramesUseOtherFrame(java.lang.String ObjectName, java.lang.String Variant, java.lang.String AnimName, java.lang.String OtherAnimName, int nOtherFrameFrame, java.lang.String pal) -
LoadFramesBits
public void LoadFramesBits(java.lang.String ObjectName, java.lang.String Variant, java.lang.String AnimName, int nFrames, java.lang.String pal) -
LoadFramesBits
public void LoadFramesBits(java.lang.String ObjectName, java.lang.String AnimName, int nFrames) -
LoadFramesBitRepeatFrame
public void LoadFramesBitRepeatFrame(java.lang.String ObjectName, java.lang.String Variant, java.lang.String AnimName, int FrameToAdd, java.lang.String pal) -
LoadFramesBitRepeatFrame
public void LoadFramesBitRepeatFrame(java.lang.String ObjectName, java.lang.String AnimName, int FrameToAdd) -
LoadFramesNoDir
public void LoadFramesNoDir(java.lang.String ObjectName, java.lang.String AnimName, int nFrames) -
LoadFramesNoDirPage
public void LoadFramesNoDirPage(java.lang.String ObjectName, java.lang.String AnimName, int nFrames) -
LoadFramesNoDirPageDirect
public void LoadFramesNoDirPageDirect(java.lang.String ObjectName, java.lang.String AnimName, int nFrames) -
LoadFramesNoDirPageSimple
public void LoadFramesNoDirPageSimple(java.lang.String ObjectName) -
ReplaceCurrentAnimFrames
public void ReplaceCurrentAnimFrames(java.lang.String ObjectName) -
LoadFramesPageSimple
public void LoadFramesPageSimple(java.lang.String NObjectName, java.lang.String SObjectName, java.lang.String EObjectName, java.lang.String WObjectName) -
LoadFramesNoDirPalette
public void LoadFramesNoDirPalette(java.lang.String ObjectName, java.lang.String AnimName, int nFrames, java.lang.String Palette) -
LoadFramesPalette
public void LoadFramesPalette(java.lang.String ObjectName, java.lang.String AnimName, int nFrames, PaletteManager.PaletteInfo info) -
LoadFramesPalette
public void LoadFramesPalette(java.lang.String ObjectName, java.lang.String AnimName, int nFrames, java.lang.String Palette) -
LoadFramesPcx
public void LoadFramesPcx(java.lang.String ObjectName, java.lang.String AnimName, int nFrames) -
PlayAnimNoReset
public void PlayAnimNoReset(java.lang.String name) -
PlayAnim
-
PlayAnim
public void PlayAnim(java.lang.String name) -
PlayAnimUnlooped
public void PlayAnimUnlooped(java.lang.String name) -
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) -
render
public void render(IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info2) -
render
public void render(IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info2, boolean brenderPrep) -
getScreenY
public float getScreenY(float x, float y, float z, float offsetX, float offsetY) -
getScreenX
public float getScreenX(float x, float y, float z, float offsetX, float offsetY) -
drawAt
-
render
public void render(IsoSpriteInstance inst, IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info2) -
hasActiveModel
public boolean hasActiveModel() -
render
public void render(IsoSpriteInstance inst, IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info2, boolean bDoRenderPrep) -
renderBloodSplat
-
renderObjectPicker
public void renderObjectPicker(IsoSpriteInstance def, IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info) -
update
public void update() -
update
-
CacheAnims
public void CacheAnims(java.lang.String key) -
HasCache
public static boolean HasCache(java.lang.String string) -
LoadCache
public void LoadCache(java.lang.String string) -
setName
public void setName(java.lang.String string) -
setParentObjectName
public void setParentObjectName(java.lang.String val) -
getType
-
setType
-
AddProperties
-
getDefaultSpriteInst
-
getName
public java.lang.String getName() -
setTintMod
-
getTintMod
-
setAnimateWhenPaused
public void setAnimateWhenPaused(boolean animate) -
setSpriteGrid
-
getSpriteGrid
-