Class IsoObject
java.lang.Object
zombie.entity.GameEntity
zombie.iso.IsoObject
- All Implemented Interfaces:
Serializable, ILuaIsoObject, IsoRenderable, Thumpable
- Direct Known Subclasses:
IsoAnimalTrack, IsoBarbecue, IsoBarricade, IsoBrokenGlass, IsoButcherHook, IsoCarBatteryCharger, IsoClothingDryer, IsoClothingWasher, IsoCombinationWasherDryer, IsoCompost, IsoCurtain, IsoDoor, IsoFeedingTrough, IsoFire, IsoFireplace, IsoGenerator, IsoHutch, IsoJukebox, IsoLightSwitch, IsoMannequin, IsoMovingObject, IsoRaindrop, IsoRainSplash, IsoStackedWasherDryer, IsoStove, IsoThumpable, IsoTrap, IsoTree, IsoWaveSignal, IsoWindow, IsoWindowFrame, IsoWorldInventoryObject, SkyBox
public class IsoObject
extends GameEntity
implements Serializable, ILuaIsoObject, Thumpable, IsoRenderable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionfloat[]booleanstatic floatshortbooleanstatic final ColorInfostatic floatintstatic IsoObjectstatic IsoObjectstatic booleanstatic final intbooleanbooleanfloatfloatbooleanfloatbytebytebytefloatstatic floatbooleanbooleanfloatfloatfloatse.krka.kahlua.vm.KahluaTablefloatfloatfloatFields inherited from class GameEntity
DEFAULT_ENTITY_DISPLAY_NAME -
Constructor Summary
ConstructorsConstructorDescriptionIsoObject(IsoCell cell, IsoGridSquare square, String gid) IsoObject(IsoCell cell, IsoGridSquare square, IsoSprite spr) IsoObject(IsoGridSquare square, String tile) IsoObject(IsoGridSquare square, String tile, boolean bShareTilesWithMap) IsoObject(IsoGridSquare square, String tile, String name) IsoObject(IsoGridSquare square, String tile, String name, boolean bShareTilesWithMap) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachedAnimSprite(IsoSprite sprite) voidaddAttachedAnimSpriteByName(String spriteName) voidvoidvoidaddItemToObjectSurface(String item) addItemToObjectSurface(String item, boolean randomRotation) addItemToObjectSurface(String item, boolean randomRotation, boolean spawnChecks) voidaddSecondaryContainer(ItemContainer container) booleanaddSheetRope(IsoPlayer player, String itemType) voidvoidAttachAnim(String ObjectName, String AnimName, int NumFrames, float frameIncrease, int OffsetX, int OffsetY, boolean Looping, int FinishHoldFrameIndex, boolean DeleteWhenFinished, float zBias, ColorInfo TintMod) AttachAnim(String ObjectName, String AnimName, int NumFrames, float frameIncrease, int OffsetX, int OffsetY, boolean Looping, int FinishHoldFrameIndex, boolean DeleteWhenFinished, float zBias, ColorInfo TintMod, boolean bRandomFrame) voidAttachExistingAnim(IsoSprite spr, int OffsetX, int OffsetY, boolean Looping, int FinishHoldFrameIndex, boolean DeleteWhenFinished, float zBias) voidAttachExistingAnim(IsoSprite spr, int OffsetX, int OffsetY, boolean Looping, int FinishHoldFrameIndex, boolean DeleteWhenFinished, float zBias, ColorInfo TintMod) voidAttackObject(IsoGameCharacter owner) booleanbooleanbooleancanTransferFluidTo(FluidContainer other) voidvoidvoidbooleanvoidvoidvoidvoidintvoidvoidlongvoidDamage(float amount) voidvoidvoidvoidvoidDoSpecialTooltip(ObjectTooltip tooltipUI, IsoGridSquare square) voidDoTooltip(ObjectTooltip tooltipUI) voidvoidstatic Class<?> factoryClassFromFileInput(IsoCell cell, int classID) Deprecated.static IsoObjectfactoryFromFileInput(IsoCell cell, byte classID) static IsoObjectfactoryFromFileInput(IsoCell cell, ByteBuffer b) static IsoObjectfactoryFromFileInput_OLD(IsoCell cell, int classID) Deprecated.static bytefactoryGetClassID(String name) static IsoObjectFindExternalWaterSource(int x, int y, int z) static IsoObjectFindExternalWaterSource(IsoGridSquare square) static IsoObjectFindWaterSourceOnSquare(IsoGridSquare square) voidfloatgetAlpha()floatgetAlpha(int playerIndex) intgetCell()getChunk()getContainerByEitherType(String type1, String type2) getContainerByIndex(int index) getContainerByType(String type) getContainerClickedOn(int screenX, int screenY) intintgetContainerIndex(ItemContainer container) <T> PZArrayList<ItemContainer> getContainers(T in_paramToCompare, Invokers.Params2.Boolean.ICallback<T, ItemContainer> in_isValidPredicate, PZArrayList<ItemContainer> inout_containerList) shortgetDir()booleanlonggetFacingPosition(Vector2 pos) static IsoObject.IsoObjectFactoryfloatfloatgetHighlightColor(int playerIndex) booleanintgetKeyId()static IsoObjectstatic IsoObjectfloatgetMaskClickedY(int x, int y, boolean flip) se.krka.kahlua.vm.KahluaTableintgetName()static IsoObjectgetNew()static IsoObjectgetNew(IsoGridSquare sq, String spriteName, String name, boolean bShareTilesWithMap) intfloatfloatfinal intgetOutlineHighlightCol(int playerIndex) floatintorg.lwjgl.util.vector.Vector3fgetPosition(org.lwjgl.util.vector.Vector3f out) getPosition(Vector3 out) getRenderEffectObjectByIndex(int index) intgetRenderInfo(int playerIndex) floatintvoidgetSpriteGridObjects(ArrayList<IsoObject> result) voidgetSpriteGridObjects(ArrayList<IsoObject> result, boolean bAddSelf) voidvoidintfloatfloatfloatse.krka.kahlua.vm.KahluaTablegetTable()floatfloatgetTargetAlpha(int playerIndex) floatgetTile()getType()booleanfloatGetVehicleSlowFactor(BaseVehicle vehicle) intfloatgetX()floatgetY()floatgetZ()booleanbooleanbooleanbooleanbooleanhasFluid()booleanbooleanbooleanbooleanbooleanbooleanhasProperty(IsoFlagType flag) booleanbooleanbooleanhasWater()booleanbooleanvoidvoidHitByVehicle(BaseVehicle vehicle, float amount) voidinvalidateRenderChunkLevel(long dirtyFlags) voidbooleanReturns TRUE if both Alpha nad TargetAlpha are transparent, or near-zero.booleanisAlphaAndTargetZero(int playerIndex) booleanReturns TRUE if Alpha is transparent, or near-zero.booleanisAlphaZero(int playerIndex) booleanbooleanisBlink()booleanisBlink(int playerIndex) booleanisBush()booleanbooleanbooleanisConnectedSpriteGridObject(IsoObject object) booleanbooleanbooleanbooleanisFascia()booleanbooleanisFloor()booleanbooleanbooleanisGrave()booleanbooleanisHighlighted(int playerIndex) booleanbooleanisHighlightRenderOnce(int playerIndex) booleanbooleanisItemAllowedInContainer(ItemContainer container, InventoryItem item) booleanisLit()booleanisMaskClicked(int x, int y) booleanisMaskClicked(int x, int y, boolean flip) booleanbooleanbooleanbooleanbooleanbooleanbooleanisOre()final booleanfinal booleanisOutlineHighlight(int playerIndex) final booleanfinal booleanisOutlineHlAttached(int playerIndex) booleanfinal booleanisOutlineHlBlink(int playerIndex) booleanbooleanbooleanisRemoveItemAllowedFromContainer(ItemContainer container, InventoryItem item) booleanbooleanbooleanbooleanbooleanbooleanbooleanisStump()booleanbooleanbooleanbooleanbooleanisTargetAlphaZero(int playerIndex) booleanisTent()booleanisWall()booleanisWallN()booleanisWallSE()booleanisWallW()booleanisWindow()booleanisZombie()final voidload(ByteBuffer input, int WorldVersion) voidload(ByteBuffer input, int WorldVersion, boolean IS_DEBUG_SAVE) voidloadChange(String change, ByteBuffer bb) voidvoidloadFromRemoteBuffer(ByteBuffer b, boolean addToObjects) voidloadState(ByteBuffer bb) moveFluidToTemporaryContainer(float amount) voidbooleanonMouseLeftClick(int x, int y) voidonMouseRightClick(int lx, int ly) voidbooleanpropertyEquals(String key, String value) booleanpropertyEqualsIgnoreCase(String key, String value) voidvoidRemoveAttachedAnim(int index) voidvoidvoidfinal voidvoidbooleanremoveSheetRope(IsoPlayer player) voidrender(float x, float y, float z, ColorInfo col, boolean bDoAttached, boolean bWallLightingPass, Shader shader) voidrenderAnimatedAttachments(float x, float y, float z, ColorInfo col) voidrenderAttachedAndOverlaySprites(IsoDirections dir, float x, float y, float z, ColorInfo col, boolean bDoAttached, boolean bWallLightingPass, Shader shader, Consumer<TextureDraw> texdModifier) voidrenderFloorTile(float x, float y, float z, ColorInfo col, boolean bDoAttached, boolean bWallLightingPass, Shader shader, Consumer<TextureDraw> texdModifier, Consumer<TextureDraw> attachedAndOverlayModifier) voidrenderFxMask(float x, float y, float z, boolean bDoAttached) voidvoidrenderObjectPicker(float x, float y, float z, ColorInfo lightInfo) voidrenderWallTile(IsoDirections dir, float x, float y, float z, ColorInfo col, boolean bDoAttached, boolean bWallLightingPass, Shader shader, Consumer<TextureDraw> texdModifier) voidrenderWallTileDepth(IsoDirections dir, boolean cutawaySelf, boolean cutawayE, boolean cutawayS, int cutawaySEX, float x, float y, float z, ColorInfo col, Shader shader, Consumer<TextureDraw> texdModifier) voidrenderWallTileOnly(IsoDirections dir, float x, float y, float z, ColorInfo col, Shader shader, Consumer<TextureDraw> texdModifier) replaceItem(InventoryItem item) voidreset()voidfinal voidsave(ByteBuffer output) voidsave(ByteBuffer output, boolean IS_DEBUG_SAVE) voidsaveChange(String change, se.krka.kahlua.vm.KahluaTable tbl, ByteBuffer bb) voidsaveState(ByteBuffer bb) voidsendObjectChange(String change) voidsendObjectChange(String change, Object... args) voidsendObjectChange(String change, se.krka.kahlua.vm.KahluaTable tbl) booleanvoidsetAlpha(float alpha) voidsetAlpha(int playerIndex, float alpha) voidsetAlphaAndTarget(float alpha) voidsetAlphaAndTarget(int playerIndex, float alpha) voidsetAlphaToTarget(int playerIndex) voidsetAnimating(boolean bAnimating) voidsetAttachedAnimSprite(ArrayList<IsoSpriteInstance> AttachedAnimSprite) voidsetBlink(boolean blink) voidsetBlink(int playerIndex, boolean blink) voidsetChildSprites(ArrayList<IsoSpriteInstance> AttachedAnimSprite) voidsetContainer(ItemContainer container) voidsetCustomColor(float r, float g, float b, float a) voidsetCustomColor(ColorInfo col) voidsetDamage(short Damage) voidsetDir(int dir) voidsetDoRender(boolean doRender) voidsetExplored(boolean isExplored) voidsetForwardIsoDirection(int dir) voidvoidsetHighlightColor(float r, float g, float b, float a) voidsetHighlightColor(int playerIndex, float r, float g, float b, float a) voidsetHighlightColor(int playerIndex, ColorInfo highlightColor) voidsetHighlightColor(ColorInfo highlightColor) voidsetHighlighted(boolean highlight) voidsetHighlighted(boolean highlight, boolean renderOnce) voidsetHighlighted(int playerIndex, boolean highlight) voidsetHighlighted(int playerIndex, boolean highlight, boolean renderOnce) voidsetHighlightRenderOnce(boolean highlight) voidsetHighlightRenderOnce(int playerIndex, boolean highlight) voidsetKeyId(int keyId) static voidsetLastRendered(IsoObject aLastRendered) static voidsetLastRenderedRendered(IsoObject aLastRenderedRendered) voidsetLightSource(IsoLightSource lightSource) voidsetLit(boolean lit) voidsetModData(se.krka.kahlua.vm.KahluaTable newDatas) voidsetMovedThumpable(boolean movedThumpable) voidvoidvoidsetNoPicking(boolean NoPicking) voidsetOffsetX(float offsetX) voidsetOffsetY(float offsetY) voidfinal voidsetOutlineHighlight(boolean isOutlineHighlight) final voidsetOutlineHighlight(int playerIndex, boolean isOutlineHighlight) final voidsetOutlineHighlightCol(float r, float g, float b, float a) final voidsetOutlineHighlightCol(int playerIndex, float r, float g, float b, float a) final voidsetOutlineHighlightCol(int playerIndex, ColorInfo outlineHighlightCol) final voidsetOutlineHighlightCol(ColorInfo outlineHighlightCol) voidsetOutlineHlAttached(boolean isOutlineHlAttached) final voidsetOutlineHlAttached(int playerIndex, boolean isOutlineHlAttached) voidsetOutlineHlBlink(boolean isOutlineHlBlink) final voidsetOutlineHlBlink(int playerIndex, boolean isOutlineHlBlink) voidsetOutlineOnMouseover(boolean OutlineOnMouseover) voidsetOutlineThickness(float outlineThickness) voidsetOverlaySprite(String spriteName) voidsetOverlaySprite(String spriteName, boolean bTransmit) voidsetOverlaySprite(String spriteName, float r, float g, float b, float a) booleansetOverlaySprite(String spriteName, float r, float g, float b, float a, boolean bTransmit) voidsetOverlaySpriteColor(float r, float g, float b, float a) voidsetPipedFuelAmount(int units) voidvoidsetRenderEffect(RenderEffectType type, boolean reuseEqualType) voidsetRenderYOffset(float f) voidsetRerouteCollide(IsoObject rerouteCollide) voidsetRerouteMask(IsoObject rerouteMask) voidsetSatChair(boolean satChair) voidsetSceneCulled(boolean isCulled) voidsetSpecialTooltip(boolean specialTooltip) voidvoidvoidsetSpriteFromName(String name) voidsetSpriteModelName(String spriteModelName) voidsetSquare(IsoGridSquare square) voidsetTable(se.krka.kahlua.vm.KahluaTable table) voidsetTargetAlpha(float targetAlpha) voidsetTargetAlpha(int playerIndex, float targetAlpha) voidvoidsetType(IsoObjectType type) voidsetUsesExternalWaterSource(boolean b) booleanvoidspawnItemToObjectSurface(String item, boolean randomRotation) spawnItemToObjectSurface(String item, boolean randomRotation, boolean checkForAdjacentCanStandSquare) voidsync()voidvoidvoidsyncIsoObject(boolean bRemote, byte val, UdpConnection source, ByteBuffer bb) voidvoidbooleanTestCollide(IsoMovingObject obj, IsoGridSquare from, IsoGridSquare to) booleanTestPathfindCollide(IsoMovingObject obj, IsoGridSquare from, IsoGridSquare to) TestVision(IsoGridSquare from, IsoGridSquare to) voidThump(IsoMovingObject thumper) toString()floattransferFluidFrom(FluidContainer source, float amount) floattransferFluidTo(FluidContainer target, float amount) voidvoidDeprecated.voidvoidvoidvoidvoidtransmitUpdatedSpriteToClients(UdpConnection connection) voidDeprecated.voidturnOn()voidUnCollision(IsoObject object) voidvoidupdate()floatuseFluid(float amount) voiduseItemOn(InventoryItem item) Deprecated.voidWeaponHit(IsoGameCharacter chr, HandWeapon weapon) voidMethods inherited from class GameEntity
attrib, componentSize, containsComponent, getAttributes, getComponent, getComponentAny, getComponentForIndex, getComponentFromID, getDefaultEntityDisplayName, getDurabilityComponent, getEntityDisplayName, getEntityFullTypeDebug, getEntityScript, getExceptionCompatibleString, getFluidContainer, getSpriteConfig, getUsingPlayer, hasComponent, hasComponentAny, hasComponents, hasRenderers, isAddedToEngine, isMeta, isOutside, isRemovingFromEngine, isScheduledForBucketUpdate, isScheduledForEngineRemoval, isUsingPlayer, isValidEngineEntity, loadEntity, loadEntity, onEquip, onEquip, onFluidContainerUpdate, onUnEquip, removeFromWorld, renderlastComponents, requiresEntitySave, saveEntity, sendSyncEntity, setUsingPlayerMethods inherited from interface ILuaIsoObject
setDir
-
Field Details
-
MAX_WALL_SPLATS
public static final int MAX_WALL_SPLATS- See Also:
-
lastRendered
-
lastRenderedRendered
-
rmod
public static float rmod -
gmod
public static float gmod -
bmod
public static float bmod -
lowLightingQualityHack
public static boolean lowLightingQualityHack -
fireColor
-
ppfHighlighted
public byte ppfHighlighted -
ppfHighlightRenderOnce
public byte ppfHighlightRenderOnce -
ppfBlink
public byte ppfBlink -
satChair
public boolean satChair -
keyId
public int keyId -
emitter
-
sheetRopeHealth
public float sheetRopeHealth -
sheetRope
public boolean sheetRope -
neverDoneAlpha
public boolean neverDoneAlpha -
alphaForced
public boolean alphaForced -
attachedAnimSprite
-
wallBloodSplats
-
container
-
dir
-
damage
public short damage -
partialThumpDmg
public float partialThumpDmg -
noPicking
public boolean noPicking -
offsetX
public float offsetX -
offsetY
public float offsetY -
outlineOnMouseover
public boolean outlineOnMouseover -
rerouteMask
-
sprite
-
overlaySprite
-
overlaySpriteColor
-
square
-
alpha
public float[] alpha -
rerouteCollide
-
table
public se.krka.kahlua.vm.KahluaTable table -
name
-
tintr
public float tintr -
tintg
public float tintg -
tintb
public float tintb -
spriteName
-
sx
public float sx -
sy
public float sy -
doNotSync
public boolean doNotSync -
renderSquareOverride
-
renderSquareOverride2
-
renderDepthAdjust
public float renderDepthAdjust
-
-
Constructor Details
-
IsoObject
-
IsoObject
public IsoObject() -
IsoObject
-
IsoObject
-
IsoObject
-
IsoObject
-
IsoObject
-
IsoObject
-
-
Method Details
-
isFloor
public boolean isFloor() -
getNew
public static IsoObject getNew(IsoGridSquare sq, String spriteName, String name, boolean bShareTilesWithMap) -
getLastRendered
- Returns:
- the lastRendered
-
setLastRendered
- Parameters:
aLastRendered- the lastRendered to set
-
getLastRenderedRendered
- Returns:
- the lastRenderedRendered
-
setLastRenderedRendered
- Parameters:
aLastRenderedRendered- the lastRenderedRendered to set
-
getNew
-
getFactoryVehicle
-
factoryGetClassID
-
factoryFromFileInput
-
factoryFromFileInput_OLD
Deprecated. -
factoryClassFromFileInput
Deprecated. -
factoryFromFileInput
-
sync
public void sync() -
syncIsoObject
-
syncIsoObjectSend
-
syncIsoObjectReceive
-
syncFluidContainerReceive
-
syncFluidContainerSend
-
getTextureName
-
Serialize
public boolean Serialize() -
getModData
public se.krka.kahlua.vm.KahluaTable getModData() -
setModData
public void setModData(se.krka.kahlua.vm.KahluaTable newDatas) -
hasModData
public boolean hasModData() -
getSquare
- Specified by:
getSquarein classGameEntity
-
setSquare
- Parameters:
square- the square to set
-
getChunk
-
update
public void update() -
renderlast
public void renderlast()- Overrides:
renderlastin classGameEntity
-
DirtySlice
public void DirtySlice() -
getObjectName
-
load
- Throws:
IOException
-
load
- Throws:
IOException
-
save
- Throws:
IOException
-
save
- Throws:
IOException
-
saveState
- Throws:
IOException
-
loadState
- Throws:
IOException
-
softReset
public void softReset() -
AttackObject
-
onMouseRightClick
public void onMouseRightClick(int lx, int ly) -
onMouseRightReleased
public void onMouseRightReleased() -
Hit
-
Damage
public void Damage(float amount) -
HitByVehicle
-
Collision
-
UnCollision
-
GetVehicleSlowFactor
-
getRerouteCollide
- Returns:
- the rerouteCollide
-
setRerouteCollide
- Parameters:
rerouteCollide- the rerouteCollide to set
-
getTable
public se.krka.kahlua.vm.KahluaTable getTable()- Returns:
- the table
-
setTable
public void setTable(se.krka.kahlua.vm.KahluaTable table) - Parameters:
table- the table to set
-
setAlpha
public void setAlpha(float alpha) - Parameters:
alpha- the alpha to set
-
setAlpha
public void setAlpha(int playerIndex, float alpha) - Parameters:
playerIndex-alpha- the alpha to set
-
setAlphaToTarget
public void setAlphaToTarget(int playerIndex) - Parameters:
playerIndex- The playerIndex to use
-
setAlphaAndTarget
public void setAlphaAndTarget(float alpha) - Parameters:
alpha- the alpha to set
-
setAlphaAndTarget
public void setAlphaAndTarget(int playerIndex, float alpha) - Parameters:
playerIndex- The playerIndex to usealpha-
-
getAlpha
public float getAlpha()- Returns:
- the alpha
-
getAlpha
public float getAlpha(int playerIndex) -
getAttachedAnimSprite
- Returns:
- the AttachedAnimSprite
-
setAttachedAnimSprite
- Parameters:
AttachedAnimSprite- the AttachedAnimSprite to set
-
getAttachedAnimSpriteCount
public int getAttachedAnimSpriteCount() -
hasAttachedAnimSprites
public boolean hasAttachedAnimSprites() -
addAttachedAnimSpriteInstance
-
addAttachedAnimSprite
-
addAttachedAnimSpriteByName
-
getCell
- Returns:
- the cell
-
getChildSprites
- Returns:
- the AttachedAnimSprite
-
setChildSprites
- Parameters:
AttachedAnimSprite- the AttachedAnimSprite to set
-
clearAttachedAnimSprite
public void clearAttachedAnimSprite() -
getContainer
- Returns:
- the container
-
setContainer
- Parameters:
container- the container to set
-
getContainers
public <T> PZArrayList<ItemContainer> getContainers(T in_paramToCompare, Invokers.Params2.Boolean.ICallback<T, ItemContainer> in_isValidPredicate, PZArrayList<ItemContainer> inout_containerList) -
getContainerClickedOn
-
getDir
- Returns:
- the dir
-
setDir
public void setDir(int dir) - Parameters:
dir- the dir to set
-
setForwardIsoDirection
- Specified by:
setForwardIsoDirectionin interfaceILuaIsoObject
-
setForwardIsoDirection
public void setForwardIsoDirection(int dir) -
getForwardIsoDirection
-
getForwardMovementIsoDirection
-
getDamage
public short getDamage()- Returns:
- the Damage
-
setDamage
public void setDamage(short Damage) - Parameters:
Damage- the Damage to set
-
isNoPicking
public boolean isNoPicking()- Returns:
- the NoPicking
-
setNoPicking
public void setNoPicking(boolean NoPicking) - Parameters:
NoPicking- the NoPicking to set
-
isOutlineOnMouseover
public boolean isOutlineOnMouseover()- Returns:
- the OutlineOnMouseover
-
setOutlineOnMouseover
public void setOutlineOnMouseover(boolean OutlineOnMouseover) - Parameters:
OutlineOnMouseover- the OutlineOnMouseover to set
-
getRerouteMask
- Returns:
- the rerouteMask
-
setRerouteMask
- Parameters:
rerouteMask- the rerouteMask to set
-
getSprite
- Returns:
- the sprite
-
setSprite
- Parameters:
sprite- the sprite to set
-
setSprite
-
setSpriteFromName
-
getSpriteGrid
-
hasSpriteGrid
public boolean hasSpriteGrid() -
getTargetAlpha
public float getTargetAlpha()- Returns:
- the targetAlpha
-
setTargetAlpha
public void setTargetAlpha(float targetAlpha) - Parameters:
targetAlpha- the targetAlpha to set
-
setTargetAlpha
public void setTargetAlpha(int playerIndex, float targetAlpha) - Parameters:
playerIndex-targetAlpha- the targetAlpha to set
-
getTargetAlpha
public float getTargetAlpha(int playerIndex) -
isAlphaAndTargetZero
public boolean isAlphaAndTargetZero()Returns TRUE if both Alpha nad TargetAlpha are transparent, or near-zero. -
isAlphaAndTargetZero
public boolean isAlphaAndTargetZero(int playerIndex) -
isAlphaZero
public boolean isAlphaZero()Returns TRUE if Alpha is transparent, or near-zero. -
isAlphaZero
public boolean isAlphaZero(int playerIndex) -
isTargetAlphaZero
public boolean isTargetAlphaZero(int playerIndex) -
getType
- Returns:
- the type
-
setType
-
addChild
-
debugPrintout
public void debugPrintout() -
reset
public void reset()- Overrides:
resetin classGameEntity
-
customHashCode
public long customHashCode() -
SetName
-
getName
-
setName
- Parameters:
name- the name to set
-
getSpriteName
-
getTile
-
setTile
-
isCharacter
public boolean isCharacter() -
isZombie
public boolean isZombie() -
getScriptName
-
AttachAnim
public IsoSpriteInstance AttachAnim(String ObjectName, String AnimName, int NumFrames, float frameIncrease, int OffsetX, int OffsetY, boolean Looping, int FinishHoldFrameIndex, boolean DeleteWhenFinished, float zBias, ColorInfo TintMod) -
AttachAnim
public IsoSpriteInstance AttachAnim(String ObjectName, String AnimName, int NumFrames, float frameIncrease, int OffsetX, int OffsetY, boolean Looping, int FinishHoldFrameIndex, boolean DeleteWhenFinished, float zBias, ColorInfo TintMod, boolean bRandomFrame) -
AttachExistingAnim
-
AttachExistingAnim
public void AttachExistingAnim(IsoSprite spr, int OffsetX, int OffsetY, boolean Looping, int FinishHoldFrameIndex, boolean DeleteWhenFinished, float zBias) -
DoTooltip
-
DoSpecialTooltip
-
getItemContainer
-
getOffsetX
public float getOffsetX() -
setOffsetX
public void setOffsetX(float offsetX) - Parameters:
offsetX- the offsetX to set
-
getOffsetY
public float getOffsetY() -
setOffsetY
public void setOffsetY(float offsetY) - Parameters:
offsetY- the offsetY to set
-
getRerouteMaskObject
-
HasTooltip
public boolean HasTooltip() -
getUsesExternalWaterSource
public boolean getUsesExternalWaterSource() -
setUsesExternalWaterSource
public void setUsesExternalWaterSource(boolean b) -
hasExternalWaterSource
public boolean hasExternalWaterSource() -
doFindExternalWaterSource
public void doFindExternalWaterSource() -
FindExternalWaterSource
-
FindExternalWaterSource
-
FindExternalWaterSource
-
FindWaterSourceOnSquare
-
getPipedFuelAmount
public int getPipedFuelAmount() -
setPipedFuelAmount
public void setPipedFuelAmount(int units) -
getFluidAmount
public float getFluidAmount() -
emptyFluid
public void emptyFluid() -
getFluidCapacity
public float getFluidCapacity() -
useFluid
public float useFluid(float amount) -
addFluid
-
canTransferFluidFrom
-
canTransferFluidTo
-
transferFluidTo
-
transferFluidFrom
-
moveFluidToTemporaryContainer
-
getFluidUiName
-
hasFluid
public boolean hasFluid() -
hasWater
public boolean hasWater() -
isFluidInputLocked
public boolean isFluidInputLocked() -
isTaintedWater
public boolean isTaintedWater() -
replaceItem
-
useItemOn
Deprecated. -
isCanPath
public boolean isCanPath() -
getX
public float getX()- Specified by:
getXin classGameEntity
-
getY
public float getY()- Specified by:
getYin classGameEntity
-
getZ
public float getZ()- Specified by:
getZin classGameEntity
-
getPosition
-
getPosition
public org.lwjgl.util.vector.Vector3f getPosition(org.lwjgl.util.vector.Vector3f out) -
onMouseLeftClick
public boolean onMouseLeftClick(int x, int y) -
getProperties
-
hasProperty
-
hasProperty
-
getProperty
-
propertyEquals
-
propertyEqualsIgnoreCase
-
RemoveAttachedAnims
public void RemoveAttachedAnims() -
RemoveAttachedAnim
public void RemoveAttachedAnim(int index) -
afterRotated
public void afterRotated() -
getFacingPosition
-
getFacingPositionAlt
-
getRenderYOffset
public float getRenderYOffset() -
setRenderYOffset
public void setRenderYOffset(float f) -
isTableSurface
public boolean isTableSurface() -
isTableTopObject
public boolean isTableTopObject() -
getIsSurfaceNormalOffset
public boolean getIsSurfaceNormalOffset() -
getSurfaceNormalOffset
public float getSurfaceNormalOffset() -
getSurfaceOffsetNoTable
public float getSurfaceOffsetNoTable() -
getSurfaceOffset
public float getSurfaceOffset() -
isStairsNorth
public boolean isStairsNorth() -
isStairsWest
public boolean isStairsWest() -
isStairsObject
public boolean isStairsObject() -
isHoppable
public boolean isHoppable() -
isTallHoppable
public boolean isTallHoppable() -
isNorthHoppable
public boolean isNorthHoppable() -
isWall
public boolean isWall() -
isWallN
public boolean isWallN() -
isWallW
public boolean isWallW() -
isWallSE
public boolean isWallSE() -
haveSheetRope
public boolean haveSheetRope() -
countAddSheetRope
public int countAddSheetRope() -
canAddSheetRope
public boolean canAddSheetRope() -
addSheetRope
-
removeSheetRope
-
setDoRender
public void setDoRender(boolean doRender) - Specified by:
setDoRenderin interfaceIsoRenderable
-
getDoRender
public boolean getDoRender()- Specified by:
getDoRenderin interfaceIsoRenderable
-
isSceneCulled
public boolean isSceneCulled()- Specified by:
isSceneCulledin interfaceIsoRenderable
-
setSceneCulled
public void setSceneCulled(boolean isCulled) - Specified by:
setSceneCulledin interfaceIsoRenderable
-
render
public void render(float x, float y, float z, ColorInfo col, boolean bDoAttached, boolean bWallLightingPass, Shader shader) - Specified by:
renderin interfaceIsoRenderable
-
renderFloorTile
public void renderFloorTile(float x, float y, float z, ColorInfo col, boolean bDoAttached, boolean bWallLightingPass, Shader shader, Consumer<TextureDraw> texdModifier, Consumer<TextureDraw> attachedAndOverlayModifier) -
renderWallTile
public void renderWallTile(IsoDirections dir, float x, float y, float z, ColorInfo col, boolean bDoAttached, boolean bWallLightingPass, Shader shader, Consumer<TextureDraw> texdModifier) -
renderWallTileDepth
public void renderWallTileDepth(IsoDirections dir, boolean cutawaySelf, boolean cutawayE, boolean cutawayS, int cutawaySEX, float x, float y, float z, ColorInfo col, Shader shader, Consumer<TextureDraw> texdModifier) -
renderWallTileOnly
public void renderWallTileOnly(IsoDirections dir, float x, float y, float z, ColorInfo col, Shader shader, Consumer<TextureDraw> texdModifier) -
renderAttachedAndOverlaySprites
public void renderAttachedAndOverlaySprites(IsoDirections dir, float x, float y, float z, ColorInfo col, boolean bDoAttached, boolean bWallLightingPass, Shader shader, Consumer<TextureDraw> texdModifier) -
isSpriteInvisible
public boolean isSpriteInvisible() -
renderFxMask
public void renderFxMask(float x, float y, float z, boolean bDoAttached) -
renderObjectPicker
-
TestPathfindCollide
-
TestCollide
-
TestVision
-
getCurrentFrameTex
-
isMaskClicked
public boolean isMaskClicked(int x, int y) -
isMaskClicked
public boolean isMaskClicked(int x, int y, boolean flip) -
getMaskClickedY
public float getMaskClickedY(int x, int y, boolean flip) -
getCustomColor
-
setCustomColor
-
setCustomColor
public void setCustomColor(float r, float g, float b, float a) -
loadFromRemoteBuffer
-
loadFromRemoteBuffer
-
addToWorld
public void addToWorld()- Overrides:
addToWorldin classGameEntity
-
removeFromWorld
public void removeFromWorld()- Overrides:
removeFromWorldin classGameEntity
-
removeFromWorldToMeta
public final void removeFromWorldToMeta() -
reuseGridSquare
public void reuseGridSquare() -
removeFromSquare
public void removeFromSquare() -
transmitCustomColorToClients
public void transmitCustomColorToClients() -
transmitCompleteItemToClients
public void transmitCompleteItemToClients() -
transmitUpdatedSpriteToClients
-
transmitUpdatedSpriteToClients
public void transmitUpdatedSpriteToClients() -
transmitUpdatedSprite
public void transmitUpdatedSprite() -
sendObjectChange
-
sendObjectChange
-
sendObjectChange
-
saveChange
-
loadChange
-
transmitUpdatedSpriteToServer
Deprecated. -
transmitCompleteItemToServer
Deprecated. -
transmitModData
public void transmitModData() -
writeToRemoteBuffer
-
getObjectIndex
public int getObjectIndex() -
getMovingObjectIndex
public int getMovingObjectIndex() -
getSpecialObjectIndex
public int getSpecialObjectIndex() -
getStaticMovingObjectIndex
public int getStaticMovingObjectIndex() -
getWorldObjectIndex
public int getWorldObjectIndex() -
getOverlaySprite
-
setOverlaySprite
-
setOverlaySprite
-
setOverlaySpriteColor
public void setOverlaySpriteColor(float r, float g, float b, float a) -
getOverlaySpriteColor
-
setOverlaySprite
-
setOverlaySprite
public boolean setOverlaySprite(String spriteName, float r, float g, float b, float a, boolean bTransmit) -
hasOverlaySprite
public boolean hasOverlaySprite() -
haveSpecialTooltip
public boolean haveSpecialTooltip() -
setSpecialTooltip
public void setSpecialTooltip(boolean specialTooltip) -
getKeyId
public int getKeyId() -
setKeyId
public void setKeyId(int keyId) -
isHighlighted
public boolean isHighlighted() -
setHighlighted
public void setHighlighted(boolean highlight) -
setHighlighted
public void setHighlighted(boolean highlight, boolean renderOnce) -
isHighlightRenderOnce
public boolean isHighlightRenderOnce() -
setHighlightRenderOnce
public void setHighlightRenderOnce(boolean highlight) -
isHighlighted
public boolean isHighlighted(int playerIndex) -
setHighlighted
public void setHighlighted(int playerIndex, boolean highlight) -
setHighlighted
public void setHighlighted(int playerIndex, boolean highlight, boolean renderOnce) -
isHighlightRenderOnce
public boolean isHighlightRenderOnce(int playerIndex) -
setHighlightRenderOnce
public void setHighlightRenderOnce(int playerIndex, boolean highlight) -
getHighlightColor
-
setHighlightColor
-
setHighlightColor
public void setHighlightColor(float r, float g, float b, float a) -
getHighlightColor
-
setHighlightColor
-
setHighlightColor
public void setHighlightColor(int playerIndex, float r, float g, float b, float a) -
isBlink
public boolean isBlink() -
setBlink
public void setBlink(boolean blink) -
isBlink
public boolean isBlink(int playerIndex) -
setBlink
public void setBlink(int playerIndex, boolean blink) -
isSatChair
public boolean isSatChair() -
setSatChair
public void setSatChair(boolean satChair) -
checkHaveElectricity
public void checkHaveElectricity() -
checkAmbientSound
public void checkAmbientSound() -
getContainerCount
public int getContainerCount() -
getContainerByIndex
-
getContainerByType
-
getContainerByEitherType
-
addSecondaryContainer
-
getContainerIndex
-
removeAllContainers
public void removeAllContainers() -
createFluidContainersFromSpriteProperties
public void createFluidContainersFromSpriteProperties() -
createContainersFromSpriteProperties
public void createContainersFromSpriteProperties() -
isItemAllowedInContainer
-
isRemoveItemAllowedFromContainer
-
cleanWallBlood
public void cleanWallBlood() -
getWindRenderEffects
-
getObjectRenderEffects
-
setRenderEffect
-
getRenderEffectMaster
-
getRenderEffectObjectCount
public int getRenderEffectObjectCount() -
getRenderEffectObjectByIndex
-
setRenderEffect
-
removeRenderEffect
-
getObjectRenderEffectsToApply
-
destroyFence
-
getSpriteGridObjects
-
getSpriteGridObjectsExcludingSelf
-
getSpriteGridObjectsIncludingSelf
-
getSpriteGridObjects
-
isConnectedSpriteGridObject
-
isOnScreen
public boolean isOnScreen() -
setOutlineHighlightCol
-
getOutlineHighlightCol
public final int getOutlineHighlightCol(int playerIndex) -
setOutlineHighlightCol
-
setOutlineHighlightCol
public final void setOutlineHighlightCol(float r, float g, float b, float a) -
setOutlineHighlightCol
public final void setOutlineHighlightCol(int playerIndex, float r, float g, float b, float a) -
isOutlineHighlight
public final boolean isOutlineHighlight() -
isOutlineHighlight
public final boolean isOutlineHighlight(int playerIndex) -
setOutlineHighlight
public final void setOutlineHighlight(boolean isOutlineHighlight) -
setOutlineHighlight
public final void setOutlineHighlight(int playerIndex, boolean isOutlineHighlight) -
isOutlineHlAttached
public final boolean isOutlineHlAttached() -
isOutlineHlAttached
public final boolean isOutlineHlAttached(int playerIndex) -
setOutlineHlAttached
public void setOutlineHlAttached(boolean isOutlineHlAttached) -
setOutlineHlAttached
public final void setOutlineHlAttached(int playerIndex, boolean isOutlineHlAttached) -
isOutlineHlBlink
public boolean isOutlineHlBlink() -
isOutlineHlBlink
public final boolean isOutlineHlBlink(int playerIndex) -
setOutlineHlBlink
public void setOutlineHlBlink(boolean isOutlineHlBlink) -
setOutlineHlBlink
public final void setOutlineHlBlink(int playerIndex, boolean isOutlineHlBlink) -
unsetOutlineHighlight
public void unsetOutlineHighlight() -
getOutlineThickness
public float getOutlineThickness() -
setOutlineThickness
public void setOutlineThickness(float outlineThickness) -
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyedin interfaceThumpable
-
Thump
-
setMovedThumpable
public void setMovedThumpable(boolean movedThumpable) -
isMovedThumpable
public boolean isMovedThumpable() -
WeaponHit
-
getThumpableFor
- Specified by:
getThumpableForin interfaceThumpable
-
isExistInTheWorld
public boolean isExistInTheWorld() -
getThumpCondition
public float getThumpCondition()- Specified by:
getThumpConditionin interfaceThumpable
-
toString
-
getGameEntityType
- Specified by:
getGameEntityTypein classGameEntity
-
getEntityNetID
public long getEntityNetID()- Specified by:
getEntityNetIDin classGameEntity
-
isEntityValid
public boolean isEntityValid()- Specified by:
isEntityValidin classGameEntity
-
getMasterObject
-
isTent
public boolean isTent() -
getFacing
-
getTileName
-
spawnItemToObjectSurface
-
spawnItemToObjectSurface
-
spawnItemToObjectSurface
public InventoryItem spawnItemToObjectSurface(String item, boolean randomRotation, boolean checkForAdjacentCanStandSquare) -
addItemToObjectSurface
-
addItemToObjectSurface
-
addItemToObjectSurface
public InventoryItem addItemToObjectSurface(String item, boolean randomRotation, boolean spawnChecks) -
getRenderInfo
-
invalidateRenderChunkLevel
public void invalidateRenderChunkLevel(long dirtyFlags) -
invalidateVispolyChunkLevel
public void invalidateVispolyChunkLevel() -
hasAnimatedAttachments
public boolean hasAnimatedAttachments() -
renderAnimatedAttachments
-
getRenderSquare
-
setSpriteModelName
-
getSpriteModel
-
isAnimating
public boolean isAnimating() -
setAnimating
public void setAnimating(boolean bAnimating) -
onAnimationFinished
public void onAnimationFinished() -
isGrave
public boolean isGrave() -
getOnOverlay
-
setOnOverlay
-
clearOnOverlay
public void clearOnOverlay() -
shouldShowOnOverlay
public boolean shouldShowOnOverlay() -
getLightSource
-
setLightSource
-
checkLightSourceActive
public void checkLightSourceActive() -
isGenericCraftingSurface
public boolean isGenericCraftingSurface() -
isBush
public boolean isBush() -
isFascia
public boolean isFascia() -
getFasciaAttachedSquare
-
setExplored
public void setExplored(boolean isExplored) -
flagForHotSave
public void flagForHotSave() -
hasGridPower
public boolean hasGridPower() -
isObjectNoContainerOrEmpty
public boolean isObjectNoContainerOrEmpty() -
dumpContentsInSquare
public void dumpContentsInSquare() -
isPropaneBBQ
public boolean isPropaneBBQ() -
hasPropaneTank
public boolean hasPropaneTank() -
isFireInteractionObject
public boolean isFireInteractionObject() -
setLit
public void setLit(boolean lit) -
isLit
public boolean isLit() -
turnOn
public void turnOn() -
checkObjectPowered
public boolean checkObjectPowered() -
isStump
public boolean isStump() -
isOre
public boolean isOre() -
hasAdjacentCanStandSquare
public boolean hasAdjacentCanStandSquare() -
isWindow
public boolean isWindow() -
isNorthBlocked
public boolean isNorthBlocked()
-