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, doNotSync, emitter, externalWaterSource, gmod, highlightFlags, keyId, lastRendered, lastRenderedRendered, LowLightingQualityHack, MAX_WALL_SPLATS, name, NoPicking, OBF_Blink, OBF_Highlighted, OBF_HighlightRenderOnce, objectRenderEffects, offsetX, offsetY, OutlineOnMouseover, overlaySprite, overlaySpriteColor, rerouteCollide, rerouteMask, rmod, sheetRope, sheetRopeHealth, sprite, spriteName, square, stCol, sx, sy, targetAlpha, tintb, tintg, tintr, usesExternalWaterSource, wallBloodSplats, windRenderEffects
-
Constructor Summary
Constructors Constructor Description IsoDoor(IsoCell cell)
IsoDoor(IsoCell cell, IsoGridSquare square, java.lang.String string, boolean boolean1)
IsoDoor(IsoCell cell, IsoGridSquare square, java.lang.String string, boolean boolean1, KahluaTable kahluaTable)
IsoDoor(IsoCell cell, IsoGridSquare square, IsoSprite sprite, boolean boolean1)
-
Method Summary
Modifier and Type Method Description void
addRandomBarricades()
void
addSheet(boolean boolean1, IsoGameCharacter gameCharacter)
void
addSheet(IsoGameCharacter gameCharacter)
int
checkKeyId()
void
destroy()
IsoGridSquare
getAddSheetSquare(IsoGameCharacter gameCharacter)
IsoBarricade
getBarricadeForCharacter(IsoGameCharacter gameCharacter)
IsoBarricade
getBarricadeOnOppositeSquare()
IsoBarricade
getBarricadeOnSameSquare()
IsoBarricade
getBarricadeOppositeCharacter(IsoGameCharacter gameCharacter)
static int
getDoubleDoorIndex(IsoObject object)
static IsoObject
getDoubleDoorObject(IsoObject object, int int1)
Vector2
getFacingPosition(Vector2 vector2)
Vector2
getFacingPositionAlt(Vector2 vector2)
int
getHealth()
int
getKeyId()
int
getMaxHealth()
boolean
getNorth()
java.lang.String
getObjectName()
IsoSprite
getOpenSprite()
IsoGridSquare
getOppositeSquare()
IsoGridSquare
getOtherSideOfDoor(IsoGameCharacter gameCharacter)
IsoGridSquare
getSheetSquare()
IsoDoor
HasCurtains()
boolean
haveKey()
boolean
isBarricaded()
boolean
isCurtainOpen()
boolean
isDestroyed()
static boolean
isDoorObstructed(IsoObject object)
static boolean
isDoubleDoorObstructed(IsoObject object)
boolean
isExteriorDoor(IsoGameCharacter gameCharacter)
boolean
isFacingSheet(IsoGameCharacter gameCharacter)
boolean
isLocked()
boolean
isLockedByKey()
boolean
isObstructed()
boolean
IsOpen()
boolean
IsStrengthenedByPushedItems()
void
load(java.nio.ByteBuffer byteBuffer, int int1)
void
loadChange(java.lang.String string, java.nio.ByteBuffer byteBuffer)
void
loadState(java.nio.ByteBuffer byteBuffer)
boolean
onMouseLeftClick(int int1, int int2)
void
removeSheet(IsoGameCharacter gameCharacter)
void
render(float float1, float float2, float float3, ColorInfo colorInfo, boolean boolean1, boolean boolean2)
void
save(java.nio.ByteBuffer byteBuffer)
void
saveChange(java.lang.String string, KahluaTable kahluaTable, java.nio.ByteBuffer byteBuffer)
void
saveState(java.nio.ByteBuffer byteBuffer)
void
setCurtainOpen(boolean boolean1)
void
setHaveKey(boolean boolean1)
void
setHealth(int int1)
void
setIsLocked(boolean boolean1)
void
setKeyId(int int1)
void
setLockedByKey(boolean boolean1)
void
setOpenSprite(IsoSprite sprite)
void
syncDoorKey()
void
syncIsoObject(boolean boolean1, byte byte1, UdpConnection udpConnection, java.nio.ByteBuffer byteBuffer)
void
syncIsoObjectSend(ByteBufferWriter byteBufferWriter)
boolean
TestCollide(IsoMovingObject movingObject, IsoGridSquare square, IsoGridSquare square2)
boolean
TestPathfindCollide(IsoMovingObject movingObject, IsoGridSquare square, IsoGridSquare square2)
IsoObject.VisionResult
TestVision(IsoGridSquare square, IsoGridSquare square2)
void
Thump(IsoMovingObject movingObject)
void
toggleCurtain()
void
ToggleDoor(IsoGameCharacter gameCharacter)
void
ToggleDoorActual(IsoGameCharacter gameCharacter)
void
ToggleDoorSilent()
static void
toggleDoubleDoor(IsoObject object, boolean boolean1)
void
transmitSetCurtainOpen(boolean boolean1)
void
WeaponHit(IsoGameCharacter gameCharacter, HandWeapon handWeapon)
Methods inherited from class zombie.iso.IsoObject
addChild, addSecondaryContainer, addToWorld, AttachAnim, AttachExistingAnim, AttachExistingAnim, AttackObject, checkHaveElectricity, checkMoveWithWind, checkMoveWithWind, cleanWallBlood, Collision, createChecksum, createContainersFromSpriteProperties, customHashCode, Damage, 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, getMovingObjectIndex, getName, getNew, getNew, getObjectIndex, getObjectRenderEffects, getObjectRenderEffectsToApply, getOffsetX, getOffsetY, getOverlaySprite, getOverlaySpriteColor, getProperties, getRenderYOffset, getRerouteCollide, getRerouteMask, getRerouteMaskObject, getScriptName, getSpecialObjectIndex, getSprite, getSpriteName, getSquare, getStaticMovingObjectIndex, getSurfaceNormalOffset, getSurfaceOffset, getTable, getTargetAlpha, getTextureName, getTile, getType, getUsesExternalWaterSource, GetVehicleSlowFactor, getWaterAmount, getWindRenderEffects, getWorldObjectIndex, getX, getY, getZ, hasExternalWaterSource, hasModData, HasTooltip, hasWater, haveSpecialTooltip, Hit, isBlink, isCharacter, isHighlighted, isMaskClicked, isMaskClicked, isNoPicking, isOutlineOnMouseover, isStairsNorth, isStairsObject, isStairsWest, isTableSurface, isTableTopObject, isTaintedWater, isZombie, loadFromRemoteBuffer, loadFromRemoteBuffer, onMouseRightClick, onMouseRightReleased, removeAllContainers, RemoveAttachedAnim, RemoveAttachedAnims, removeFromSquare, removeFromWorld, removeRenderEffect, render, renderFxMask, renderlast, renderObjectPicker, replaceItem, reset, reuseGridSquare, revisionUp, sendObjectChange, sendObjectChange, sendObjectChange, Serialize, setAlpha, setAlphaStep, setAttachedAnimSprite, setBlink, setChildSprites, setContainer, setCustomColor, setCustomColor, setDamage, setDefaultCondition, setDir, setDir, setHighlightColor, setHighlightColor, setHighlighted, setHighlighted, setLastRendered, setLastRenderedRendered, setName, SetName, setNoPicking, setOffsetX, setOffsetY, setOutlineOnMouseover, setOverlaySprite, setOverlaySprite, setOverlaySprite, setOverlaySpriteColor, setRenderEffect, setRenderEffect, setRenderYOffset, setRerouteCollide, setRerouteMask, setSpecialTooltip, setSprite, setSprite, setSpriteFromName, setSquare, setTable, setTaintedWater, setTargetAlpha, setType, setUsesExternalWaterSource, setWaterAmount, softReset, transmitCompleteItemToClients, transmitCompleteItemToServer, transmitCustomColor, transmitModData, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToServer, UnCollision, 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 square, java.lang.String string, boolean boolean1, KahluaTable kahluaTable)
-
-
Method Details
-
getObjectName
public java.lang.String getObjectName()- Overrides:
getObjectName
in classIsoObject
-
render
public void render(float float1, float float2, float float3, ColorInfo colorInfo, boolean boolean1, boolean boolean2) -
load
public void load(java.nio.ByteBuffer byteBuffer, int int1) throws java.io.IOException -
save
public void save(java.nio.ByteBuffer byteBuffer) throws java.io.IOException -
saveState
public void saveState(java.nio.ByteBuffer byteBuffer) -
loadState
public void loadState(java.nio.ByteBuffer byteBuffer) -
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyed
in interfaceThumpable
-
IsOpen
public boolean IsOpen() -
IsStrengthenedByPushedItems
public boolean IsStrengthenedByPushedItems() -
onMouseLeftClick
public boolean onMouseLeftClick(int int1, int int2)- Overrides:
onMouseLeftClick
in classIsoObject
-
TestPathfindCollide
public boolean TestPathfindCollide(IsoMovingObject movingObject, IsoGridSquare square, IsoGridSquare square2)- Overrides:
TestPathfindCollide
in classIsoObject
-
TestCollide
public boolean TestCollide(IsoMovingObject movingObject, IsoGridSquare square, IsoGridSquare square2)- Overrides:
TestCollide
in classIsoObject
-
TestVision
- Overrides:
TestVision
in classIsoObject
-
Thump
-
WeaponHit
-
destroy
public void destroy() -
getOtherSideOfDoor
-
isExteriorDoor
-
ToggleDoorActual
-
syncIsoObjectSend
- Overrides:
syncIsoObjectSend
in classIsoObject
-
syncIsoObject
public void syncIsoObject(boolean boolean1, byte byte1, UdpConnection udpConnection, java.nio.ByteBuffer byteBuffer)- 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 boolean1) -
getOpenSprite
-
setOpenSprite
-
getKeyId
public int getKeyId() -
syncDoorKey
public void syncDoorKey() -
setKeyId
public void setKeyId(int int1) -
isLockedByKey
public boolean isLockedByKey() -
setLockedByKey
public void setLockedByKey(boolean boolean1) -
haveKey
public boolean haveKey() -
setHaveKey
public void setHaveKey(boolean boolean1) -
getOppositeSquare
- Specified by:
getOppositeSquare
in interfaceBarricadeAble
-
checkKeyId
public int checkKeyId() -
setHealth
public void setHealth(int int1) -
HasCurtains
-
isCurtainOpen
public boolean isCurtainOpen() -
setCurtainOpen
public void setCurtainOpen(boolean boolean1) -
transmitSetCurtainOpen
public void transmitSetCurtainOpen(boolean boolean1) -
toggleCurtain
public void toggleCurtain() -
addSheet
-
addSheet
-
removeSheet
-
getAddSheetSquare
-
getSheetSquare
-
getHealth
public int getHealth() -
getMaxHealth
public int getMaxHealth() -
isFacingSheet
-
saveChange
public void saveChange(java.lang.String string, KahluaTable kahluaTable, java.nio.ByteBuffer byteBuffer)- Overrides:
saveChange
in classIsoObject
-
loadChange
public void loadChange(java.lang.String string, java.nio.ByteBuffer byteBuffer)- Overrides:
loadChange
in classIsoObject
-
addRandomBarricades
public void addRandomBarricades() -
isObstructed
public boolean isObstructed() -
isDoorObstructed
-
toggleDoubleDoor
-
getDoubleDoorIndex
-
getDoubleDoorObject
-
isDoubleDoorObstructed
-