Package zombie.iso.sprite
Class IsoSpriteInstance
java.lang.Object
zombie.iso.sprite.IsoSpriteInstance
public class IsoSpriteInstance
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description floatalphafloatAnimFrameIncreasebooleanbCopyTargetAlphabooleanFinishedbooleanFlipfloatFramebooleanLoopedbooleanNextFramefloatoffXfloatoffYfloatoffZIsoSpriteparentSpritestatic java.util.StackpoolfloatscaleXfloatscaleYfloattargetAlphafloattintbfloattintgfloattintr -
Constructor Summary
Constructors Constructor Description IsoSpriteInstance()IsoSpriteInstance(IsoSprite spr) -
Method Summary
Modifier and Type Method Description static voidadd(IsoSpriteInstance isoSpriteInstance)voidDispose()static IsoSpriteInstanceget(IsoSprite spr)floatgetFrame()intgetFrameCount()intgetID()java.lang.StringgetName()IsoSpritegetParentSprite()floatgetScaleX()floatgetScaleY()booleanisFinished()voidrender(IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info2)voidRenderGhostTileColor(int x, int y, int z, float r, float g, float b, float a)protected voidrenderprep(IsoObject obj)voidscaleAspect(float texW, float texH, float width, float height)voidSetAlpha(float f)voidsetFrameSpeedPerFrame(float perSecond)voidsetScale(float scaleX, float scaleY)voidSetTargetAlpha(float targetAlpha)voidupdate()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
pool
public static java.util.Stack pool -
parentSprite
-
tintb
public float tintb -
tintg
public float tintg -
tintr
public float tintr -
Frame
public float Frame -
alpha
public float alpha -
targetAlpha
public float targetAlpha -
bCopyTargetAlpha
public boolean bCopyTargetAlpha -
Flip
public boolean Flip -
offZ
public float offZ -
offX
public float offX -
offY
public float offY -
AnimFrameIncrease
public float AnimFrameIncrease -
Looped
public boolean Looped -
Finished
public boolean Finished -
NextFrame
public boolean NextFrame -
scaleX
public float scaleX -
scaleY
public float scaleY
-
-
Constructor Details
-
IsoSpriteInstance
public IsoSpriteInstance() -
IsoSpriteInstance
-
-
Method Details
-
get
-
setFrameSpeedPerFrame
public void setFrameSpeedPerFrame(float perSecond) -
getID
public int getID() -
getName
public java.lang.String getName() -
getParentSprite
-
render
public void render(IsoObject obj, float x, float y, float z, IsoDirections dir, float offsetX, float offsetY, ColorInfo info2) -
SetAlpha
public void SetAlpha(float f) -
SetTargetAlpha
public void SetTargetAlpha(float targetAlpha) -
update
public void update() -
renderprep
-
getFrame
public float getFrame() -
getFrameCount
public int getFrameCount() -
isFinished
public boolean isFinished() -
Dispose
public void Dispose() -
RenderGhostTileColor
public void RenderGhostTileColor(int x, int y, int z, float r, float g, float b, float a) -
setScale
public void setScale(float scaleX, float scaleY) -
getScaleX
public float getScaleX() -
getScaleY
public float getScaleY() -
scaleAspect
public void scaleAspect(float texW, float texH, float width, float height) -
add
-