Package zombie.iso.objects
Class IsoLightSwitch
java.lang.Object
zombie.iso.IsoObject
zombie.iso.objects.IsoLightSwitch
- All Implemented Interfaces:
java.io.Serializable
public class IsoLightSwitch extends IsoObject
- 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 boolean
bStreetLight
protected int
bulbBurnMinutes
protected int
lastMin
protected long
lastMinuteStamp
boolean
lightRoom
java.util.ArrayList
lights
protected int
nextBreakUpdate
int
RoomID
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, table, targetAlpha, tintb, tintg, tintr, usesExternalWaterSource, wallBloodSplats, windRenderEffects
-
Constructor Summary
Constructors Constructor Description IsoLightSwitch(IsoCell cell)
IsoLightSwitch(IsoCell cell, IsoGridSquare square, IsoSprite sprite, int int1)
-
Method Summary
Modifier and Type Method Description void
addBattery(IsoGameCharacter gameCharacter, InventoryItem inventoryItem)
void
addLightBulb(IsoGameCharacter gameCharacter, InventoryItem inventoryItem)
void
addLightSourceFromSprite()
void
addToWorld()
boolean
canSwitchLight()
static void
chunkLoaded(IsoChunk chunk)
java.lang.String
getBulbItem()
boolean
getCanBeModified()
void
getCustomSettingsFromItem(InventoryItem inventoryItem)
float
getDelta()
boolean
getHasBattery()
java.lang.String
getObjectName()
float
getPower()
float
getPrimaryB()
float
getPrimaryG()
float
getPrimaryR()
boolean
getUseBattery()
boolean
hasLightBulb()
boolean
isActivated()
void
load(java.nio.ByteBuffer byteBuffer, int int1)
boolean
onMouseLeftClick(int int1, int int2)
void
receiveSyncCustomizedSettings(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection)
DrainableComboItem
removeBattery(IsoGameCharacter gameCharacter)
void
removeFromWorld()
InventoryItem
removeLightBulb(IsoGameCharacter gameCharacter)
void
save(java.nio.ByteBuffer byteBuffer)
boolean
setActive(boolean boolean1)
boolean
setActive(boolean boolean1, boolean boolean2)
boolean
setActive(boolean boolean1, boolean boolean2, boolean boolean3)
void
setBulbItemRaw(java.lang.String string)
void
setCustomSettingsToItem(InventoryItem inventoryItem)
void
setDelta(float float1)
void
setHasBatteryRaw(boolean boolean1)
void
setPower(float float1)
void
setPrimaryB(float float1)
void
setPrimaryG(float float1)
void
setPrimaryR(float float1)
void
setUseBattery(boolean boolean1)
void
switchLight(boolean boolean1)
void
syncCustomizedSettings(UdpConnection udpConnection)
void
syncIsoObject(boolean boolean1, byte byte1, UdpConnection udpConnection)
void
syncIsoObject(boolean boolean1, byte byte1, UdpConnection udpConnection, java.nio.ByteBuffer byteBuffer)
void
syncIsoObjectSend(ByteBufferWriter byteBufferWriter)
boolean
toggle()
void
update()
Methods inherited from class zombie.iso.IsoObject
addChild, addSecondaryContainer, 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, getFacingPosition, getFacingPositionAlt, getHighlightColor, getIsSurfaceNormalOffset, getItemContainer, getKeyId, 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, loadChange, loadFromRemoteBuffer, loadFromRemoteBuffer, loadState, onMouseRightClick, onMouseRightReleased, removeAllContainers, RemoveAttachedAnim, RemoveAttachedAnims, removeFromSquare, removeRenderEffect, render, render, renderFxMask, renderlast, renderObjectPicker, replaceItem, reset, reuseGridSquare, revisionUp, saveChange, saveState, sendObjectChange, sendObjectChange, sendObjectChange, Serialize, setAlpha, setAlphaStep, setAttachedAnimSprite, setBlink, setChildSprites, setContainer, setCustomColor, setCustomColor, setDamage, setDefaultCondition, setDir, setDir, setHighlightColor, setHighlightColor, setHighlighted, setHighlighted, setKeyId, 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, TestCollide, TestPathfindCollide, TestVision, transmitCompleteItemToClients, transmitCompleteItemToServer, transmitCustomColor, transmitModData, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToClients, transmitUpdatedSpriteToServer, UnCollision, useItemOn, useWater, writeToRemoteBuffer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
lights
public java.util.ArrayList lights -
lightRoom
public boolean lightRoom -
RoomID
public int RoomID -
bStreetLight
public boolean bStreetLight -
lastMinuteStamp
protected long lastMinuteStamp -
bulbBurnMinutes
protected int bulbBurnMinutes -
lastMin
protected int lastMin -
nextBreakUpdate
protected int nextBreakUpdate
-
-
Constructor Details
-
IsoLightSwitch
-
IsoLightSwitch
-
-
Method Details
-
getObjectName
public java.lang.String getObjectName()- Overrides:
getObjectName
in classIsoObject
-
addLightSourceFromSprite
public void addLightSourceFromSprite() -
getCanBeModified
public boolean getCanBeModified() -
getPower
public float getPower() -
setPower
public void setPower(float float1) -
setDelta
public void setDelta(float float1) -
getDelta
public float getDelta() -
setUseBattery
public void setUseBattery(boolean boolean1) -
getUseBattery
public boolean getUseBattery() -
getHasBattery
public boolean getHasBattery() -
setHasBatteryRaw
public void setHasBatteryRaw(boolean boolean1) -
addBattery
-
removeBattery
-
hasLightBulb
public boolean hasLightBulb() -
getBulbItem
public java.lang.String getBulbItem() -
setBulbItemRaw
public void setBulbItemRaw(java.lang.String string) -
addLightBulb
-
removeLightBulb
-
getPrimaryR
public float getPrimaryR() -
getPrimaryG
public float getPrimaryG() -
getPrimaryB
public float getPrimaryB() -
setPrimaryR
public void setPrimaryR(float float1) -
setPrimaryG
public void setPrimaryG(float float1) -
setPrimaryB
public void setPrimaryB(float float1) -
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 -
onMouseLeftClick
public boolean onMouseLeftClick(int int1, int int2)- Overrides:
onMouseLeftClick
in classIsoObject
-
canSwitchLight
public boolean canSwitchLight() -
setActive
public boolean setActive(boolean boolean1) -
setActive
public boolean setActive(boolean boolean1, boolean boolean2) -
setActive
public boolean setActive(boolean boolean1, boolean boolean2, boolean boolean3) -
toggle
public boolean toggle() -
switchLight
public void switchLight(boolean boolean1) -
getCustomSettingsFromItem
-
setCustomSettingsToItem
-
syncCustomizedSettings
-
receiveSyncCustomizedSettings
public void receiveSyncCustomizedSettings(java.nio.ByteBuffer byteBuffer, UdpConnection udpConnection) -
syncIsoObjectSend
- Overrides:
syncIsoObjectSend
in classIsoObject
-
syncIsoObject
public void syncIsoObject(boolean boolean1, byte byte1, UdpConnection udpConnection, java.nio.ByteBuffer byteBuffer)- Overrides:
syncIsoObject
in classIsoObject
-
syncIsoObject
-
update
public void update() -
isActivated
public boolean isActivated() -
addToWorld
public void addToWorld()- Overrides:
addToWorld
in classIsoObject
-
removeFromWorld
public void removeFromWorld()- Overrides:
removeFromWorld
in classIsoObject
-
chunkLoaded
-