Class IsoThumpable

java.lang.Object
zombie.iso.IsoObject
zombie.iso.objects.IsoThumpable
All Implemented Interfaces:
java.io.Serializable, BarricadeAble, Thumpable

public class IsoThumpable
extends IsoObject
implements BarricadeAble, Thumpable
See Also:
Serialized Form
  • Field Details

    • isDoor

      public java.lang.Boolean isDoor
    • isDoorFrame

      public java.lang.Boolean isDoorFrame
    • breakSound

      public java.lang.String breakSound
    • Locked

      public boolean Locked
    • MaxHealth

      public int MaxHealth
    • Health

      public int Health
    • PushedMaxStrength

      public int PushedMaxStrength
    • PushedStrength

      public int PushedStrength
    • north

      public boolean north
    • name

      public java.lang.String name
    • open

      public boolean open
    • canPassThrough

      public boolean canPassThrough
    • keyId

      public int keyId
    • lockedByPadlock

      public boolean lockedByPadlock
    • lockedByCode

      public int lockedByCode
    • OldNumPlanks

      public int OldNumPlanks
    • thumpSound

      public java.lang.String thumpSound
    • tempo

      public static Vector2 tempo
  • Constructor Details

    • IsoThumpable

      public IsoThumpable​(IsoCell cell)
    • IsoThumpable

      public IsoThumpable​(IsoCell cell, IsoGridSquare gridSquare, java.lang.String closedSprite, java.lang.String openSprite, boolean north, KahluaTable table)
    • IsoThumpable

      public IsoThumpable​(IsoCell cell, IsoGridSquare gridSquare, java.lang.String sprite, boolean north, KahluaTable table)
  • Method Details

    • getModData

      public KahluaTable getModData()
      Overrides:
      getModData in class IsoObject
    • setModData

      public void setModData​(KahluaTable modData)
    • hasModData

      public boolean hasModData()
      Overrides:
      hasModData in class IsoObject
    • isCanPassThrough

      public boolean isCanPassThrough()
    • setCanPassThrough

      public void setCanPassThrough​(boolean pCanPassThrough)
    • isBlockAllTheSquare

      public boolean isBlockAllTheSquare()
    • setBlockAllTheSquare

      public void setBlockAllTheSquare​(boolean blockAllTheSquare)
    • setIsDismantable

      public void setIsDismantable​(boolean dismantable)
    • isDismantable

      public boolean isDismantable()
    • getCrossSpeed

      public float getCrossSpeed()
    • setCrossSpeed

      public void setCrossSpeed​(float pCrossSpeed)
    • setIsFloor

      public void setIsFloor​(boolean pIsFloor)
    • isCorner

      public boolean isCorner()
    • isFloor

      public boolean isFloor()
    • setIsContainer

      public void setIsContainer​(boolean pIsContainer)
    • setIsStairs

      public void setIsStairs​(boolean pStairs)
    • isStairs

      public boolean isStairs()
    • isWindow

      public boolean isWindow()
    • getObjectName

      public java.lang.String getObjectName()
      Overrides:
      getObjectName in class IsoObject
    • setCorner

      public void setCorner​(boolean pCorner)
    • setCanBarricade

      public void setCanBarricade​(boolean pCanBarricade)
    • getCanBarricade

      public boolean getCanBarricade()
    • setHealth

      public void setHealth​(int health)
    • getHealth

      public int getHealth()
    • setMaxHealth

      public void setMaxHealth​(int maxHealth)
    • getMaxHealth

      public int getMaxHealth()
    • setThumpDmg

      public void setThumpDmg​(java.lang.Integer pThumpDmg)
    • setBreakSound

      public void setBreakSound​(java.lang.String pBreakSound)
    • isDoor

      public boolean isDoor()
    • getNorth

      public boolean getNorth()
      Specified by:
      getNorth in interface BarricadeAble
    • getFacingPosition

      public Vector2 getFacingPosition​(Vector2 pos)
      Overrides:
      getFacingPosition in class IsoObject
    • isDoorFrame

      public boolean isDoorFrame()
    • setIsDoor

      public void setIsDoor​(boolean pIsDoor)
    • setIsDoorFrame

      public void setIsDoorFrame​(boolean pIsDoorFrame)
    • setSprite

      public void setSprite​(java.lang.String sprite)
      Overrides:
      setSprite in class IsoObject
    • setSpriteFromName

      public void setSpriteFromName​(java.lang.String name)
      Overrides:
      setSpriteFromName in class IsoObject
    • setClosedSprite

      public void setClosedSprite​(IsoSprite sprite)
    • setOpenSprite

      public void setOpenSprite​(IsoSprite sprite)
    • load

      public void load​(java.nio.ByteBuffer input, int WorldVersion) throws java.io.IOException
      Overrides:
      load in class IsoObject
      Throws:
      java.io.IOException
    • save

      public void save​(java.nio.ByteBuffer output) throws java.io.IOException
      Overrides:
      save in class IsoObject
      Throws:
      java.io.IOException
    • isDestroyed

      public boolean isDestroyed()
      Specified by:
      isDestroyed in interface Thumpable
    • IsOpen

      public boolean IsOpen()
    • IsStrengthenedByPushedItems

      public boolean IsStrengthenedByPushedItems()
    • onMouseLeftClick

      public boolean onMouseLeftClick​(int x, int y)
      Overrides:
      onMouseLeftClick in class IsoObject
    • TestPathfindCollide

      public boolean TestPathfindCollide​(IsoMovingObject obj, IsoGridSquare from, IsoGridSquare to)
      Overrides:
      TestPathfindCollide in class IsoObject
    • TestCollide

      public boolean TestCollide​(IsoMovingObject obj, IsoGridSquare from, IsoGridSquare to)
      Overrides:
      TestCollide in class IsoObject
    • TestVision

      public IsoObject.VisionResult TestVision​(IsoGridSquare from, IsoGridSquare to)
      Overrides:
      TestVision in class IsoObject
    • Thump

      public void Thump​(IsoMovingObject thumper)
      Specified by:
      Thump in interface Thumpable
    • WeaponHit

      public void WeaponHit​(IsoGameCharacter owner, HandWeapon weapon)
    • getOtherSideOfDoor

      public IsoGridSquare getOtherSideOfDoor​(IsoGameCharacter chr)
    • ToggleDoorActual

      public void ToggleDoorActual​(IsoGameCharacter chr)
    • ToggleDoor

      public void ToggleDoor​(IsoGameCharacter chr)
    • ToggleDoorSilent

      public void ToggleDoorSilent()
    • haveSheetRope

      public boolean haveSheetRope()
    • countAddSheetRope

      public int countAddSheetRope()
    • canAddSheetRope

      public boolean canAddSheetRope()
    • addSheetRope

      public boolean addSheetRope​(IsoPlayer player, java.lang.String itemType)
    • removeSheetRope

      public boolean removeSheetRope​(IsoPlayer player)
    • createLightSource

      public void createLightSource​(int radius, int offsetX, int offsetY, int offsetZ, int life, java.lang.String lightSourceFuel, InventoryItem baseItem, IsoGameCharacter chr)
    • insertNewFuel

      public InventoryItem insertNewFuel​(InventoryItem item, IsoGameCharacter chr)
    • removeCurrentFuel

      public InventoryItem removeCurrentFuel​(IsoGameCharacter chr)
    • update

      public void update()
      Overrides:
      update in class IsoObject
    • destroy

      public void destroy()
    • getBarricadeOnSameSquare

      public IsoBarricade getBarricadeOnSameSquare()
      Specified by:
      getBarricadeOnSameSquare in interface BarricadeAble
    • getBarricadeOnOppositeSquare

      public IsoBarricade getBarricadeOnOppositeSquare()
      Specified by:
      getBarricadeOnOppositeSquare in interface BarricadeAble
    • isBarricaded

      public boolean isBarricaded()
      Specified by:
      isBarricaded in interface BarricadeAble
    • getBarricadeForCharacter

      public IsoBarricade getBarricadeForCharacter​(IsoGameCharacter chr)
      Specified by:
      getBarricadeForCharacter in interface BarricadeAble
    • getBarricadeOppositeCharacter

      public IsoBarricade getBarricadeOppositeCharacter​(IsoGameCharacter chr)
      Specified by:
      getBarricadeOppositeCharacter in interface BarricadeAble
    • setName

      public void setName​(java.lang.String pName)
      Overrides:
      setName in class IsoObject
    • getName

      public java.lang.String getName()
      Overrides:
      getName in class IsoObject
    • setIsDoor

      public void setIsDoor​(java.lang.Boolean pIsDoor)
    • getTable

      public KahluaTable getTable()
      Overrides:
      getTable in class IsoObject
    • setTable

      public void setTable​(KahluaTable table)
      Overrides:
      setTable in class IsoObject
    • canBePlastered

      public boolean canBePlastered()
    • setCanBePlastered

      public void setCanBePlastered​(boolean canBePlastered)
    • isPaintable

      public boolean isPaintable()
    • setPaintable

      public void setPaintable​(boolean paintable)
    • isLocked

      public boolean isLocked()
    • setIsLocked

      public void setIsLocked​(boolean lock)
    • isThumpable

      public boolean isThumpable()
    • setIsThumpable

      public void setIsThumpable​(boolean thumpable)
    • setIsHoppable

      public void setIsHoppable​(boolean isHoppable)
    • getOpenSprite

      public IsoSprite getOpenSprite()
    • isHoppable

      public boolean isHoppable()
    • setHoppable

      public void setHoppable​(boolean isHoppable)
    • getLightSourceRadius

      public int getLightSourceRadius()
    • setLightSourceRadius

      public void setLightSourceRadius​(int lightSourceRadius)
    • getLightSourceXOffset

      public int getLightSourceXOffset()
    • setLightSourceXOffset

      public void setLightSourceXOffset​(int lightSourceXOffset)
    • getLightSourceYOffset

      public int getLightSourceYOffset()
    • setLightSourceYOffset

      public void setLightSourceYOffset​(int lightSourceYOffset)
    • getLightSourceLife

      public int getLightSourceLife()
    • setLightSourceLife

      public void setLightSourceLife​(int lightSourceLife)
    • isLightSourceOn

      public boolean isLightSourceOn()
    • setLightSourceOn

      public void setLightSourceOn​(boolean lightSourceOn)
    • getLightSource

      public IsoLightSource getLightSource()
    • setLightSource

      public void setLightSource​(IsoLightSource lightSource)
    • toggleLightSource

      public void toggleLightSource​(boolean toggle)
    • getLightSourceFuel

      public java.lang.String getLightSourceFuel()
    • setLightSourceFuel

      public void setLightSourceFuel​(java.lang.String lightSourceFuel)
    • getLifeLeft

      public float getLifeLeft()
    • setLifeLeft

      public void setLifeLeft​(float lifeLeft)
    • getLifeDelta

      public float getLifeDelta()
    • setLifeDelta

      public void setLifeDelta​(float lifeDelta)
    • haveFuel

      public boolean haveFuel()
    • setHaveFuel

      public void setHaveFuel​(boolean haveFuel)
    • syncIsoObjectSend

      public void syncIsoObjectSend​(ByteBufferWriter b)
      Overrides:
      syncIsoObjectSend in class IsoObject
    • syncIsoObject

      public void syncIsoObject​(boolean bRemote, byte val, UdpConnection source, java.nio.ByteBuffer bb)
      Overrides:
      syncIsoObject in class IsoObject
    • addToWorld

      public void addToWorld()
      Overrides:
      addToWorld in class IsoObject
    • removeFromWorld

      public void removeFromWorld()
      Overrides:
      removeFromWorld in class IsoObject
    • saveChange

      public void saveChange​(java.lang.String change, KahluaTable tbl, java.nio.ByteBuffer bb)
      Overrides:
      saveChange in class IsoObject
    • loadChange

      public void loadChange​(java.lang.String change, java.nio.ByteBuffer bb)
      Overrides:
      loadChange in class IsoObject
    • HasCurtains

      public IsoCurtain HasCurtains()
    • getInsideSquare

      public IsoGridSquare getInsideSquare()
    • getOppositeSquare

      public IsoGridSquare getOppositeSquare()
      Specified by:
      getOppositeSquare in interface BarricadeAble
    • getAddSheetSquare

      public IsoGridSquare getAddSheetSquare​(IsoGameCharacter chr)
    • addSheet

      public void addSheet​(IsoGameCharacter chr)
    • getIndoorSquare

      public IsoGridSquare getIndoorSquare()
    • getKeyId

      public int getKeyId()
      Overrides:
      getKeyId in class IsoObject
    • setKeyId

      public void setKeyId​(int keyId, boolean doNetwork)
    • setKeyId

      public void setKeyId​(int keyId)
      Overrides:
      setKeyId in class IsoObject
    • isLockedByKey

      public boolean isLockedByKey()
    • setLockedByKey

      public void setLockedByKey​(boolean lockedByKey)
    • isLockedByPadlock

      public boolean isLockedByPadlock()
    • syncIsoThumpable

      public void syncIsoThumpable()
    • setLockedByPadlock

      public void setLockedByPadlock​(boolean lockedByPadlock)
    • canBeLockByPadlock

      public boolean canBeLockByPadlock()
    • setCanBeLockByPadlock

      public void setCanBeLockByPadlock​(boolean canBeLockByPadlock)
    • getLockedByCode

      public int getLockedByCode()
    • setLockedByCode

      public void setLockedByCode​(int lockedByCode)
    • isLockedToCharacter

      public boolean isLockedToCharacter​(IsoGameCharacter chr)
    • getThumpSound

      public java.lang.String getThumpSound()
    • setThumpSound

      public void setThumpSound​(java.lang.String thumpSound)