Package zombie.iso.objects
Class IsoFire
java.lang.Object
zombie.iso.IsoObject
zombie.iso.objects.IsoFire
- All Implemented Interfaces:
java.io.Serializable
public class IsoFire 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 int
Age
boolean
bSmoke
int
Energy
int
Life
int
LifeStage
int
LifeStageDuration
int
LifeStageTimer
float
LightOscillator
int
LightRadius
IsoLightSource
LightSource
int
MaxLife
int
MinLife
int
numFlameParticles
boolean
perm
int
SpreadDelay
int
SpreadTimer
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 IsoFire(IsoCell cell)
IsoFire(IsoCell cell, IsoGridSquare gridSquare)
IsoFire(IsoCell cell, IsoGridSquare gridSquare, boolean CanBurnAnywhere, int StartingEnergy)
IsoFire(IsoCell cell, IsoGridSquare gridSquare, boolean CanBurnAnywhere, int StartingEnergy, int SetLife)
IsoFire(IsoCell cell, IsoGridSquare gridSquare, boolean CanBurnAnywhere, int StartingEnergy, int SetLife, boolean isSmoke)
-
Method Summary
Modifier and Type Method Description void
addToWorld()
static boolean
CanAddFire(IsoGridSquare gridSquare, boolean CanBurnAnywhere)
static boolean
CanAddFire(IsoGridSquare gridSquare, boolean CanBurnAnywhere, boolean smoke)
static boolean
CanAddSmoke(IsoGridSquare gridSquare, boolean CanBurnAnywhere)
void
extinctFire()
static boolean
Fire_IsSquareFlamable(IsoGridSquare gridSquare)
int
getLife()
int
getLightRadius()
java.lang.String
getObjectName()
int
getSpreadDelay()
boolean
HasTooltip()
boolean
isPermanent()
void
load(java.nio.ByteBuffer b, 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
setLife(int Life)
void
setLifeStage(int lifeStage)
void
setLightRadius(int radius)
void
setSpreadDelay(int SpreadDelay)
void
Spread()
boolean
TestCollide(IsoMovingObject obj, IsoGridSquare PassedObjectSquare)
IsoObject.VisionResult
TestVision(IsoGridSquare from, IsoGridSquare to)
void
update()
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, 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, 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
-
Age
public int Age -
Energy
public int Energy -
Life
public int Life -
LifeStage
public int LifeStage -
LifeStageDuration
public int LifeStageDuration -
LifeStageTimer
public int LifeStageTimer -
MaxLife
public int MaxLife -
MinLife
public int MinLife -
SpreadDelay
public int SpreadDelay -
SpreadTimer
public int SpreadTimer -
numFlameParticles
public int numFlameParticles -
perm
public boolean perm -
bSmoke
public boolean bSmoke -
LightSource
-
LightRadius
public int LightRadius -
LightOscillator
public float LightOscillator
-
-
Constructor Details
-
IsoFire
-
IsoFire
-
IsoFire
public IsoFire(IsoCell cell, IsoGridSquare gridSquare, boolean CanBurnAnywhere, int StartingEnergy, int SetLife, boolean isSmoke) -
IsoFire
public IsoFire(IsoCell cell, IsoGridSquare gridSquare, boolean CanBurnAnywhere, int StartingEnergy, int SetLife) -
IsoFire
public IsoFire(IsoCell cell, IsoGridSquare gridSquare, boolean CanBurnAnywhere, int StartingEnergy)
-
-
Method Details
-
getObjectName
public java.lang.String getObjectName()- Overrides:
getObjectName
in classIsoObject
-
save
public void save(java.nio.ByteBuffer output) throws java.io.IOException -
load
public void load(java.nio.ByteBuffer b, int WorldVersion) throws java.io.IOException -
CanAddSmoke
-
CanAddFire
-
CanAddFire
-
Fire_IsSquareFlamable
-
HasTooltip
public boolean HasTooltip()- Overrides:
HasTooltip
in classIsoObject
-
Spread
public void Spread() -
TestCollide
-
TestVision
- Overrides:
TestVision
in classIsoObject
-
update
public void update() -
render
-
extinctFire
public void extinctFire() -
setSpreadDelay
public void setSpreadDelay(int SpreadDelay) -
getSpreadDelay
public int getSpreadDelay() -
setLife
public void setLife(int Life) -
getLife
public int getLife() -
isPermanent
public boolean isPermanent() -
setLifeStage
public void setLifeStage(int lifeStage) -
setLightRadius
public void setLightRadius(int radius) -
getLightRadius
public int getLightRadius() -
addToWorld
public void addToWorld()- Overrides:
addToWorld
in classIsoObject
-
removeFromWorld
public void removeFromWorld()- Overrides:
removeFromWorld
in classIsoObject
-
saveChange
- Overrides:
saveChange
in classIsoObject
-
loadChange
public void loadChange(java.lang.String change, java.nio.ByteBuffer bb)- Overrides:
loadChange
in classIsoObject
-