Package zombie.iso.objects
Class IsoThumpable
java.lang.Object
zombie.iso.IsoObject
zombie.iso.objects.IsoThumpable
- All Implemented Interfaces:
Serializable
,BarricadeAble
,Thumpable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class zombie.iso.IsoObject
IsoObject.IsoObjectFactory, IsoObject.OutlineShader, IsoObject.VisionResult
-
Field Summary
Modifier and TypeFieldDescriptionboolean
int
int
boolean
int
boolean
int
boolean
int
boolean
int
int
static final Vector2
Fields inherited from class zombie.iso.IsoObject
AttachedAnimSprite, bAlphaForced, bmod, bNeverDoneAlpha, container, Damage, dir, doNotSync, emitter, gmod, highlightFlags, lastRendered, lastRenderedRendered, LowLightingQualityHack, MAX_WALL_SPLATS, name, NoPicking, OBF_Blink, OBF_Highlighted, OBF_HighlightRenderOnce, offsetX, offsetY, OutlineOnMouseover, overlaySprite, overlaySpriteColor, partialThumpDmg, rerouteCollide, rerouteMask, rmod, sheetRope, sheetRopeHealth, sprite, spriteName, square, sx, sy, tintb, tintg, tintr, wallBloodSplats
-
Constructor Summary
ConstructorDescriptionIsoThumpable
(IsoCell cell) IsoThumpable
(IsoCell cell, IsoGridSquare gridSquare, String sprite, boolean north, se.krka.kahlua.vm.KahluaTable table) Create an object than can be interacted by you, survivor or zombie (destroy, barricade, etc.) This one can be a wall, a fence, etc.IsoThumpable
(IsoCell cell, IsoGridSquare gridSquare, String closedSprite, String openSprite, boolean north, se.krka.kahlua.vm.KahluaTable table) Create an object than can be interacted by you, survivor or zombie (destroy, barricade, etc.) This one have a closed/openSprite so it can be a door for example -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSheet
(IsoGameCharacter chr) boolean
addSheetRope
(IsoPlayer player, String itemType) void
boolean
boolean
boolean
boolean
boolean
int
void
createLightSource
(int radius, int offsetX, int offsetY, int offsetZ, int life, String lightSourceFuel, InventoryItem baseItem, IsoGameCharacter chr) void
destroy()
boolean
Can you barricade/unbarricade the itemfloat
getFacingPosition
(Vector2 pos) int
int
getKeyId()
float
float
int
int
int
int
int
int
se.krka.kahlua.vm.KahluaTable
boolean
getNorth()
getSpriteEdge
(boolean ignoreOpen) se.krka.kahlua.vm.KahluaTable
getTable()
float
int
boolean
boolean
haveFuel()
boolean
insertNewFuel
(InventoryItem item, IsoGameCharacter chr) boolean
isAdjacentToSquare
(IsoGridSquare square2) boolean
boolean
boolean
boolean
Can you pass through the item, if false we gonna test the collide default to false (so it collide)boolean
isCorner()
boolean
boolean
boolean
isDoor()
boolean
boolean
isFloor()
boolean
boolean
boolean
isLocked()
boolean
boolean
boolean
boolean
boolean
IsOpen()
boolean
boolean
isStairs()
boolean
boolean
boolean
isWindow()
void
load
(ByteBuffer input, int WorldVersion, boolean IS_DEBUG_SAVE) void
loadChange
(String change, ByteBuffer bb) boolean
onMouseLeftClick
(int x, int y) void
boolean
removeSheetRope
(IsoPlayer player) void
save
(ByteBuffer output, boolean IS_DEBUG_SAVE) void
saveChange
(String change, se.krka.kahlua.vm.KahluaTable tbl, ByteBuffer bb) void
setBlockAllTheSquare
(boolean blockAllTheSquare) void
setBreakSound
(String pBreakSound) The sound that be played if this object is broken default "BreakDoor"void
setCanBarricade
(boolean pCanBarricade) Can you barricade/unbarricade the item default truevoid
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
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
(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
(se.krka.kahlua.vm.KahluaTable modData) void
setOpenSprite
(IsoSprite sprite) void
setPaintable
(boolean paintable) void
void
setSpriteFromName
(String name) void
setTable
(se.krka.kahlua.vm.KahluaTable table) void
setThumpDmg
(Integer pThumpDmg) Numbers of zeds need to hurt the object default 8void
setThumpSound
(String thumpSound) void
syncIsoObject
(boolean bRemote, byte val, UdpConnection source, ByteBuffer bb) void
void
boolean
TestCollide
(IsoMovingObject obj, IsoGridSquare from, IsoGridSquare to) boolean
TestPathfindCollide
(IsoMovingObject obj, IsoGridSquare from, IsoGridSquare to) TestVision
(IsoGridSquare from, IsoGridSquare to) void
Thump
(IsoMovingObject thumper) void
void
void
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, checkAmbientSound, checkHaveElectricity, cleanWallBlood, clearAttachedAnimSprite, Collision, createContainersFromSpriteProperties, customHashCode, Damage, debugPrintout, destroyFence, DirtySlice, doFindExternalWaterSource, DoSpecialTooltip, DoTooltip, factoryClassFromFileInput, factoryFromFileInput, factoryFromFileInput, factoryFromFileInput_OLD, factoryGetClassID, FindExternalWaterSource, FindExternalWaterSource, FindWaterSourceOnSquare, getAlpha, getAlpha, getAttachedAnimSprite, getCell, getChildSprites, getChunk, getContainer, getContainerByEitherType, getContainerByIndex, getContainerByType, getContainerCount, getContainerIndex, getCustomColor, getDamage, getDir, getFacingPositionAlt, getFactoryVehicle, getHighlightColor, getIsSurfaceNormalOffset, getItemContainer, getLastRendered, getLastRenderedRendered, getMaskClickedY, getMovingObjectIndex, getName, getNew, getNew, getObjectIndex, getObjectRenderEffects, getObjectRenderEffectsToApply, getOffsetX, getOffsetY, getOutlineHighlightCol, getOutlineHighlightCol, getOutlineThickness, getOverlaySprite, getOverlaySpriteColor, getPipedFuelAmount, getProperties, getRenderYOffset, getRerouteCollide, getRerouteMask, getRerouteMaskObject, getScriptName, getSpecialObjectIndex, getSprite, getSpriteGridObjects, getSpriteName, getSquare, getStaticMovingObjectIndex, getSurfaceNormalOffset, getSurfaceOffset, getSurfaceOffsetNoTable, getTargetAlpha, getTargetAlpha, getTextureName, getTile, getType, getUsesExternalWaterSource, GetVehicleSlowFactor, getWaterAmount, getWaterMax, getWindRenderEffects, getWorldObjectIndex, getX, getY, getZ, hasExternalWaterSource, HasTooltip, hasWater, haveSpecialTooltip, Hit, HitByVehicle, isAlphaAndTargetZero, isAlphaAndTargetZero, isAlphaZero, isAlphaZero, isBlink, isCharacter, isExistInTheWorld, isHighlighted, isItemAllowedInContainer, isMaskClicked, isMaskClicked, isMovedThumpable, isNoPicking, isNorthHoppable, isOutlineHighlight, isOutlineHighlight, isOutlineHlAttached, isOutlineHlAttached, isOutlineHlBlink, isOutlineHlBlink, isOutlineOnMouseover, isRemoveItemAllowedFromContainer, isSpriteInvisible, isStairsNorth, isStairsObject, isStairsWest, isTableSurface, isTableTopObject, isTaintedWater, isTargetAlphaZero, isZombie, load, loadFromRemoteBuffer, loadFromRemoteBuffer, loadState, onMouseRightClick, onMouseRightReleased, removeAllContainers, RemoveAttachedAnim, RemoveAttachedAnims, removeFromSquare, removeRenderEffect, render, renderAttachedAndOverlaySprites, renderFloorTile, renderFxMask, renderlast, renderObjectPicker, renderWallTile, renderWallTileOnly, replaceItem, reset, reuseGridSquare, save, saveState, sendObjectChange, sendObjectChange, sendObjectChange, Serialize, setAlpha, setAlpha, setAlphaAndTarget, setAlphaAndTarget, setAlphaToTarget, setAttachedAnimSprite, setBlink, setChildSprites, setContainer, setCustomColor, setCustomColor, setDamage, setDefaultCondition, setDir, setDir, setHighlightColor, setHighlightColor, setHighlighted, setHighlighted, setLastRendered, setLastRenderedRendered, setMovedThumpable, setName, SetName, setNoPicking, setOffsetX, setOffsetY, setOutlineHighlight, setOutlineHighlight, setOutlineHighlightCol, setOutlineHighlightCol, setOutlineHighlightCol, setOutlineHighlightCol, setOutlineHlAttached, setOutlineHlAttached, setOutlineHlBlink, setOutlineHlBlink, setOutlineOnMouseover, setOutlineThickness, setOverlaySprite, setOverlaySprite, setOverlaySprite, setOverlaySprite, setOverlaySpriteColor, setPipedFuelAmount, setRenderEffect, setRenderEffect, setRenderYOffset, setRerouteCollide, setRerouteMask, setSpecialTooltip, setSprite, setSquare, setTaintedWater, setTargetAlpha, setTargetAlpha, setType, setUsesExternalWaterSource, setWaterAmount, softReset, transmitCompleteItemToClients, transmitCompleteItemToServer, transmitCustomColor, transmitModData, transmitUpdatedSprite, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToServer, UnCollision, unsetOutlineHighlight, useItemOn, useWater, writeToRemoteBuffer
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface zombie.iso.objects.interfaces.BarricadeAble
getSquare
-
Field Details
-
isDoor
-
isDoorFrame
-
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 -
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
-
tempo
-
-
Constructor Details
-
IsoThumpable
-
IsoThumpable
public IsoThumpable(IsoCell cell, IsoGridSquare gridSquare, String closedSprite, String openSprite, boolean north, se.krka.kahlua.vm.KahluaTable table) Create an object than can be interacted by you, survivor or zombie (destroy, barricade, etc.) This one have a closed/openSprite so it can be a door for example- Parameters:
cell
-gridSquare
-openSprite
-closedSprite
-north
-table
-
-
IsoThumpable
public IsoThumpable(IsoCell cell, IsoGridSquare gridSquare, String sprite, boolean north, se.krka.kahlua.vm.KahluaTable table) Create an object than can be interacted by you, survivor or zombie (destroy, barricade, etc.) This one can be a wall, a fence, etc.- Parameters:
cell
-gridSquare
-sprite
-north
-table
-
-
-
Method Details
-
getModData
public se.krka.kahlua.vm.KahluaTable getModData()- Overrides:
getModData
in classIsoObject
-
setModData
public void setModData(se.krka.kahlua.vm.KahluaTable modData) -
hasModData
public boolean hasModData()- Overrides:
hasModData
in classIsoObject
-
isCanPassThrough
public boolean isCanPassThrough()Can you pass through the item, if false we gonna test the collide default to false (so it collide)- Returns:
-
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
- Overrides:
getObjectName
in classIsoObject
-
setCorner
public void setCorner(boolean pCorner) -
setCanBarricade
public void setCanBarricade(boolean pCanBarricade) Can you barricade/unbarricade the item default true -
getCanBarricade
public boolean getCanBarricade()Can you barricade/unbarricade the item- Returns:
-
setHealth
public void setHealth(int health) -
getHealth
public int getHealth() -
setMaxHealth
public void setMaxHealth(int maxHealth) -
getMaxHealth
public int getMaxHealth() -
setThumpDmg
Numbers of zeds need to hurt the object default 8- Parameters:
pThumpDmg
-
-
getThumpDmg
public int getThumpDmg() -
setBreakSound
The sound that be played if this object is broken default "BreakDoor"- Parameters:
pBreakSound
-
-
getBreakSound
-
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
-
setSpriteFromName
- Overrides:
setSpriteFromName
in classIsoObject
-
setClosedSprite
-
setOpenSprite
-
load
- Overrides:
load
in classIsoObject
- Throws:
IOException
-
save
- Overrides:
save
in classIsoObject
- Throws:
IOException
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyed
in interfaceThumpable
- Overrides:
isDestroyed
in classIsoObject
-
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
-
getThumpableFor
- Specified by:
getThumpableFor
in interfaceThumpable
- Overrides:
getThumpableFor
in classIsoObject
-
getThumpCondition
public float getThumpCondition()- Specified by:
getThumpCondition
in interfaceThumpable
- Overrides:
getThumpCondition
in classIsoObject
-
WeaponHit
-
getOtherSideOfDoor
-
ToggleDoorActual
-
ToggleDoor
-
ToggleDoorSilent
public void ToggleDoorSilent() -
isObstructed
public boolean isObstructed() -
haveSheetRope
public boolean haveSheetRope()- Overrides:
haveSheetRope
in classIsoObject
-
countAddSheetRope
public int countAddSheetRope()- Overrides:
countAddSheetRope
in classIsoObject
-
canAddSheetRope
public boolean canAddSheetRope()- Overrides:
canAddSheetRope
in classIsoObject
-
addSheetRope
- Overrides:
addSheetRope
in classIsoObject
-
removeSheetRope
- Overrides:
removeSheetRope
in classIsoObject
-
createLightSource
public void createLightSource(int radius, int offsetX, int offsetY, int offsetZ, int life, String lightSourceFuel, InventoryItem baseItem, IsoGameCharacter chr) -
insertNewFuel
-
removeCurrentFuel
-
update
public void update() -
destroy
public void destroy() -
getBarricadeOnSameSquare
- Specified by:
getBarricadeOnSameSquare
in interfaceBarricadeAble
-
getBarricadeOnOppositeSquare
- Specified by:
getBarricadeOnOppositeSquare
in interfaceBarricadeAble
-
isBarricaded
public boolean isBarricaded()- Specified by:
isBarricaded
in interfaceBarricadeAble
-
isBarricadeAllowed
public boolean isBarricadeAllowed()- Specified by:
isBarricadeAllowed
in interfaceBarricadeAble
-
getBarricadeForCharacter
- Specified by:
getBarricadeForCharacter
in interfaceBarricadeAble
-
getBarricadeOppositeCharacter
- Specified by:
getBarricadeOppositeCharacter
in interfaceBarricadeAble
-
setIsDoor
-
getTable
public se.krka.kahlua.vm.KahluaTable getTable() -
setTable
public void setTable(se.krka.kahlua.vm.KahluaTable table) -
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()- Overrides:
isHoppable
in classIsoObject
-
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
-
setLightSourceFuel
-
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
- Overrides:
loadChange
in classIsoObject
-
HasCurtains
-
getInsideSquare
-
getOppositeSquare
- Specified by:
getOppositeSquare
in interfaceBarricadeAble
-
isAdjacentToSquare
-
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
-
canClimbOver
-
canClimbThrough
-
getThumpSound
-
setThumpSound
-
getRenderEffectMaster
- Overrides:
getRenderEffectMaster
in classIsoObject
-
getSpriteEdge
-