Package zombie.iso

Class IsoObject

java.lang.Object
zombie.iso.IsoObject
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BSFurnace, IsoBarbecue, IsoBarricade, IsoCarBatteryCharger, IsoCompost, IsoCrate, IsoCurtain, IsoDoor, IsoFire, IsoFireplace, IsoGenerator, IsoJukebox, IsoLightSwitch, IsoMovingObject, IsoRaindrop, IsoRainSplash, IsoStove, IsoThumpable, IsoTrap, IsoTree, IsoWaveSignal, IsoWindow, IsoWoodenWall, IsoWorldInventoryObject, SkyBox

public class IsoObject
extends java.lang.Object
implements java.io.Serializable
See Also:
Serialized Form
  • Field Details

    • OBF_Highlighted

      public static final byte OBF_Highlighted
      See Also:
      Constant Field Values
    • OBF_HighlightRenderOnce

      public static final byte OBF_HighlightRenderOnce
      See Also:
      Constant Field Values
    • highlightFlags

      public byte highlightFlags
    • keyId

      public int keyId
    • emitter

      public BaseSoundEmitter emitter
    • sheetRopeHealth

      public float sheetRopeHealth
    • sheetRope

      public boolean sheetRope
    • alpha

      public float[] alpha
    • alphaStep

      public static float alphaStep
    • bNeverDoneAlpha

      public boolean bNeverDoneAlpha
    • AttachedAnimSprite

      public java.util.ArrayList AttachedAnimSprite
    • AttachedAnimSpriteActual

      public java.util.ArrayList AttachedAnimSpriteActual
    • MAX_WALL_SPLATS

      public static final int MAX_WALL_SPLATS
      See Also:
      Constant Field Values
    • wallBloodSplats

      public java.util.ArrayList wallBloodSplats
    • container

      public ItemContainer container
    • dir

      public IsoDirections dir
    • Damage

      public short Damage
    • NoPicking

      public boolean NoPicking
    • offsetX

      public float offsetX
    • offsetY

      public float offsetY
    • OutlineOnMouseover

      public boolean OutlineOnMouseover
    • rerouteMask

      public IsoObject rerouteMask
    • sprite

      public IsoSprite sprite
    • overlaySprite

      public IsoSprite overlaySprite
    • overlaySpriteColor

      public ColorInfo overlaySpriteColor
    • square

      public IsoGridSquare square
    • targetAlpha

      public float[] targetAlpha
    • rerouteCollide

      public IsoObject rerouteCollide
    • table

      public KahluaTable table
    • name

      public java.lang.String name
    • lastRendered

      public static IsoObject lastRendered
    • lastRenderedRendered

      public static IsoObject lastRenderedRendered
    • tintr

      public float tintr
    • tintg

      public float tintg
    • tintb

      public float tintb
    • stCol

      public static ColorInfo stCol
    • windRenderEffects

      protected ObjectRenderEffects windRenderEffects
    • objectRenderEffects

      protected ObjectRenderEffects objectRenderEffects
    • spriteName

      public java.lang.String spriteName
    • sx

      public int sx
    • sy

      public int sy
    • doNotSync

      public boolean doNotSync
    • externalWaterSource

      protected IsoObject externalWaterSource
    • usesExternalWaterSource

      protected boolean usesExternalWaterSource
    • rmod

      public static float rmod
    • gmod

      public static float gmod
    • bmod

      public static float bmod
    • LowLightingQualityHack

      public static boolean LowLightingQualityHack
  • Constructor Details

    • IsoObject

      public IsoObject​(IsoCell cell)
    • IsoObject

      public IsoObject()
    • IsoObject

      public IsoObject​(IsoCell cell, IsoGridSquare square, IsoSprite sprite)
    • IsoObject

      public IsoObject​(IsoCell cell, IsoGridSquare square, java.lang.String string)
    • IsoObject

      public IsoObject​(IsoGridSquare square, java.lang.String string, java.lang.String string2)
    • IsoObject

      public IsoObject​(IsoGridSquare square, java.lang.String string, java.lang.String string2, boolean boolean1)
    • IsoObject

      public IsoObject​(IsoGridSquare square, java.lang.String string, boolean boolean1)
    • IsoObject

      public IsoObject​(IsoGridSquare square, java.lang.String string)
  • Method Details

    • getNew

      public static IsoObject getNew​(IsoGridSquare square, java.lang.String string, java.lang.String string2, boolean boolean1)
    • DoChecksumCheck

      public static boolean DoChecksumCheck​(java.lang.String string, java.lang.String string2)
    • syncIsoObject

      public void syncIsoObject​(boolean boolean1, byte byte1, UdpConnection udpConnection, java.nio.ByteBuffer byteBuffer)
    • syncIsoObjectSend

      public void syncIsoObjectSend​(ByteBufferWriter byteBufferWriter)
    • getTextureName

      public java.lang.String getTextureName()
    • DoChecksumCheck

      public static boolean DoChecksumCheck()
    • createChecksum

      public static byte[] createChecksum​(java.lang.String string) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • getMD5Checksum

      public static java.lang.String getMD5Checksum​(java.lang.String string) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • getLastRendered

      public static IsoObject getLastRendered()
    • setLastRendered

      public static void setLastRendered​(IsoObject object)
    • getLastRenderedRendered

      public static IsoObject getLastRenderedRendered()
    • setLastRenderedRendered

      public static void setLastRenderedRendered​(IsoObject object)
    • setDefaultCondition

      public static void setDefaultCondition​(int int1)
    • Serialize

      public boolean Serialize()
    • getModData

      public KahluaTable getModData()
    • hasModData

      public boolean hasModData()
    • getNew

      public static IsoObject getNew()
    • factoryFromFileInput

      public static IsoObject factoryFromFileInput​(IsoCell cell, int int1)
    • factoryClassFromFileInput

      public static java.lang.Class factoryClassFromFileInput​(IsoCell cell, int int1)
    • factoryFromFileInput

      public static IsoObject factoryFromFileInput​(IsoCell cell, java.nio.ByteBuffer byteBuffer) throws java.io.IOException
      Throws:
      java.io.IOException
    • getSquare

      public IsoGridSquare getSquare()
    • update

      public void update()
    • renderlast

      public void renderlast()
    • DirtySlice

      public void DirtySlice()
    • getObjectName

      public java.lang.String getObjectName()
    • load

      public void load​(java.nio.ByteBuffer byteBuffer, int int1) throws java.io.IOException
      Throws:
      java.io.IOException
    • save

      public void save​(java.nio.ByteBuffer byteBuffer) throws java.io.IOException
      Throws:
      java.io.IOException
    • saveState

      public void saveState​(java.nio.ByteBuffer byteBuffer)
    • loadState

      public void loadState​(java.nio.ByteBuffer byteBuffer)
    • softReset

      public void softReset()
    • AttackObject

      public void AttackObject​(IsoGameCharacter gameCharacter)
    • onMouseRightClick

      public void onMouseRightClick​(int int1, int int2)
    • onMouseRightReleased

      public void onMouseRightReleased()
    • Hit

      public void Hit​(Vector2 vector2, IsoObject object, float float1)
    • Damage

      public void Damage​(float float1)
    • Collision

      public void Collision​(Vector2 vector2, IsoObject object)
    • UnCollision

      public void UnCollision​(IsoObject object)
    • GetVehicleSlowFactor

      public float GetVehicleSlowFactor​(BaseVehicle baseVehicle)
    • getRerouteCollide

      public IsoObject getRerouteCollide()
    • setRerouteCollide

      public void setRerouteCollide​(IsoObject object)
    • getTable

      public KahluaTable getTable()
    • setTable

      public void setTable​(KahluaTable kahluaTable)
    • getAlpha

      public float getAlpha()
    • setAlpha

      public void setAlpha​(float float1)
    • getAlphaStep

      public float getAlphaStep()
    • setAlphaStep

      public void setAlphaStep​(float float1)
    • getAttachedAnimSprite

      public java.util.ArrayList getAttachedAnimSprite()
    • setAttachedAnimSprite

      public void setAttachedAnimSprite​(java.util.ArrayList arrayList)
    • getCell

      public IsoCell getCell()
    • getChildSprites

      public java.util.ArrayList getChildSprites()
    • setChildSprites

      public void setChildSprites​(java.util.ArrayList arrayList)
    • getContainer

      public ItemContainer getContainer()
    • setContainer

      public void setContainer​(ItemContainer itemContainer)
    • getDir

      public IsoDirections getDir()
    • setDir

      public void setDir​(IsoDirections directions)
    • setDir

      public void setDir​(int int1)
    • getDamage

      public short getDamage()
    • setDamage

      public void setDamage​(short short1)
    • isNoPicking

      public boolean isNoPicking()
    • setNoPicking

      public void setNoPicking​(boolean boolean1)
    • setOffsetX

      public void setOffsetX​(float float1)
    • setOffsetY

      public void setOffsetY​(float float1)
    • isOutlineOnMouseover

      public boolean isOutlineOnMouseover()
    • setOutlineOnMouseover

      public void setOutlineOnMouseover​(boolean boolean1)
    • getRerouteMask

      public IsoObject getRerouteMask()
    • setRerouteMask

      public void setRerouteMask​(IsoObject object)
    • getSprite

      public IsoSprite getSprite()
    • setSprite

      public void setSprite​(IsoSprite sprite)
    • setSprite

      public void setSprite​(java.lang.String string)
    • setSpriteFromName

      public void setSpriteFromName​(java.lang.String string)
    • setSquare

      public void setSquare​(IsoGridSquare square)
    • getTargetAlpha

      public float getTargetAlpha()
    • setTargetAlpha

      public void setTargetAlpha​(float float1)
    • setName

      public void setName​(java.lang.String string)
    • getType

      public IsoObjectType getType()
    • setType

      public void setType​(IsoObjectType objectType)
    • addChild

      public void addChild​(IsoObject object)
    • debugPrintout

      public void debugPrintout()
    • checkMoveWithWind

      protected void checkMoveWithWind()
    • checkMoveWithWind

      protected void checkMoveWithWind​(boolean boolean1)
    • reset

      public void reset()
    • customHashCode

      public long customHashCode()
    • SetName

      public void SetName​(java.lang.String string)
    • getName

      public java.lang.String getName()
    • getSpriteName

      public java.lang.String getSpriteName()
    • getTile

      public java.lang.String getTile()
    • isCharacter

      public boolean isCharacter()
    • isZombie

      public boolean isZombie()
    • getScriptName

      public java.lang.String getScriptName()
    • AttachAnim

      public void AttachAnim​(java.lang.String string, java.lang.String string2, int int1, float float1, int int2, int int3, boolean boolean1, int int4, boolean boolean2, float float2, ColorInfo colorInfo)
    • AttachExistingAnim

      public void AttachExistingAnim​(IsoSprite sprite, int int1, int int2, boolean boolean1, int int3, boolean boolean2, float float1, ColorInfo colorInfo)
    • AttachExistingAnim

      public void AttachExistingAnim​(IsoSprite sprite, int int1, int int2, boolean boolean1, int int3, boolean boolean2, float float1)
    • DoTooltip

      public void DoTooltip​(ObjectTooltip objectTooltip)
    • DoSpecialTooltip

      public void DoSpecialTooltip​(ObjectTooltip objectTooltip, IsoGridSquare square)
    • getItemContainer

      public ItemContainer getItemContainer()
    • getOffsetX

      public float getOffsetX()
    • getOffsetY

      public float getOffsetY()
    • getRerouteMaskObject

      public IsoObject getRerouteMaskObject()
    • HasTooltip

      public boolean HasTooltip()
    • setUsesExternalWaterSource

      public void setUsesExternalWaterSource​(boolean boolean1)
    • getUsesExternalWaterSource

      public boolean getUsesExternalWaterSource()
    • hasExternalWaterSource

      public boolean hasExternalWaterSource()
    • doFindExternalWaterSource

      public void doFindExternalWaterSource()
    • FindExternalWaterSource

      protected IsoObject FindExternalWaterSource​(IsoGridSquare square, boolean boolean1)
    • setWaterAmount

      public void setWaterAmount​(int int1)
    • getWaterAmount

      public int getWaterAmount()
    • useWater

      public int useWater​(int int1)
    • hasWater

      public boolean hasWater()
    • setTaintedWater

      public void setTaintedWater​(boolean boolean1)
    • isTaintedWater

      public boolean isTaintedWater()
    • replaceItem

      public InventoryItem replaceItem​(InventoryItem inventoryItem)
    • useItemOn

      public void useItemOn​(InventoryItem inventoryItem)
    • getX

      public float getX()
    • getY

      public float getY()
    • getZ

      public float getZ()
    • onMouseLeftClick

      public boolean onMouseLeftClick​(int int1, int int2)
    • getProperties

      public PropertyContainer getProperties()
    • RemoveAttachedAnims

      public void RemoveAttachedAnims()
    • RemoveAttachedAnim

      public void RemoveAttachedAnim​(int int1)
    • getFacingPosition

      public Vector2 getFacingPosition​(Vector2 vector2)
    • getFacingPositionAlt

      public Vector2 getFacingPositionAlt​(Vector2 vector2)
    • getRenderYOffset

      public float getRenderYOffset()
    • setRenderYOffset

      public void setRenderYOffset​(float float1)
    • isTableSurface

      public boolean isTableSurface()
    • isTableTopObject

      public boolean isTableTopObject()
    • getIsSurfaceNormalOffset

      public boolean getIsSurfaceNormalOffset()
    • getSurfaceNormalOffset

      public float getSurfaceNormalOffset()
    • getSurfaceOffset

      public float getSurfaceOffset()
    • isStairsNorth

      public boolean isStairsNorth()
    • isStairsWest

      public boolean isStairsWest()
    • isStairsObject

      public boolean isStairsObject()
    • render

      public void render​(float float1, float float2, float float3, ColorInfo colorInfo, boolean boolean1)
    • render

      public void render​(float float1, float float2, float float3, ColorInfo colorInfo, boolean boolean1, boolean boolean2)
    • renderFxMask

      public void renderFxMask​(float float1, float float2, float float3, boolean boolean1)
    • renderObjectPicker

      public void renderObjectPicker​(float float1, float float2, float float3, ColorInfo colorInfo)
    • TestPathfindCollide

      public boolean TestPathfindCollide​(IsoMovingObject movingObject, IsoGridSquare square, IsoGridSquare square2)
    • TestCollide

      public boolean TestCollide​(IsoMovingObject movingObject, IsoGridSquare square, IsoGridSquare square2)
    • TestVision

      public IsoObject.VisionResult TestVision​(IsoGridSquare square, IsoGridSquare square2)
    • isMaskClicked

      public boolean isMaskClicked​(int int1, int int2)
    • isMaskClicked

      public boolean isMaskClicked​(int int1, int int2, boolean boolean1)
    • getMaskClickedY

      public float getMaskClickedY​(int int1, int int2, boolean boolean1)
    • setCustomColor

      public void setCustomColor​(ColorInfo colorInfo)
    • getCustomColor

      public ColorInfo getCustomColor()
    • setCustomColor

      public void setCustomColor​(float float1, float float2, float float3, float float4)
    • loadFromRemoteBuffer

      public void loadFromRemoteBuffer​(java.nio.ByteBuffer byteBuffer)
    • loadFromRemoteBuffer

      public void loadFromRemoteBuffer​(java.nio.ByteBuffer byteBuffer, boolean boolean1)
    • addToWorld

      public void addToWorld()
    • removeFromWorld

      public void removeFromWorld()
    • reuseGridSquare

      public void reuseGridSquare()
    • removeFromSquare

      public void removeFromSquare()
    • transmitCustomColor

      public void transmitCustomColor()
    • transmitCompleteItemToClients

      public void transmitCompleteItemToClients()
    • transmitUpdatedSpriteToClients

      public void transmitUpdatedSpriteToClients​(UdpConnection udpConnection)
    • transmitUpdatedSpriteToClients

      public void transmitUpdatedSpriteToClients()
    • sendObjectChange

      public void sendObjectChange​(java.lang.String string)
    • sendObjectChange

      public void sendObjectChange​(java.lang.String string, KahluaTable kahluaTable)
    • sendObjectChange

      public void sendObjectChange​(java.lang.String string, java.lang.Object[] objectArray)
    • saveChange

      public void saveChange​(java.lang.String string, KahluaTable kahluaTable, java.nio.ByteBuffer byteBuffer)
    • loadChange

      public void loadChange​(java.lang.String string, java.nio.ByteBuffer byteBuffer)
    • transmitUpdatedSpriteToServer

      public void transmitUpdatedSpriteToServer()
    • transmitCompleteItemToServer

      public void transmitCompleteItemToServer()
    • transmitModData

      public void transmitModData()
    • writeToRemoteBuffer

      public void writeToRemoteBuffer​(ByteBufferWriter byteBufferWriter)
    • getObjectIndex

      public int getObjectIndex()
    • getMovingObjectIndex

      public int getMovingObjectIndex()
    • getSpecialObjectIndex

      public int getSpecialObjectIndex()
    • getStaticMovingObjectIndex

      public int getStaticMovingObjectIndex()
    • getWorldObjectIndex

      public int getWorldObjectIndex()
    • getOverlaySprite

      public IsoSprite getOverlaySprite()
    • setOverlaySpriteColor

      public void setOverlaySpriteColor​(float float1, float float2, float float3, float float4)
    • getOverlaySpriteColor

      public ColorInfo getOverlaySpriteColor()
    • setOverlaySprite

      public void setOverlaySprite​(java.lang.String string)
    • setOverlaySprite

      public void setOverlaySprite​(java.lang.String string, float float1, float float2, float float3, float float4)
    • setOverlaySprite

      public boolean setOverlaySprite​(java.lang.String string, float float1, float float2, float float3, float float4, boolean boolean1)
    • haveSpecialTooltip

      public boolean haveSpecialTooltip()
    • setSpecialTooltip

      public void setSpecialTooltip​(boolean boolean1)
    • getKeyId

      public int getKeyId()
    • setKeyId

      public void setKeyId​(int int1)
    • isHighlighted

      public boolean isHighlighted()
    • setHighlighted

      public void setHighlighted​(boolean boolean1)
    • setHighlighted

      public void setHighlighted​(boolean boolean1, boolean boolean2)
    • getHighlightColor

      public ColorInfo getHighlightColor()
    • setHighlightColor

      public void setHighlightColor​(ColorInfo colorInfo)
    • setHighlightColor

      public void setHighlightColor​(float float1, float float2, float float3, float float4)
    • isBlink

      public boolean isBlink()
    • setBlink

      public void setBlink​(boolean boolean1)
    • checkHaveElectricity

      public void checkHaveElectricity()
    • getContainerCount

      public int getContainerCount()
    • getContainerByIndex

      public ItemContainer getContainerByIndex​(int int1)
    • getContainerByType

      public ItemContainer getContainerByType​(java.lang.String string)
    • getContainerByEitherType

      public ItemContainer getContainerByEitherType​(java.lang.String string, java.lang.String string2)
    • addSecondaryContainer

      public void addSecondaryContainer​(ItemContainer itemContainer)
    • getContainerIndex

      public int getContainerIndex​(ItemContainer itemContainer)
    • removeAllContainers

      public void removeAllContainers()
    • createContainersFromSpriteProperties

      public void createContainersFromSpriteProperties()
    • revisionUp

      public void revisionUp()
    • cleanWallBlood

      public void cleanWallBlood()
    • getWindRenderEffects

      public ObjectRenderEffects getWindRenderEffects()
    • getObjectRenderEffects

      public ObjectRenderEffects getObjectRenderEffects()
    • setRenderEffect

      public void setRenderEffect​(RenderEffectType renderEffectType)
    • setRenderEffect

      public void setRenderEffect​(RenderEffectType renderEffectType, boolean boolean1)
    • removeRenderEffect

      public void removeRenderEffect​(ObjectRenderEffects objectRenderEffects)
    • getObjectRenderEffectsToApply

      public ObjectRenderEffects getObjectRenderEffectsToApply()