Package zombie.iso.objects
Class IsoFireplace
java.lang.Object
zombie.iso.IsoObject
zombie.iso.objects.IsoFireplace
- All Implemented Interfaces:
java.io.Serializable
public class IsoFireplace 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 protected int
FireSpriteIndex
protected IsoSprite
FuelSprite
protected int
FuelSpriteIndex
protected IsoHeatSource
heatSource
protected float
LastUpdateTime
protected IsoLightSource
LightSource
protected float
MinuteAccumulator
protected int
MinutesSinceExtinguished
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 IsoFireplace(IsoCell cell)
IsoFireplace(IsoCell cell, IsoGridSquare sq, IsoSprite gid)
-
Method Summary
Modifier and Type Method Description void
addFuel(int units)
void
addToWorld()
void
extinguish()
int
getFuelAmount()
java.lang.String
getObjectName()
float
getTemperature()
boolean
hasFuel()
boolean
isLit()
void
load(java.nio.ByteBuffer input, int WorldVersion)
void
loadChange(java.lang.String change, java.nio.ByteBuffer bb)
void
removeFromWorld()
void
render(float x, float y, float z, ColorInfo col, boolean bDoChild)
void
save(java.nio.ByteBuffer output)
void
saveChange(java.lang.String change, KahluaTable tbl, java.nio.ByteBuffer bb)
void
setFuelAmount(int units)
void
setLit(boolean lit)
void
update()
int
useFuel(int amount)
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, 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, onMouseLeftClick, onMouseRightClick, onMouseRightReleased, removeAllContainers, RemoveAttachedAnim, RemoveAttachedAnims, removeFromSquare, render, renderlast, renderObjectPicker, replaceItem, reset, reuseGridSquare, 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
-
Field Details
-
LastUpdateTime
protected float LastUpdateTime -
MinuteAccumulator
protected float MinuteAccumulator -
MinutesSinceExtinguished
protected int MinutesSinceExtinguished -
FuelSprite
-
FuelSpriteIndex
protected int FuelSpriteIndex -
FireSpriteIndex
protected int FireSpriteIndex -
LightSource
-
heatSource
-
-
Constructor Details
-
IsoFireplace
-
IsoFireplace
-
-
Method Details
-
getObjectName
public java.lang.String getObjectName()- Overrides:
getObjectName
in classIsoObject
-
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 -
setFuelAmount
public void setFuelAmount(int units) -
getFuelAmount
public int getFuelAmount() -
addFuel
public void addFuel(int units) -
useFuel
public int useFuel(int amount) -
hasFuel
public boolean hasFuel() -
setLit
public void setLit(boolean lit) -
isLit
public boolean isLit() -
extinguish
public void extinguish() -
getTemperature
public float getTemperature() -
update
public void update() -
addToWorld
public void addToWorld()- Overrides:
addToWorld
in classIsoObject
-
removeFromWorld
public void removeFromWorld()- Overrides:
removeFromWorld
in classIsoObject
-
render
-
saveChange
- Overrides:
saveChange
in classIsoObject
-
loadChange
public void loadChange(java.lang.String change, java.nio.ByteBuffer bb)- Overrides:
loadChange
in classIsoObject
-