Package zombie.iso.objects
Class IsoWindow
java.lang.Object
zombie.iso.IsoObject
zombie.iso.objects.IsoWindow
- 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 TypeFieldDescriptionint
boolean
int
boolean
int
boolean
boolean
Fields inherited from class zombie.iso.IsoObject
AttachedAnimSprite, bAlphaForced, bmod, bNeverDoneAlpha, container, Damage, dir, doNotSync, emitter, gmod, highlightFlags, keyId, 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, table, tintb, tintg, tintr, wallBloodSplats
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddBarricadesDebug
(int numPlanks, boolean metal) void
addBrokenGlass
(boolean onOppositeSquare) void
void
void
addSheet
(IsoGameCharacter chr) boolean
addSheetRope
(IsoPlayer player, String itemType) static boolean
addSheetRope
(IsoPlayer player, IsoGridSquare sq, boolean north, String itemType) void
void
AttackObject
(IsoGameCharacter owner) boolean
static boolean
canAddSheetRope
(IsoGridSquare sq, boolean north) static boolean
boolean
static boolean
canClimbThroughHelper
(IsoGameCharacter chr, IsoGridSquare sq, IsoGridSquare oppositeSq, boolean north) int
static int
countAddSheetRope
(IsoGridSquare sq, boolean north) void
Damage
(float amount) void
Damage
(float amount, boolean isZombie) void
Damage
(float amount, IsoMovingObject chr) getFacingPosition
(Vector2 pos) boolean
getNorth()
float
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isLocked()
boolean
IsOpen()
boolean
static boolean
boolean
static boolean
static boolean
isTopOfSheetRopeHere
(IsoGridSquare sq, boolean north) void
load
(ByteBuffer input, int WorldVersion, boolean IS_DEBUG_SAVE) void
loadState
(ByteBuffer bb) boolean
onMouseLeftClick
(int x, int y) void
void
void
void
boolean
removeSheetRope
(IsoPlayer player) static boolean
removeSheetRope
(IsoPlayer player, IsoGridSquare square, boolean north) void
render
(float x, float y, float z, ColorInfo col, boolean bDoAttached, boolean bWallLightingPass, Shader shader) void
save
(ByteBuffer output, boolean IS_DEBUG_SAVE) void
saveState
(ByteBuffer bb) void
setGlassRemoved
(boolean removed) void
setIsLocked
(boolean lock) void
setOpenSprite
(IsoSprite sprite) void
setPermaLocked
(Boolean permaLock) void
setSmashed
(boolean destroyed) void
setSmashedSprite
(IsoSprite sprite) void
void
smashWindow
(boolean bRemote) void
smashWindow
(boolean bRemote, boolean doAlarm) void
syncIsoObject
(boolean bRemote, byte val, UdpConnection source, ByteBuffer bb) void
boolean
TestCollide
(IsoMovingObject obj, IsoGridSquare from, IsoGridSquare to) TestVision
(IsoGridSquare from, IsoGridSquare to) void
Thump
(IsoMovingObject thumper) void
void
WeaponHit
(IsoGameCharacter owner, HandWeapon weapon) Methods inherited from class zombie.iso.IsoObject
addChild, addSecondaryContainer, AttachAnim, AttachExistingAnim, AttachExistingAnim, checkAmbientSound, checkHaveElectricity, cleanWallBlood, clearAttachedAnimSprite, Collision, createContainersFromSpriteProperties, customHashCode, 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, getKeyId, getLastRendered, getLastRenderedRendered, getMaskClickedY, getModData, getMovingObjectIndex, getName, getNew, getNew, getObjectIndex, getObjectRenderEffects, getObjectRenderEffectsToApply, getOffsetX, getOffsetY, getOutlineHighlightCol, getOutlineHighlightCol, getOutlineThickness, getOverlaySprite, getOverlaySpriteColor, getPipedFuelAmount, getProperties, getRenderEffectMaster, getRenderYOffset, getRerouteCollide, getRerouteMask, getRerouteMaskObject, getScriptName, getSpecialObjectIndex, getSprite, getSpriteGridObjects, getSpriteName, getSquare, getStaticMovingObjectIndex, getSurfaceNormalOffset, getSurfaceOffset, getSurfaceOffsetNoTable, getTable, getTargetAlpha, getTargetAlpha, getTextureName, getTile, getType, getUsesExternalWaterSource, GetVehicleSlowFactor, getWaterAmount, getWaterMax, getWindRenderEffects, getWorldObjectIndex, getX, getY, getZ, hasExternalWaterSource, hasModData, HasTooltip, hasWater, haveSpecialTooltip, Hit, HitByVehicle, isAlphaAndTargetZero, isAlphaAndTargetZero, isAlphaZero, isAlphaZero, isBlink, isCharacter, isExistInTheWorld, isFloor, isHighlighted, isHoppable, isItemAllowedInContainer, isMaskClicked, isMaskClicked, isMovedThumpable, isNoPicking, isNorthHoppable, isOutlineHighlight, isOutlineHighlight, isOutlineHlAttached, isOutlineHlAttached, isOutlineHlBlink, isOutlineHlBlink, isOutlineOnMouseover, isRemoveItemAllowedFromContainer, isSpriteInvisible, isStairsNorth, isStairsObject, isStairsWest, isTableSurface, isTableTopObject, isTaintedWater, isTargetAlphaZero, isZombie, load, loadChange, loadFromRemoteBuffer, loadFromRemoteBuffer, onMouseRightClick, onMouseRightReleased, removeAllContainers, RemoveAttachedAnim, RemoveAttachedAnims, removeFromSquare, removeRenderEffect, renderAttachedAndOverlaySprites, renderFloorTile, renderFxMask, renderlast, renderObjectPicker, renderWallTile, renderWallTileOnly, replaceItem, reset, reuseGridSquare, save, saveChange, sendObjectChange, sendObjectChange, sendObjectChange, Serialize, setAlpha, setAlpha, setAlphaAndTarget, setAlphaAndTarget, setAlphaToTarget, setAttachedAnimSprite, setBlink, setChildSprites, setContainer, setCustomColor, setCustomColor, setDamage, setDefaultCondition, setDir, setDir, setHighlightColor, setHighlightColor, setHighlighted, setHighlighted, setKeyId, 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, setSprite, setSpriteFromName, setSquare, setTable, setTaintedWater, setTargetAlpha, setTargetAlpha, setType, setUsesExternalWaterSource, setWaterAmount, softReset, TestPathfindCollide, transmitCompleteItemToClients, transmitCompleteItemToServer, transmitCustomColor, transmitModData, transmitUpdatedSprite, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToServer, UnCollision, unsetOutlineHighlight, update, 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
-
Health
public int Health -
MaxHealth
public int MaxHealth -
type
-
north
public boolean north -
Locked
public boolean Locked -
PermaLocked
public boolean PermaLocked -
open
public boolean open -
OldNumPlanks
public int OldNumPlanks
-
-
Constructor Details
-
IsoWindow
-
IsoWindow
-
-
Method Details
-
HasCurtains
-
getIndoorSquare
-
getAddSheetSquare
-
AttackObject
- Overrides:
AttackObject
in classIsoObject
-
getInsideSquare
-
getOppositeSquare
- Specified by:
getOppositeSquare
in interfaceBarricadeAble
-
isExterior
public boolean isExterior() -
getObjectName
- Overrides:
getObjectName
in classIsoObject
-
WeaponHit
-
smashWindow
public void smashWindow(boolean bRemote, boolean doAlarm) -
smashWindow
public void smashWindow(boolean bRemote) -
smashWindow
public void smashWindow() -
addBrokenGlass
-
addBrokenGlass
public void addBrokenGlass(boolean onOppositeSquare) -
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyed
in interfaceThumpable
- Overrides:
isDestroyed
in classIsoObject
-
IsOpen
public boolean IsOpen() -
onMouseLeftClick
public boolean onMouseLeftClick(int x, int y) - Overrides:
onMouseLeftClick
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
-
load
- Overrides:
load
in classIsoObject
- Throws:
IOException
-
addToWorld
public void addToWorld()- Overrides:
addToWorld
in classIsoObject
-
removeFromWorld
public void removeFromWorld()- Overrides:
removeFromWorld
in classIsoObject
-
save
- Overrides:
save
in classIsoObject
- Throws:
IOException
-
saveState
- Overrides:
saveState
in classIsoObject
- Throws:
IOException
-
loadState
- Overrides:
loadState
in classIsoObject
- Throws:
IOException
-
render
-
openCloseCurtain
-
removeSheet
-
addSheet
-
ToggleWindow
-
syncIsoObjectSend
- Overrides:
syncIsoObjectSend
in classIsoObject
-
syncIsoObject
- Overrides:
syncIsoObject
in classIsoObject
-
isTopOfSheetRopeHere
-
isTopOfSheetRopeHere
-
haveSheetRope
public boolean haveSheetRope()- Overrides:
haveSheetRope
in classIsoObject
-
isSheetRopeHere
-
canClimbHere
-
countAddSheetRope
-
countAddSheetRope
public int countAddSheetRope()- Overrides:
countAddSheetRope
in classIsoObject
-
canAddSheetRope
-
canAddSheetRope
public boolean canAddSheetRope()- Overrides:
canAddSheetRope
in classIsoObject
-
addSheetRope
- Overrides:
addSheetRope
in classIsoObject
-
addSheetRope
public static boolean addSheetRope(IsoPlayer player, IsoGridSquare sq, boolean north, String itemType) -
removeSheetRope
- Overrides:
removeSheetRope
in classIsoObject
-
removeSheetRope
-
Damage
public void Damage(float amount) -
Damage
public void Damage(float amount, boolean isZombie) -
Damage
-
isLocked
public boolean isLocked() -
isSmashed
public boolean isSmashed() -
isInvincible
public boolean isInvincible() -
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
-
getNorth
public boolean getNorth()- Specified by:
getNorth
in interfaceBarricadeAble
-
getFacingPosition
- Overrides:
getFacingPosition
in classIsoObject
-
setIsLocked
public void setIsLocked(boolean lock) -
getOpenSprite
-
setOpenSprite
-
setSmashed
public void setSmashed(boolean destroyed) -
getSmashedSprite
-
setSmashedSprite
-
setPermaLocked
-
isPermaLocked
public boolean isPermaLocked() -
canClimbThroughHelper
public static boolean canClimbThroughHelper(IsoGameCharacter chr, IsoGridSquare sq, IsoGridSquare oppositeSq, boolean north) -
canClimbThrough
-
getFirstCharacterClimbingThrough
-
getFirstCharacterClimbingThrough
-
getFirstCharacterClosing
-
getFirstCharacterClosing
-
isGlassRemoved
public boolean isGlassRemoved() -
setGlassRemoved
public void setGlassRemoved(boolean removed) -
removeBrokenGlass
public void removeBrokenGlass() -
addBarricadesDebug
-
addRandomBarricades
public void addRandomBarricades()
-