Package zombie.iso.objects
Class IsoDoor
java.lang.Object
zombie.iso.IsoObject
zombie.iso.objects.IsoDoor
- All Implemented Interfaces:
java.io.Serializable
,BarricadeAble
,Thumpable
public class IsoDoor extends IsoObject implements BarricadeAble, Thumpable
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IsoDoor.DoorType
Nested classes/interfaces inherited from class zombie.iso.IsoObject
IsoObject.VisionResult
-
Field Summary
Fields Modifier and Type Field Description int
Health
boolean
Locked
int
MaxHealth
boolean
north
int
OldNumPlanks
boolean
open
int
PushedMaxStrength
int
PushedStrength
static Vector2
tempo
IsoDoor.DoorType
type
Fields inherited from class zombie.iso.IsoObject
alpha, alphaStep, AttachedAnimSprite, AttachedAnimSpriteActual, bmod, bNeverDoneAlpha, container, Damage, dir, emitter, externalWaterSource, gmod, highlighted, keyId, lastRendered, lastRenderedRendered, MAX_WALL_SPLATS, name, 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 IsoDoor(IsoCell cell)
IsoDoor(IsoCell cell, IsoGridSquare gridSquare, java.lang.String gid, boolean north)
IsoDoor(IsoCell cell, IsoGridSquare gridSquare, java.lang.String gid, boolean north, KahluaTable table)
IsoDoor(IsoCell cell, IsoGridSquare gridSquare, IsoSprite gid, boolean north)
-
Method Summary
Methods inherited from class zombie.iso.IsoObject
addChild, addSecondaryContainer, addToWorld, 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, getHighlightColor, getIsSurfaceNormalOffset, getItemContainer, getLastRendered, getLastRenderedRendered, getMaskClickedY, getMD5Checksum, getModData, getName, getNew, getObjectIndex, getOffsetX, getOffsetY, getOverlaySprite, getOverlaySpriteColor, getProperties, getRenderYOffset, getRerouteCollide, getRerouteMask, getRerouteMaskObject, getScriptName, getSpecialObjectIndex, getSprite, getSpriteName, getSquare, getStaticMovingObjectIndex, getSurfaceNormalOffset, getSurfaceOffset, getTable, getTargetAlpha, getTextureName, getTile, getType, getUsesExternalWaterSource, getWaterAmount, getWorldObjectIndex, getX, getY, getZ, hasExternalWaterSource, hasModData, HasTooltip, hasWater, haveSpecialTooltip, isBlink, isCharacter, isMaskClicked, isMaskClicked, isNoPicking, isOutlineOnMouseover, isTableSurface, isTableTopObject, isZombie, loadFromRemoteBuffer, loadFromRemoteBuffer, onMouseRightClick, onMouseRightReleased, removeAllContainers, RemoveAttachedAnim, RemoveAttachedAnims, removeFromSquare, removeFromWorld, 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, SetName, setNoPicking, setOffsetX, setOffsetY, setOutlineOnMouseover, setOverlaySprite, setOverlaySprite, setOverlaySprite, setOverlaySpriteColor, setRenderYOffset, setRerouteCollide, setRerouteMask, setSpecialTooltip, setSprite, setSprite, setSpriteFromName, setSquare, setTable, setTargetAlpha, setType, setUsesExternalWaterSource, setWaterAmount, transmitCompleteItemToClients, transmitCompleteItemToServer, transmitCustomColor, transmitModData, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToServer, update, 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
-
Health
public int Health -
Locked
public boolean Locked -
MaxHealth
public int MaxHealth -
PushedMaxStrength
public int PushedMaxStrength -
PushedStrength
public int PushedStrength -
type
-
north
public boolean north -
open
public boolean open -
OldNumPlanks
public int OldNumPlanks -
tempo
-
-
Constructor Details
-
IsoDoor
-
IsoDoor
-
IsoDoor
-
IsoDoor
public IsoDoor(IsoCell cell, IsoGridSquare gridSquare, java.lang.String gid, boolean north, KahluaTable table)
-
-
Method Details
-
getObjectName
public java.lang.String getObjectName()- Overrides:
getObjectName
in classIsoObject
-
render
public void render(float x, float y, float z, ColorInfo info, boolean bDoAttached, boolean bWallLightingPass) -
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
-
destroy
public void destroy() -
getOtherSideOfDoor
-
isExteriorDoor
-
ToggleDoorActual
-
syncIsoObjectSend
- Overrides:
syncIsoObjectSend
in classIsoObject
-
syncIsoObject
- Overrides:
syncIsoObject
in classIsoObject
-
ToggleDoor
-
ToggleDoorSilent
public void ToggleDoorSilent() -
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
-
isLocked
public boolean isLocked() -
getNorth
public boolean getNorth()- Specified by:
getNorth
in interfaceBarricadeAble
-
getFacingPosition
- Overrides:
getFacingPosition
in classIsoObject
-
getFacingPositionAlt
- Overrides:
getFacingPositionAlt
in classIsoObject
-
setIsLocked
public void setIsLocked(boolean lock) -
getOpenSprite
-
setOpenSprite
-
getKeyId
public int getKeyId() -
syncDoorKey
public void syncDoorKey() -
setKeyId
public void setKeyId(int keyId) -
isLockedByKey
public boolean isLockedByKey() -
setLockedByKey
public void setLockedByKey(boolean lockedByKey) -
haveKey
public boolean haveKey() -
setHaveKey
public void setHaveKey(boolean haveKey) -
getOppositeSquare
- Specified by:
getOppositeSquare
in interfaceBarricadeAble
-
checkKeyId
public int checkKeyId() -
setHealth
public void setHealth(int Health) -
HasCurtains
-
isCurtainOpen
public boolean isCurtainOpen() -
setCurtainOpen
public void setCurtainOpen(boolean open) -
transmitSetCurtainOpen
public void transmitSetCurtainOpen(boolean open) -
toggleCurtain
public void toggleCurtain() -
addSheet
-
addSheet
-
removeSheet
-
getAddSheetSquare
-
getSheetSquare
-
isFacingSheet
-
saveChange
- Overrides:
saveChange
in classIsoObject
-
loadChange
public void loadChange(java.lang.String change, java.nio.ByteBuffer bb)- Overrides:
loadChange
in classIsoObject
-
addRandomBarricades
public void addRandomBarricades()
-