Package zombie.iso.objects
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
-
Nested Class Summary
Nested classes/interfaces inherited from class zombie.iso.IsoObject
IsoObject.VisionResult
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
breakSound
int
Health
java.lang.Boolean
isDoor
java.lang.Boolean
isDoorFrame
int
keyId
boolean
Locked
int
lockedByCode
boolean
lockedByPadlock
int
MaxHealth
java.lang.String
name
boolean
north
int
OldNumPlanks
boolean
open
int
PushedMaxStrength
int
PushedStrength
static Vector2
tempo
java.lang.String
thumpSound
Fields inherited from class zombie.iso.IsoObject
alpha, alphaStep, AttachedAnimSprite, AttachedAnimSpriteActual, bmod, bNeverDoneAlpha, container, Damage, dir, emitter, externalWaterSource, gmod, highlighted, lastRendered, lastRenderedRendered, MAX_WALL_SPLATS, NoPicking, offsetX, offsetY, OutlineOnMouseover, overlaySprite, overlaySpriteColor, rerouteCollide, rerouteMask, rmod, sheetRope, sheetRopeHealth, sprite, spriteName, square, stCol, sx, sy, targetAlpha, tintb, tintg, tintr, usesExternalWaterSource, wallBloodSplats
-
Constructor Summary
Constructors Constructor Description IsoThumpable(IsoCell cell)
IsoThumpable(IsoCell cell, IsoGridSquare gridSquare, java.lang.String sprite, boolean north, KahluaTable table)
IsoThumpable(IsoCell cell, IsoGridSquare gridSquare, java.lang.String closedSprite, java.lang.String openSprite, boolean north, KahluaTable table)
-
Method Summary
Modifier and Type Method Description void
addSheet(IsoGameCharacter chr)
boolean
addSheetRope(IsoPlayer player, java.lang.String itemType)
void
addToWorld()
boolean
canAddSheetRope()
boolean
canBeLockByPadlock()
boolean
canBePlastered()
int
countAddSheetRope()
void
createLightSource(int radius, int offsetX, int offsetY, int offsetZ, int life, java.lang.String lightSourceFuel, InventoryItem baseItem, IsoGameCharacter chr)
IsoGridSquare
getAddSheetSquare(IsoGameCharacter chr)
IsoBarricade
getBarricadeForCharacter(IsoGameCharacter chr)
IsoBarricade
getBarricadeOnOppositeSquare()
IsoBarricade
getBarricadeOnSameSquare()
IsoBarricade
getBarricadeOppositeCharacter(IsoGameCharacter chr)
boolean
getCanBarricade()
float
getCrossSpeed()
Vector2
getFacingPosition(Vector2 pos)
int
getHealth()
IsoGridSquare
getIndoorSquare()
IsoGridSquare
getInsideSquare()
int
getKeyId()
float
getLifeDelta()
float
getLifeLeft()
IsoLightSource
getLightSource()
java.lang.String
getLightSourceFuel()
int
getLightSourceLife()
int
getLightSourceRadius()
int
getLightSourceXOffset()
int
getLightSourceYOffset()
int
getLockedByCode()
int
getMaxHealth()
KahluaTable
getModData()
java.lang.String
getName()
boolean
getNorth()
java.lang.String
getObjectName()
IsoSprite
getOpenSprite()
IsoGridSquare
getOppositeSquare()
IsoGridSquare
getOtherSideOfDoor(IsoGameCharacter chr)
KahluaTable
getTable()
java.lang.String
getThumpSound()
IsoCurtain
HasCurtains()
boolean
hasModData()
boolean
haveFuel()
boolean
haveSheetRope()
InventoryItem
insertNewFuel(InventoryItem item, IsoGameCharacter chr)
boolean
isBarricaded()
boolean
isBlockAllTheSquare()
boolean
isCanPassThrough()
boolean
isCorner()
boolean
isDestroyed()
boolean
isDismantable()
boolean
isDoor()
boolean
isDoorFrame()
boolean
isFloor()
boolean
isHoppable()
boolean
isLightSourceOn()
boolean
isLocked()
boolean
isLockedByKey()
boolean
isLockedByPadlock()
boolean
isLockedToCharacter(IsoGameCharacter chr)
boolean
IsOpen()
boolean
isPaintable()
boolean
isStairs()
boolean
IsStrengthenedByPushedItems()
boolean
isThumpable()
boolean
isWindow()
void
load(java.nio.ByteBuffer input, int WorldVersion)
void
loadChange(java.lang.String change, java.nio.ByteBuffer bb)
boolean
onMouseLeftClick(int x, int y)
InventoryItem
removeCurrentFuel(IsoGameCharacter chr)
void
removeFromWorld()
boolean
removeSheetRope(IsoPlayer player)
void
save(java.nio.ByteBuffer output)
void
saveChange(java.lang.String change, KahluaTable tbl, java.nio.ByteBuffer bb)
void
setBlockAllTheSquare(boolean blockAllTheSquare)
void
setBreakSound(java.lang.String pBreakSound)
void
setCanBarricade(boolean pCanBarricade)
void
setCanBeLockByPadlock(boolean canBeLockByPadlock)
void
setCanBePlastered(boolean canBePlastered)
void
setCanPassThrough(boolean pCanPassThrough)
void
setClosedSprite(IsoSprite sprite)
void
setCorner(boolean pCorner)
void
setCrossSpeed(float pCrossSpeed)
void
setHaveFuel(boolean haveFuel)
void
setHealth(int health)
void
setHoppable(boolean isHoppable)
void
setIsContainer(boolean pIsContainer)
void
setIsDismantable(boolean dismantable)
void
setIsDoor(boolean pIsDoor)
void
setIsDoor(java.lang.Boolean pIsDoor)
void
setIsDoorFrame(boolean pIsDoorFrame)
void
setIsFloor(boolean pIsFloor)
void
setIsHoppable(boolean isHoppable)
void
setIsLocked(boolean lock)
void
setIsStairs(boolean pStairs)
void
setIsThumpable(boolean thumpable)
void
setKeyId(int keyId)
void
setKeyId(int keyId, boolean doNetwork)
void
setLifeDelta(float lifeDelta)
void
setLifeLeft(float lifeLeft)
void
setLightSource(IsoLightSource lightSource)
void
setLightSourceFuel(java.lang.String lightSourceFuel)
void
setLightSourceLife(int lightSourceLife)
void
setLightSourceOn(boolean lightSourceOn)
void
setLightSourceRadius(int lightSourceRadius)
void
setLightSourceXOffset(int lightSourceXOffset)
void
setLightSourceYOffset(int lightSourceYOffset)
void
setLockedByCode(int lockedByCode)
void
setLockedByKey(boolean lockedByKey)
void
setLockedByPadlock(boolean lockedByPadlock)
void
setMaxHealth(int maxHealth)
void
setModData(KahluaTable modData)
void
setName(java.lang.String pName)
void
setOpenSprite(IsoSprite sprite)
void
setPaintable(boolean paintable)
void
setSprite(java.lang.String sprite)
void
setSpriteFromName(java.lang.String name)
void
setTable(KahluaTable table)
void
setThumpDmg(java.lang.Integer pThumpDmg)
void
setThumpSound(java.lang.String thumpSound)
void
syncIsoObject(boolean bRemote, byte val, UdpConnection source, java.nio.ByteBuffer bb)
void
syncIsoObjectSend(ByteBufferWriter b)
void
syncIsoThumpable()
boolean
TestCollide(IsoMovingObject obj, IsoGridSquare from, IsoGridSquare to)
boolean
TestPathfindCollide(IsoMovingObject obj, IsoGridSquare from, IsoGridSquare to)
IsoObject.VisionResult
TestVision(IsoGridSquare from, IsoGridSquare to)
void
Thump(IsoMovingObject thumper)
void
ToggleDoor(IsoGameCharacter chr)
void
ToggleDoorActual(IsoGameCharacter chr)
void
ToggleDoorSilent()
void
toggleLightSource(boolean toggle)
void
update()
void
WeaponHit(IsoGameCharacter owner, HandWeapon weapon)
Methods inherited from class zombie.iso.IsoObject
addChild, addSecondaryContainer, AttachAnim, AttachExistingAnim, AttachExistingAnim, AttackObject, checkHaveElectricity, createChecksum, createContainersFromSpriteProperties, debugPrintout, DirtySlice, DoChecksumCheck, DoChecksumCheck, doFindExternalWaterSource, DoSpecialTooltip, DoTooltip, factoryClassFromFileInput, factoryFromFileInput, factoryFromFileInput, FindExternalWaterSource, getAlpha, getAlphaStep, getAttachedAnimSprite, getCell, getChildSprites, getContainer, getContainerByEitherType, getContainerByIndex, getContainerByType, getContainerCount, getContainerIndex, getCustomColor, getDamage, getDir, getFacingPositionAlt, getHighlightColor, getIsSurfaceNormalOffset, getItemContainer, getLastRendered, getLastRenderedRendered, getMaskClickedY, getMD5Checksum, getNew, getObjectIndex, getOffsetX, getOffsetY, getOverlaySprite, getOverlaySpriteColor, getProperties, getRenderYOffset, getRerouteCollide, getRerouteMask, getRerouteMaskObject, getScriptName, getSpecialObjectIndex, getSprite, getSpriteName, getSquare, getStaticMovingObjectIndex, getSurfaceNormalOffset, getSurfaceOffset, getTargetAlpha, getTextureName, getTile, getType, getUsesExternalWaterSource, getWaterAmount, getWorldObjectIndex, getX, getY, getZ, hasExternalWaterSource, HasTooltip, hasWater, haveSpecialTooltip, isBlink, isCharacter, isMaskClicked, isMaskClicked, isNoPicking, isOutlineOnMouseover, isTableSurface, isTableTopObject, isZombie, loadFromRemoteBuffer, loadFromRemoteBuffer, onMouseRightClick, onMouseRightReleased, removeAllContainers, RemoveAttachedAnim, RemoveAttachedAnims, removeFromSquare, render, render, renderlast, renderObjectPicker, replaceItem, reset, reuseGridSquare, sendObjectChange, sendObjectChange, sendObjectChange, Serialize, setAlpha, setAlphaStep, setAttachedAnimSprite, setBlink, setChildSprites, setContainer, setCustomColor, setCustomColor, setDamage, setDefaultCondition, setDir, setDir, setHighlightColor, setHighlighted, setLastRendered, setLastRenderedRendered, SetName, setNoPicking, setOffsetX, setOffsetY, setOutlineOnMouseover, setOverlaySprite, setOverlaySprite, setOverlaySprite, setOverlaySpriteColor, setRenderYOffset, setRerouteCollide, setRerouteMask, setSpecialTooltip, setSprite, setSquare, setTargetAlpha, setType, setUsesExternalWaterSource, setWaterAmount, transmitCompleteItemToClients, transmitCompleteItemToServer, transmitCustomColor, transmitModData, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToServer, useItemOn, useWater, writeToRemoteBuffer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface zombie.iso.objects.interfaces.BarricadeAble
getSquare
-
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 -
keyId
public int keyId -
lockedByPadlock
public boolean lockedByPadlock -
lockedByCode
public int lockedByCode -
OldNumPlanks
public int OldNumPlanks -
thumpSound
public java.lang.String thumpSound -
tempo
-
-
Constructor Details
-
IsoThumpable
-
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
- Overrides:
getModData
in classIsoObject
-
setModData
-
hasModData
public boolean hasModData()- Overrides:
hasModData
in classIsoObject
-
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 classIsoObject
-
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 interfaceBarricadeAble
-
getFacingPosition
- Overrides:
getFacingPosition
in classIsoObject
-
isDoorFrame
public boolean isDoorFrame() -
setIsDoor
public void setIsDoor(boolean pIsDoor) -
setIsDoorFrame
public void setIsDoorFrame(boolean pIsDoorFrame) -
setSprite
public void setSprite(java.lang.String sprite) -
setSpriteFromName
public void setSpriteFromName(java.lang.String name)- Overrides:
setSpriteFromName
in classIsoObject
-
setClosedSprite
-
setOpenSprite
-
load
public void load(java.nio.ByteBuffer input, int WorldVersion) throws java.io.IOException -
save
public void save(java.nio.ByteBuffer output) throws java.io.IOException -
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyed
in interfaceThumpable
-
IsOpen
public boolean IsOpen() -
IsStrengthenedByPushedItems
public boolean IsStrengthenedByPushedItems() -
onMouseLeftClick
public boolean onMouseLeftClick(int x, int y)- Overrides:
onMouseLeftClick
in classIsoObject
-
TestPathfindCollide
- Overrides:
TestPathfindCollide
in classIsoObject
-
TestCollide
- Overrides:
TestCollide
in classIsoObject
-
TestVision
- Overrides:
TestVision
in classIsoObject
-
Thump
-
WeaponHit
-
getOtherSideOfDoor
-
ToggleDoorActual
-
ToggleDoor
-
ToggleDoorSilent
public void ToggleDoorSilent() -
haveSheetRope
public boolean haveSheetRope() -
countAddSheetRope
public int countAddSheetRope() -
canAddSheetRope
public boolean canAddSheetRope() -
addSheetRope
-
removeSheetRope
-
createLightSource
public void createLightSource(int radius, int offsetX, int offsetY, int offsetZ, int life, java.lang.String lightSourceFuel, InventoryItem baseItem, IsoGameCharacter chr) -
insertNewFuel
-
removeCurrentFuel
-
update
public void update() -
getBarricadeOnSameSquare
- Specified by:
getBarricadeOnSameSquare
in interfaceBarricadeAble
-
getBarricadeOnOppositeSquare
- Specified by:
getBarricadeOnOppositeSquare
in interfaceBarricadeAble
-
isBarricaded
public boolean isBarricaded()- Specified by:
isBarricaded
in interfaceBarricadeAble
-
getBarricadeForCharacter
- Specified by:
getBarricadeForCharacter
in interfaceBarricadeAble
-
getBarricadeOppositeCharacter
- Specified by:
getBarricadeOppositeCharacter
in interfaceBarricadeAble
-
setName
public void setName(java.lang.String pName) -
getName
public java.lang.String getName() -
setIsDoor
public void setIsDoor(java.lang.Boolean pIsDoor) -
getTable
-
setTable
-
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
-
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
-
setLightSource
-
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
- Overrides:
syncIsoObjectSend
in classIsoObject
-
syncIsoObject
- Overrides:
syncIsoObject
in classIsoObject
-
addToWorld
public void addToWorld()- Overrides:
addToWorld
in classIsoObject
-
removeFromWorld
public void removeFromWorld()- Overrides:
removeFromWorld
in classIsoObject
-
saveChange
- Overrides:
saveChange
in classIsoObject
-
loadChange
public void loadChange(java.lang.String change, java.nio.ByteBuffer bb)- Overrides:
loadChange
in classIsoObject
-
HasCurtains
-
getInsideSquare
-
getOppositeSquare
- Specified by:
getOppositeSquare
in interfaceBarricadeAble
-
getAddSheetSquare
-
addSheet
-
getIndoorSquare
-
getKeyId
public int getKeyId() -
setKeyId
public void setKeyId(int keyId, boolean doNetwork) -
setKeyId
public void setKeyId(int keyId) -
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
-
getThumpSound
public java.lang.String getThumpSound() -
setThumpSound
public void setThumpSound(java.lang.String thumpSound)
-