Package zombie.iso.objects
Class IsoWaveSignal
java.lang.Object
zombie.iso.IsoObject
zombie.iso.objects.IsoWaveSignal
- All Implemented Interfaces:
java.io.Serializable
,Talker
,ChatElementOwner
,WaveSignalDevice
- Direct Known Subclasses:
IsoRadio
,IsoTelevision
public class IsoWaveSignal extends IsoObject implements WaveSignalDevice, ChatElementOwner, Talker
- 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 protected ChatElement
chatElement
protected DeviceData
deviceData
protected static java.util.Map
deviceDataCache
protected boolean
displayRange
protected GameTime
gameTime
protected boolean
hasPlayerInRange
protected IsoLightSource
lightSource
protected int
lightSourceRadius
protected float
lightUpdateCnt
protected boolean
lightWasRemoved
protected float
nextLightUpdate
protected java.lang.String
talkerType
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, table, targetAlpha, tintb, tintg, tintr, usesExternalWaterSource, wallBloodSplats
-
Constructor Summary
Constructors Constructor Description IsoWaveSignal(IsoCell cell)
IsoWaveSignal(IsoCell cell, IsoGridSquare sq, IsoSprite spr)
-
Method Summary
Modifier and Type Method Description void
AddDeviceText(java.lang.String line, float r, float g, float b, java.lang.String codes, int distance)
void
AddDeviceText(java.lang.String line, float r, float g, float b, java.lang.String codes, int distance, boolean attractZombies)
void
AddDeviceText(java.lang.String line, int r, int g, int b, java.lang.String codes, int distance)
void
AddDeviceText(java.lang.String line, int r, int g, int b, java.lang.String codes, int distance, boolean attractZombies)
void
addToWorld()
DeviceData
cloneDeviceDataFromItem(java.lang.String itemfull)
float
getDelta()
DeviceData
getDeviceData()
java.lang.String
getSayLine()
java.lang.String
getTalkerType()
boolean
hasChatToDisplay()
boolean
HasPlayerInrange()
protected void
init(boolean objectFromBinary)
boolean
IsSpeaking()
void
load(java.nio.ByteBuffer input, int WorldVersion)
protected boolean
playerWithinBounds(IsoPlayer player, float dist)
void
removeFromSquare()
void
removeFromWorld()
protected void
removeLightSourceFromWorld()
void
renderlast()
void
renderlastold2()
void
save(java.nio.ByteBuffer output)
void
Say(java.lang.String line)
void
setDelta(float delta)
void
setDeviceData(DeviceData data)
void
setTalkerType(java.lang.String type)
void
update()
protected void
updateLightSource()
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, getFacingPosition, getFacingPositionAlt, getHighlightColor, getIsSurfaceNormalOffset, getItemContainer, getKeyId, getLastRendered, getLastRenderedRendered, getMaskClickedY, getMD5Checksum, getModData, getName, getNew, getObjectIndex, getObjectName, 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, loadChange, loadFromRemoteBuffer, loadFromRemoteBuffer, onMouseLeftClick, onMouseRightClick, onMouseRightReleased, removeAllContainers, RemoveAttachedAnim, RemoveAttachedAnims, render, render, renderObjectPicker, replaceItem, reset, reuseGridSquare, saveChange, sendObjectChange, sendObjectChange, sendObjectChange, Serialize, setAlpha, setAlphaStep, setAttachedAnimSprite, setBlink, setChildSprites, setContainer, setCustomColor, setCustomColor, setDamage, setDefaultCondition, setDir, setDir, setHighlightColor, setHighlighted, setKeyId, 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, syncIsoObject, syncIsoObjectSend, TestCollide, TestPathfindCollide, TestVision, 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.chat.ChatElementOwner
getSquare, getX, getY, getZ
Methods inherited from interface zombie.radio.devices.WaveSignalDevice
getSquare
-
Field Details
-
lightSource
-
lightWasRemoved
protected boolean lightWasRemoved -
lightSourceRadius
protected int lightSourceRadius -
nextLightUpdate
protected float nextLightUpdate -
lightUpdateCnt
protected float lightUpdateCnt -
deviceData
-
displayRange
protected boolean displayRange -
hasPlayerInRange
protected boolean hasPlayerInRange -
gameTime
-
chatElement
-
talkerType
protected java.lang.String talkerType -
deviceDataCache
protected static java.util.Map deviceDataCache
-
-
Constructor Details
-
IsoWaveSignal
-
IsoWaveSignal
-
-
Method Details
-
init
protected void init(boolean objectFromBinary) -
cloneDeviceDataFromItem
-
hasChatToDisplay
public boolean hasChatToDisplay() -
HasPlayerInrange
public boolean HasPlayerInrange() -
getDelta
public float getDelta()- Specified by:
getDelta
in interfaceWaveSignalDevice
-
setDelta
public void setDelta(float delta)- Specified by:
setDelta
in interfaceWaveSignalDevice
-
getDeviceData
-
setDeviceData
-
IsSpeaking
public boolean IsSpeaking()- Specified by:
IsSpeaking
in interfaceTalker
-
getTalkerType
public java.lang.String getTalkerType()- Specified by:
getTalkerType
in interfaceTalker
-
setTalkerType
public void setTalkerType(java.lang.String type) -
getSayLine
public java.lang.String getSayLine()- Specified by:
getSayLine
in interfaceTalker
-
Say
public void Say(java.lang.String line) -
AddDeviceText
public void AddDeviceText(java.lang.String line, float r, float g, float b, java.lang.String codes, int distance)- Specified by:
AddDeviceText
in interfaceWaveSignalDevice
-
AddDeviceText
public void AddDeviceText(java.lang.String line, int r, int g, int b, java.lang.String codes, int distance) -
AddDeviceText
public void AddDeviceText(java.lang.String line, int r, int g, int b, java.lang.String codes, int distance, boolean attractZombies) -
AddDeviceText
public void AddDeviceText(java.lang.String line, float r, float g, float b, java.lang.String codes, int distance, boolean attractZombies) -
renderlast
public void renderlast()- Overrides:
renderlast
in classIsoObject
-
renderlastold2
public void renderlastold2() -
playerWithinBounds
-
update
public void update() -
updateLightSource
protected void updateLightSource() -
removeLightSourceFromWorld
protected void removeLightSourceFromWorld() -
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 -
addToWorld
public void addToWorld()- Overrides:
addToWorld
in classIsoObject
-
removeFromWorld
public void removeFromWorld()- Overrides:
removeFromWorld
in classIsoObject
-
removeFromSquare
public void removeFromSquare()- Overrides:
removeFromSquare
in classIsoObject
-