Package zombie.iso
Class IsoGridSquare
java.lang.Object
zombie.iso.IsoGridSquare
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final class
static interface
static interface
static final class
static final class
static class
static final class
-
Field Summary
Modifier and TypeFieldDescriptionboolean
static float
float
float
static final IsoGridSquare.CellGetSquare
static final ArrayList<IsoGridSquare>
static boolean
int
static float
static int
long
boolean
boolean
int
static int
boolean
static final ConcurrentLinkedQueue<IsoGridSquare>
static boolean
boolean
boolean
final IsoGridSquare.ILighting[]
static ArrayDeque<IsoGridSquare>
final IsoGridSquare[]
int
int
boolean
static int
static float
int
boolean
boolean
static boolean
static boolean
int
static final int
static final int
static final int
static final int
int
int
int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCorpse
(IsoDeadBody body, boolean bRemote) void
void
void
AddSpecialObject
(IsoObject obj, int index) void
AddStairs
(boolean north, int level, String sprite, String pillarSprite, se.krka.kahlua.vm.KahluaTable table) void
AddTileObject
(IsoObject obj) void
AddTileObject
(IsoObject obj, int index) AddWorldInventoryItem
(String String, float x, float y, float height) void
AddWorldInventoryItem
(String String, float x, float y, float height, int nbr) AddWorldInventoryItem
(InventoryItem item, float x, float y, float height) AddWorldInventoryItem
(InventoryItem item, float x, float y, float height, boolean transmit) static boolean
void
Burn()
void
Burn
(boolean explode) void
BurnTick()
void
BurnWalls
(boolean explode) void
boolean
CalculateCollide
(IsoGridSquare gridSquare, boolean bVision, boolean bPathfind, boolean bIgnoreSolidTrans) boolean
CalculateCollide
(IsoGridSquare gridSquare, boolean bVision, boolean bPathfind, boolean bIgnoreSolidTrans, boolean bIgnoreSolid) boolean
CalculateCollide
(IsoGridSquare gridSquare, boolean bVision, boolean bPathfind, boolean bIgnoreSolidTrans, boolean bIgnoreSolid, IsoGridSquare.GetSquare getter) boolean
CalculateVisionBlocked
(IsoGridSquare gridSquare) boolean
CalculateVisionBlocked
(IsoGridSquare gridSquare, IsoGridSquare.GetSquare getter) void
CalcVisibility
(int playerIndex) void
checkRoomSeen
(int playerIndex) void
void
void
void
boolean
Check if there's at least one solid floor around this tile, used to build wooden floorboolean
damageSpriteSheetRopeFromBottom
(IsoPlayer player, boolean north) void
void
void
void
discard()
float
DistTo
(int x, int y) float
DistTo
(IsoGridSquare sq) float
DistTo
(IsoMovingObject other) float
float
DistToProper
(IsoMovingObject other) void
DoCutawayShader
(IsoObject obj, IsoDirections dir, boolean cutawaySW, boolean cutawayNW, boolean cutawayNE, boolean bHasDoorN, boolean bHasDoorW, boolean bHasWindowN, boolean bHasWindowW, WallShaperWhole texdModifier) void
DoCutawayShaderSprite
(IsoSprite sprite, IsoDirections dir, boolean cutawaySW, boolean cutawayNW, boolean cutawayNE) void
DoSplat
(String id, boolean bFlip, IsoFlagType prop, float offX, float offZ, float alpha) int
DoWallLightingN
(IsoObject obj, int stenciled, boolean cutawayNW, boolean cutawayNE, boolean bHasDoorN, boolean bHasWindowN, Shader wallRenderShader) int
DoWallLightingNW
(IsoObject obj, int stenciled, boolean cutawaySW, boolean cutawayNW, boolean cutawayNE, boolean bHasDoorN, boolean bHasDoorW, boolean bHasWindowN, boolean bHasWindowW, Shader wallRenderShader) int
DoWallLightingW
(IsoObject obj, int stenciled, boolean cutawaySW, boolean cutawayNW, boolean bHasDoorW, boolean bHasWindowW, Shader wallRenderShader) void
drawCircleExplosion
(int radius, IsoTrap trap, IsoTrap.ExplosionMode explosionMode) void
void
explode()
void
void
FindEnemy
(IsoGameCharacter g, int range, ArrayList<IsoMovingObject> EnemyList) FindEnemy
(IsoGameCharacter g, int range, ArrayList<IsoMovingObject> EnemyList, IsoGameCharacter RangeTest, int TestRangeMax) FindFriend
(IsoGameCharacter g, int range, Stack<IsoGameCharacter> EnemyList) void
void
float
getApparentZ
(float dx, float dy) getBedTo
(IsoGridSquare next) boolean
getCanSee
(int playerIndex) getCell()
getChunk()
boolean
getCollideMatrix
(int dx, int dy, int dz) getContainerItem
(String type) getCurtain
(IsoObjectType curtainType) float
getDarkMulti
(int playerIndex) static float
static ColorInfo
getDoor
(boolean north) getDoorFrameTo
(IsoGridSquare next) getDoorOrWindow
(boolean north) getDoorOrWindowOrWindowFrame
(IsoDirections dir, boolean ignoreOpen) getDoorTo
(IsoGridSquare next) Get the door between this grid and the next in parametergetE()
getFloor()
float
getGridSneakModifier
(boolean onlySolidTrans) Check if there's any object on this grid that has a sneak modifier, we use this to check if we reduce the chance of being spotted while crouchinglong
Deprecated.int
Deprecated.getHoppable
(boolean north) getHoppableThumpable
(boolean north) getHoppableTo
(IsoGridSquare next) getHoppableWall
(boolean bNorth) int
float
getID()
boolean
getIsDissolved
(int playerIndex, long currentTimeMillis) float
float
float
static int
float
getLightLevel
(int playerIndex) se.krka.kahlua.vm.KahluaTable
se.krka.kahlua.vm.KahluaTable
static boolean
getMatrixBit
(int matrix, byte x, byte y, byte z) static boolean
getMatrixBit
(int matrix, int x, int y, int z) se.krka.kahlua.vm.KahluaTable
getN()
static IsoGridSquare
getNew
(ArrayDeque<IsoGridSquare> isoGridSquareCache, IsoCell cell, SliceY slice, int x, int y, int z) static IsoGridSquare
getOpenDoor
(IsoDirections dir) boolean
getPathMatrix
(int dx, int dy, int dz) boolean
getPlayerCutawayFlag
(int playerIndex, long currentTimeMillis) int
float
static int
getRoom()
int
int
getS()
boolean
getSeen
(int playerIndex) static void
getSquaresForThread
(ArrayDeque<IsoGridSquare> isoGridSquareCacheDest, int count) float
getTargetDarkMulti
(int playerIndex) getThumpableWall
(boolean bNorth) getThumpableWallOrHoppable
(boolean bNorth) getThumpableWindow
(boolean north) getTileInDirection
(IsoDirections directions) float
int
int
int
getTree()
int
getVertLight
(int i, int playerIndex) boolean
getVisionMatrix
(int dx, int dy, int dz) getW()
getWall
(boolean bNorth) getWallHoppable
(boolean north) int
getWater()
getWindow
(boolean north) getWindowFrame
(boolean north) Get the IsoThumpable window between this grid and the next in parametergetWindowTo
(IsoGridSquare next) Get the IsoWindow window between this grid and the next in parameterint
getX()
int
getY()
int
getZ()
getZone()
boolean
Has
(IsoObjectType type) boolean
hasBlockedDoor
(boolean north) boolean
hasBlockedWindow
(boolean north) boolean
hasDoorOnEdge
(IsoDirections edge, boolean ignoreOpen) boolean
boolean
hasFlies()
boolean
hasFloor
(boolean north) Check if a tile has a solid floor, used to build stuff at z level > 0 Also gonna check the tile "behind" the one w<e're trying to build something has a floor (only one is required)int
Deprecated.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
HasTree()
boolean
boolean
boolean
boolean
haveDoor()
boolean
boolean
haveFire()
void
interpolateLight
(ColorInfo inf, float x, float y) void
boolean
boolean
Is
(IsoFlagType flag) boolean
static boolean
boolean
isBlockedTo
(IsoGridSquare other) boolean
boolean
boolean
isCanSee
(int playerIndex) boolean
boolean
isCouldSee
(int playerIndex) boolean
isDoorBlockedTo
(IsoGridSquare other) boolean
isDoorTo
(IsoGridSquare other) boolean
isFree
(boolean bCountOtherCharacters) boolean
isFreeOrMidair
(boolean bCountOtherCharacters) boolean
isFreeOrMidair
(boolean bCountOtherCharacters, boolean bDoZombie) boolean
isHoppableTo
(IsoGridSquare other) boolean
boolean
isNotBlocked
(boolean bCountOtherCharacters) boolean
boolean
IsOnScreen
(boolean halfTileBorder) boolean
boolean
boolean
void
isSafeToSpawn
(IsoGridSquare sq, int depth) boolean
isSameStaircase
(int x, int y, int z) boolean
isSeen
(int playerIndex) boolean
isSolid()
boolean
boolean
boolean
boolean
isSomethingTo
(IsoGridSquare other) boolean
boolean
isWallTo
(IsoGridSquare other) boolean
isWindowBlockedTo
(IsoGridSquare other) boolean
isWindowTo
(IsoGridSquare other) void
load
(ByteBuffer b, int WorldVersion) void
load
(ByteBuffer b, int WorldVersion, boolean IS_DEBUG_SAVE) int
placeWallAndDoorCheck
(IsoObject obj, int index) long
long
Deprecated.void
RecalcAllWithNeighbours
(boolean bDoReverse) void
RecalcAllWithNeighbours
(boolean bDoReverse, IsoGridSquare.GetSquare getter) void
void
Deprecated.void
void
void
ReCalculateCollide
(IsoGridSquare square) void
ReCalculateCollide
(IsoGridSquare square, IsoGridSquare.GetSquare getter) void
ReCalculatePathFind
(IsoGridSquare square) void
ReCalculatePathFind
(IsoGridSquare square, IsoGridSquare.GetSquare getter) void
void
ReCalculateVisionBlocked
(IsoGridSquare square, IsoGridSquare.GetSquare getter) void
void
removeBlood
(boolean remote, boolean onlyWall) void
removeCorpse
(IsoDeadBody body, boolean bRemote) void
removeErosionObject
(String type) void
boolean
removeSheetRopeFromBottom
(IsoPlayer player, boolean north) int
int
void
void
renderCharacters
(int maxZ, boolean deadRender, boolean doBlendFunc) void
renderDeferredCharacters
(int maxZ) boolean
RenderMinusFloorFxMask
(int maxZ, boolean doSE, boolean vegitationRender) void
void
void
void
save
(ByteBuffer output, ObjectOutputStream outputObj) void
save
(ByteBuffer output, ObjectOutputStream outputObj, boolean IS_DEBUG_SAVE) float
scoreAsWaypoint
(int x, int y) static void
setbDoSlowPathfinding
(boolean abDoSlowPathfinding) void
setCachedIsFree
(boolean CachedIsFree) void
setCacheIsFree
(boolean CacheIsFree) void
setCanSee
(int playerIndex, boolean canSee) static void
void
setCouldSee
(int playerIndex, boolean bCouldSee) void
setDarkMulti
(int playerIndex, float darkMulti) static void
setDarkStep
(float aDarkStep) void
void
setHasFlies
(boolean hasFlies) void
setHaveElectricity
(boolean haveElectricity) void
void
setID
(int ID) void
setIsDissolved
(int playerIndex, boolean bDissolved, long currentTimeMillis) void
void
setIsSeen
(int playerIndex, boolean bSeen) void
setLampostTotalB
(float lampostTotalB) void
setLampostTotalG
(float lampostTotalG) void
setLampostTotalR
(float lampostTotalR) static void
setLightcache
(int aLightcache) void
setLightInfluenceB
(ArrayList<Float> LightInfluenceB) void
setLightInfluenceG
(ArrayList<Float> LightInfluenceG) void
setLightInfluenceR
(ArrayList<Float> LightInfluenceR) void
static int
setMatrixBit
(int matrix, byte x, byte y, byte z, boolean val) static int
setMatrixBit
(int matrix, int x, int y, int z, boolean val) void
void
setOverlayDone
(boolean overlayDone) void
setPlayerCutawayFlag
(int playerIndex, boolean bCutaway, long currentTimeMillis) void
setRainDrop
(IsoRaindrop drop) void
setRainSplash
(IsoRainSplash splash) static void
setRecalcLightTime
(int aRecalcLightTime) void
void
setRoomID
(int roomID) void
void
setSolidFloor
(boolean SolidFloor) void
setSolidFloorCached
(boolean SolidFloorCached) void
setTargetDarkMulti
(int playerIndex, float targetDarkMulti) void
setTrapPositionX
(int trapPositionX) void
setTrapPositionY
(int trapPositionY) void
setTrapPositionZ
(int trapPositionZ) void
setVertLight
(int i, int col, int playerIndex) void
void
setX
(int x) void
setY
(int y) void
setZ
(int z) boolean
void
smoke()
void
void
splatBlood
(int dist, float alpha) void
Deprecated.void
stopFire()
void
switchLight
(boolean active) void
syncIsoTrap
(HandWeapon weapon) boolean
testCollideAdjacent
(IsoMovingObject collideObject, int x, int y, int z) boolean
testCollideAdjacentAdvanced
(int x, int y, int z, boolean ignoreDoors) boolean
testPathFindAdjacent
(IsoMovingObject mover, int x, int y, int z) boolean
testPathFindAdjacent
(IsoMovingObject mover, int x, int y, int z, IsoGridSquare.GetSquare getter) testVisionAdjacent
(int x, int y, int z, boolean specialDiag, boolean bIgnoreDoors) static boolean
toBoolean
(byte[] data) void
transmitAddObjectToSquare
(IsoObject obj, int index) void
int
void
void
boolean
-
Field Details
-
collideMatrix
public int collideMatrix -
pathMatrix
public int pathMatrix -
visionMatrix
public int visionMatrix -
room
-
w
-
nw
-
sw
-
s
-
n
-
ne
-
se
-
e
-
haveSheetRope
public boolean haveSheetRope -
ObjectsSyncCount
public int ObjectsSyncCount -
roofHideBuilding
-
bFlattenGrassEtc
public boolean bFlattenGrassEtc -
lighting
-
x
public int x -
y
public int y -
z
public int z -
CachedScreenX
public float CachedScreenX -
CachedScreenY
public float CachedScreenY -
SolidFloorCached
public boolean SolidFloorCached -
SolidFloor
public boolean SolidFloor -
chunk
-
roomID
public int roomID -
ID
-
zone
-
haveRoof
public boolean haveRoof -
isoGridSquareCache
-
loadGridSquareCache
-
gridSquareCacheEmptyTimer
public static int gridSquareCacheEmptyTimer -
RecalcLightTime
public static int RecalcLightTime -
choices
-
USE_WALL_SHADER
public static boolean USE_WALL_SHADER -
isSolidFloorCache
public boolean isSolidFloorCache -
isExteriorCache
public boolean isExteriorCache -
isVegitationCache
public boolean isVegitationCache -
hourLastSeen
public int hourLastSeen -
IDMax
public static int IDMax -
hashCodeObjects
public long hashCodeObjects -
cellGetSquare
-
propertiesDirty
public boolean propertiesDirty -
UseSlowCollision
public static boolean UseSlowCollision -
isOnScreenLast
public static boolean isOnScreenLast -
CircleStencil
public static boolean CircleStencil -
rmod
public static float rmod -
gmod
public static float gmod -
bmod
public static float bmod -
WALL_TYPE_N
public static final int WALL_TYPE_N- See Also:
-
WALL_TYPE_S
public static final int WALL_TYPE_S- See Also:
-
WALL_TYPE_W
public static final int WALL_TYPE_W- See Also:
-
WALL_TYPE_E
public static final int WALL_TYPE_E- See Also:
-
Constructor Details
-
IsoGridSquare
-
-
Method Details
-
getMatrixBit
public static boolean getMatrixBit(int matrix, int x, int y, int z) -
getMatrixBit
public static boolean getMatrixBit(int matrix, byte x, byte y, byte z) -
setMatrixBit
public static int setMatrixBit(int matrix, int x, int y, int z, boolean val) -
setMatrixBit
public static int setMatrixBit(int matrix, byte x, byte y, byte z, boolean val) -
setPlayerCutawayFlag
public void setPlayerCutawayFlag(int playerIndex, boolean bCutaway, long currentTimeMillis) -
getPlayerCutawayFlag
public boolean getPlayerCutawayFlag(int playerIndex, long currentTimeMillis) -
setIsDissolved
public void setIsDissolved(int playerIndex, boolean bDissolved, long currentTimeMillis) -
getIsDissolved
public boolean getIsDissolved(int playerIndex, long currentTimeMillis) -
getWater
-
clearWater
public void clearWater() -
getPuddles
-
clearPuddles
public void clearPuddles() -
getPuddlesInGround
public float getPuddlesInGround() -
getOcclusionData
-
getOrCreateOcclusionData
-
softClear
public void softClear() -
getGridSneakModifier
public float getGridSneakModifier(boolean onlySolidTrans) Check if there's any object on this grid that has a sneak modifier, we use this to check if we reduce the chance of being spotted while crouching- Returns:
-
isSomethingTo
-
getTransparentWallTo
-
isWallTo
-
isWindowTo
-
haveDoor
public boolean haveDoor() -
hasDoorOnEdge
-
isDoorTo
-
isBlockedTo
-
isWindowBlockedTo
-
hasBlockedWindow
public boolean hasBlockedWindow(boolean north) -
isDoorBlockedTo
-
hasBlockedDoor
public boolean hasBlockedDoor(boolean north) -
getCurtain
-
getHoppable
-
getHoppableTo
-
isHoppableTo
-
discard
public void discard() -
DistTo
public float DistTo(int x, int y) -
DistTo
-
DistToProper
-
DistTo
-
DistToProper
-
isSafeToSpawn
public boolean isSafeToSpawn() -
isSafeToSpawn
-
auth
-
DoCutawayShader
public void DoCutawayShader(IsoObject obj, IsoDirections dir, boolean cutawaySW, boolean cutawayNW, boolean cutawayNE, boolean bHasDoorN, boolean bHasDoorW, boolean bHasWindowN, boolean bHasWindowW, WallShaperWhole texdModifier) -
DoCutawayShaderSprite
public void DoCutawayShaderSprite(IsoSprite sprite, IsoDirections dir, boolean cutawaySW, boolean cutawayNW, boolean cutawayNE) -
DoWallLightingNW
-
DoWallLightingN
-
DoWallLightingW
-
getLuaMovingObjectList
public se.krka.kahlua.vm.KahluaTable getLuaMovingObjectList() -
Is
-
Is
-
Has
-
DeleteTileObject
-
getLuaTileObjectList
public se.krka.kahlua.vm.KahluaTable getLuaTileObjectList() -
HasStairs
public boolean HasStairs() -
HasStairsNorth
public boolean HasStairsNorth() -
HasStairsWest
public boolean HasStairsWest() -
HasStairsBelow
public boolean HasStairsBelow() -
HasElevatedFloor
public boolean HasElevatedFloor() -
isSameStaircase
public boolean isSameStaircase(int x, int y, int z) -
HasSlopedRoof
public boolean HasSlopedRoof() -
HasSlopedRoofWest
public boolean HasSlopedRoofWest() -
HasSlopedRoofNorth
public boolean HasSlopedRoofNorth() -
HasTree
public boolean HasTree() -
getTree
-
shouldSave
public boolean shouldSave() -
save
- Throws:
IOException
-
save
public void save(ByteBuffer output, ObjectOutputStream outputObj, boolean IS_DEBUG_SAVE) throws IOException - Throws:
IOException
-
isCommonGrass
public boolean isCommonGrass() -
toBoolean
public static boolean toBoolean(byte[] data) -
removeCorpse
-
getDeadBody
-
getDeadBodys
-
addCorpse
-
getBrokenGlass
-
addBrokenGlass
-
load
- Throws:
IOException
-
load
- Throws:
IOException
-
scoreAsWaypoint
public float scoreAsWaypoint(int x, int y) -
InvalidateSpecialObjectPaths
public void InvalidateSpecialObjectPaths() -
isSolid
public boolean isSolid() -
isSolidTrans
public boolean isSolidTrans() -
isFree
public boolean isFree(boolean bCountOtherCharacters) -
isFreeOrMidair
public boolean isFreeOrMidair(boolean bCountOtherCharacters) -
isFreeOrMidair
public boolean isFreeOrMidair(boolean bCountOtherCharacters, boolean bDoZombie) -
connectedWithFloor
public boolean connectedWithFloor()Check if there's at least one solid floor around this tile, used to build wooden floor- Returns:
-
hasFloor
public boolean hasFloor(boolean north) Check if a tile has a solid floor, used to build stuff at z level > 0 Also gonna check the tile "behind" the one w<e're trying to build something has a floor (only one is required)- Parameters:
north
- is the item we're trying to place facing north or not- Returns:
-
isNotBlocked
public boolean isNotBlocked(boolean bCountOtherCharacters) -
getDoor
-
getIsoDoor
-
getDoorTo
Get the door between this grid and the next in parameter- Parameters:
next
-- Returns:
-
getWindow
-
getWindow
-
getWindowTo
Get the IsoWindow window between this grid and the next in parameter- Parameters:
next
-- Returns:
-
isAdjacentToWindow
public boolean isAdjacentToWindow() -
getThumpableWindow
-
getWindowThumpableTo
Get the IsoThumpable window between this grid and the next in parameter- Parameters:
next
-- Returns:
-
getHoppableThumpable
-
getHoppableThumpableTo
-
getWallHoppable
-
getWallHoppableTo
-
getBedTo
-
getWindowFrame
-
getWindowFrameTo
-
hasWindowFrame
public boolean hasWindowFrame() -
hasWindowOrWindowFrame
public boolean hasWindowOrWindowFrame() -
getSheetRope
-
damageSpriteSheetRopeFromBottom
-
removeSheetRopeFromBottom
-
testCollideSpecialObjects
-
getDoorFrameTo
-
getSquaresForThread
-
getNew
-
getNew
public static IsoGridSquare getNew(ArrayDeque<IsoGridSquare> isoGridSquareCache, IsoCell cell, SliceY slice, int x, int y, int z) -
getHashCodeObjects
Deprecated. -
getHashCodeObjectsInt
Deprecated. -
recalcHashCodeObjects
Deprecated. -
hashCodeNoOverride
Deprecated. -
getTileInDirection
-
getThumpableWall
-
getHoppableWall
-
getThumpableWallOrHoppable
-
getWallFull
-
getWall
-
getWallSE
-
getFloor
-
getPlayerBuiltFloor
-
interpolateLight
-
EnsureSurroundNotNull
public void EnsureSurroundNotNull() -
addFloor
-
AddStairs
public IsoThumpable AddStairs(boolean north, int level, String sprite, String pillarSprite, se.krka.kahlua.vm.KahluaTable table) -
RecalcAllWithNeighbours
public void RecalcAllWithNeighbours(boolean bDoReverse) -
RecalcAllWithNeighbours
-
RecalcAllWithNeighboursMineOnly
public void RecalcAllWithNeighboursMineOnly() -
hasSupport
public boolean hasSupport() -
getID
- Returns:
- the ID
-
setID
public void setID(int ID) - Parameters:
ID
- the ID to set
-
DirtySlice
public void DirtySlice() -
setHourSeenToCurrent
public void setHourSeenToCurrent() -
splatBlood
public void splatBlood(int dist, float alpha) -
haveBlood
public boolean haveBlood() -
removeBlood
public void removeBlood(boolean remote, boolean onlyWall) -
DoSplat
public void DoSplat(String id, boolean bFlip, IsoFlagType prop, float offX, float offZ, float alpha) -
ClearTileObjects
public void ClearTileObjects() -
ClearTileObjectsExceptFloor
public void ClearTileObjectsExceptFloor() -
RemoveTileObject
-
RemoveTileObjectErosionNoRecalc
-
AddSpecialObject
-
AddSpecialObject
-
AddTileObject
-
AddTileObject
-
placeWallAndDoorCheck
-
transmitAddObjectToSquare
-
transmitRemoveItemFromSquare
-
transmitRemoveItemFromSquareOnServer
-
transmitModdata
public void transmitModdata() -
AddWorldInventoryItem
-
AddWorldInventoryItem
-
AddWorldInventoryItem
-
AddWorldInventoryItem
public InventoryItem AddWorldInventoryItem(InventoryItem item, float x, float y, float height, boolean transmit) -
restackSheetRope
public void restackSheetRope() -
Burn
public void Burn() -
Burn
public void Burn(boolean explode) -
BurnWalls
public void BurnWalls(boolean explode) -
BurnWallsTCOnly
public void BurnWallsTCOnly() -
BurnTick
public void BurnTick() -
CalculateCollide
public boolean CalculateCollide(IsoGridSquare gridSquare, boolean bVision, boolean bPathfind, boolean bIgnoreSolidTrans) -
CalculateCollide
public boolean CalculateCollide(IsoGridSquare gridSquare, boolean bVision, boolean bPathfind, boolean bIgnoreSolidTrans, boolean bIgnoreSolid) -
CalculateCollide
public boolean CalculateCollide(IsoGridSquare gridSquare, boolean bVision, boolean bPathfind, boolean bIgnoreSolidTrans, boolean bIgnoreSolid, IsoGridSquare.GetSquare getter) -
CalculateVisionBlocked
-
CalculateVisionBlocked
-
FindFriend
public IsoGameCharacter FindFriend(IsoGameCharacter g, int range, Stack<IsoGameCharacter> EnemyList) -
FindEnemy
public IsoGameCharacter FindEnemy(IsoGameCharacter g, int range, ArrayList<IsoMovingObject> EnemyList, IsoGameCharacter RangeTest, int TestRangeMax) -
FindEnemy
public IsoGameCharacter FindEnemy(IsoGameCharacter g, int range, ArrayList<IsoMovingObject> EnemyList) -
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ() -
RecalcProperties
public void RecalcProperties() -
RecalcPropertiesIfNeeded
public void RecalcPropertiesIfNeeded() -
ReCalculateCollide
-
ReCalculateCollide
-
ReCalculatePathFind
-
ReCalculatePathFind
-
ReCalculateVisionBlocked
-
ReCalculateVisionBlocked
-
testCollideAdjacent
-
testCollideAdjacentAdvanced
public boolean testCollideAdjacentAdvanced(int x, int y, int z, boolean ignoreDoors) -
setCollisionMode
public static void setCollisionMode() -
testPathFindAdjacent
-
testPathFindAdjacent
public boolean testPathFindAdjacent(IsoMovingObject mover, int x, int y, int z, IsoGridSquare.GetSquare getter) -
testVisionAdjacent
public LosUtil.TestResults testVisionAdjacent(int x, int y, int z, boolean specialDiag, boolean bIgnoreDoors) -
TreatAsSolidFloor
public boolean TreatAsSolidFloor() -
AddSpecialTileObject
-
renderCharacters
public void renderCharacters(int maxZ, boolean deadRender, boolean doBlendFunc) -
renderDeferredCharacters
public void renderDeferredCharacters(int maxZ) -
switchLight
public void switchLight(boolean active) -
removeLightSwitch
public void removeLightSwitch() -
IsOnScreen
public boolean IsOnScreen() -
IsOnScreen
public boolean IsOnScreen(boolean halfTileBorder) -
setLightInfoServerGUIOnly
-
RenderOpenDoorOnly
public void RenderOpenDoorOnly() -
RenderMinusFloorFxMask
public boolean RenderMinusFloorFxMask(int maxZ, boolean doSE, boolean vegitationRender) -
getContainerItem
-
StartFire
Deprecated. -
explode
public void explode() -
getHourLastSeen
public int getHourLastSeen() -
getHoursSinceLastSeen
public float getHoursSinceLastSeen() -
CalcVisibility
public void CalcVisibility(int playerIndex) -
getZombie
-
getPlayer
-
getDarkStep
public static float getDarkStep()- Returns:
- the darkStep
-
setDarkStep
public static void setDarkStep(float aDarkStep) - Parameters:
aDarkStep
- the darkStep to set
-
getRecalcLightTime
public static int getRecalcLightTime()- Returns:
- the RecalcLightTime
-
setRecalcLightTime
public static void setRecalcLightTime(int aRecalcLightTime) - Parameters:
aRecalcLightTime
- the RecalcLightTime to set
-
getLightcache
public static int getLightcache()- Returns:
- the lightcache
-
setLightcache
public static void setLightcache(int aLightcache) - Parameters:
aLightcache
- the lightcache to set
-
isCouldSee
public boolean isCouldSee(int playerIndex) - Returns:
- the bCouldSee
-
setCouldSee
public void setCouldSee(int playerIndex, boolean bCouldSee) - Parameters:
bCouldSee
- the bCouldSee to set
-
isCanSee
public boolean isCanSee(int playerIndex) - Returns:
- the canSee
-
setCanSee
public void setCanSee(int playerIndex, boolean canSee) - Parameters:
canSee
- the canSee to set
-
getCell
- Returns:
- the getCell()
-
getE
- Returns:
- the e
-
setE
- Parameters:
e
- the e to set
-
getLightInfluenceB
- Returns:
- the LightInfluenceB
-
setLightInfluenceB
- Parameters:
LightInfluenceB
- the LightInfluenceB to set
-
getLightInfluenceG
- Returns:
- the LightInfluenceG
-
setLightInfluenceG
- Parameters:
LightInfluenceG
- the LightInfluenceG to set
-
getLightInfluenceR
- Returns:
- the LightInfluenceR
-
setLightInfluenceR
- Parameters:
LightInfluenceR
- the LightInfluenceR to set
-
getStaticMovingObjects
- Returns:
- the StaticMovingObjects
-
getMovingObjects
- Returns:
- the MovingObjects
-
getN
- Returns:
- the n
-
setN
- Parameters:
n
- the n to set
-
getObjects
- Returns:
- the Objects
-
getProperties
- Returns:
- the Properties
-
getRoom
- Returns:
- the room
-
setRoom
- Parameters:
room
- the room to set
-
getBuilding
-
getS
- Returns:
- the s
-
setS
- Parameters:
s
- the s to set
-
getSpecialObjects
- Returns:
- the SpecialObjects
-
getW
- Returns:
- the w
-
setW
- Parameters:
w
- the w to set
-
getLampostTotalR
public float getLampostTotalR()- Returns:
- the lampostTotalR
-
setLampostTotalR
public void setLampostTotalR(float lampostTotalR) - Parameters:
lampostTotalR
- the lampostTotalR to set
-
getLampostTotalG
public float getLampostTotalG()- Returns:
- the lampostTotalG
-
setLampostTotalG
public void setLampostTotalG(float lampostTotalG) - Parameters:
lampostTotalG
- the lampostTotalG to set
-
getLampostTotalB
public float getLampostTotalB()- Returns:
- the lampostTotalB
-
setLampostTotalB
public void setLampostTotalB(float lampostTotalB) - Parameters:
lampostTotalB
- the lampostTotalB to set
-
isSeen
public boolean isSeen(int playerIndex) - Returns:
- the bSeen
-
setIsSeen
public void setIsSeen(int playerIndex, boolean bSeen) - Parameters:
bSeen
- the bSeen to set
-
getDarkMulti
public float getDarkMulti(int playerIndex) - Returns:
- the darkMulti
-
setDarkMulti
public void setDarkMulti(int playerIndex, float darkMulti) - Parameters:
darkMulti
- the darkMulti to set
-
getTargetDarkMulti
public float getTargetDarkMulti(int playerIndex) - Returns:
- the targetDarkMulti
-
setTargetDarkMulti
public void setTargetDarkMulti(int playerIndex, float targetDarkMulti) - Parameters:
targetDarkMulti
- the targetDarkMulti to set
-
setX
public void setX(int x) - Parameters:
x
- the x to set
-
setY
public void setY(int y) - Parameters:
y
- the y to set
-
setZ
public void setZ(int z) - Parameters:
z
- the z to set
-
getDeferedCharacters
- Returns:
- the DeferedCharacters
-
addDeferredCharacter
-
isCacheIsFree
public boolean isCacheIsFree()- Returns:
- the CacheIsFree
-
setCacheIsFree
public void setCacheIsFree(boolean CacheIsFree) - Parameters:
CacheIsFree
- the CacheIsFree to set
-
isCachedIsFree
public boolean isCachedIsFree()- Returns:
- the CachedIsFree
-
setCachedIsFree
public void setCachedIsFree(boolean CachedIsFree) - Parameters:
CachedIsFree
- the CachedIsFree to set
-
isbDoSlowPathfinding
public static boolean isbDoSlowPathfinding()- Returns:
- the bDoSlowPathfinding
-
setbDoSlowPathfinding
public static void setbDoSlowPathfinding(boolean abDoSlowPathfinding) - Parameters:
abDoSlowPathfinding
- the bDoSlowPathfinding to set
-
isSolidFloorCached
public boolean isSolidFloorCached()- Returns:
- the SolidFloorCached
-
setSolidFloorCached
public void setSolidFloorCached(boolean SolidFloorCached) - Parameters:
SolidFloorCached
- the SolidFloorCached to set
-
isSolidFloor
public boolean isSolidFloor()- Returns:
- the SolidFloor
-
setSolidFloor
public void setSolidFloor(boolean SolidFloor) - Parameters:
SolidFloor
- the SolidFloor to set
-
getDefColorInfo
- Returns:
- the defColorInfo
-
isOutside
public boolean isOutside() -
HasPushable
public boolean HasPushable() -
setRoomID
public void setRoomID(int roomID) -
getRoomID
public int getRoomID() -
getCanSee
public boolean getCanSee(int playerIndex) -
getSeen
public boolean getSeen(int playerIndex) -
getChunk
-
getDoorOrWindow
-
getDoorOrWindowOrWindowFrame
-
getOpenDoor
-
removeWorldObject
-
removeAllWorldObjects
public void removeAllWorldObjects() -
getWorldObjects
-
getLocalTemporaryObjects
-
getModData
public se.krka.kahlua.vm.KahluaTable getModData() -
hasModData
public boolean hasModData() -
getHasTypes
-
setVertLight
public void setVertLight(int i, int col, int playerIndex) -
getVertLight
public int getVertLight(int i, int playerIndex) -
setRainDrop
-
getRainDrop
-
setRainSplash
-
getRainSplash
-
getZone
-
getZoneType
-
isOverlayDone
public boolean isOverlayDone() -
setOverlayDone
public void setOverlayDone(boolean overlayDone) -
getErosionData
-
disableErosion
public void disableErosion() -
removeErosionObject
-
syncIsoTrap
-
drawCircleExplosion
-
explosion
-
smoke
public void smoke() -
explodeTrap
public void explodeTrap() -
getTrapPositionX
public int getTrapPositionX() -
setTrapPositionX
public void setTrapPositionX(int trapPositionX) -
getTrapPositionY
public int getTrapPositionY() -
setTrapPositionY
public void setTrapPositionY(int trapPositionY) -
getTrapPositionZ
public int getTrapPositionZ() -
setTrapPositionZ
public void setTrapPositionZ(int trapPositionZ) -
haveElectricity
public boolean haveElectricity() -
setHaveElectricity
public void setHaveElectricity(boolean haveElectricity) -
getGenerator
-
stopFire
public void stopFire() -
transmitStopFire
public void transmitStopFire() -
playSound
-
playSound
Deprecated. -
FixStackableObjects
public void FixStackableObjects() -
fixPlacedItemRenderOffsets
public void fixPlacedItemRenderOffsets() -
getVehicleContainer
-
isVehicleIntersecting
public boolean isVehicleIntersecting() -
getCompost
-
setIsoWorldRegion
-
getIsoWorldRegion
-
ResetIsoWorldRegion
public void ResetIsoWorldRegion() -
isInARoom
public boolean isInARoom() -
getRoomSize
public int getRoomSize() -
getWallType
public int getWallType() -
getPuddlesDir
public int getPuddlesDir() -
haveFire
public boolean haveFire() -
getRoofHideBuilding
-
getAdjacentSquare
-
getAdjacentPathSquare
-
getApparentZ
public float getApparentZ(float dx, float dy) -
getTotalWeightOfItemsOnFloor
public float getTotalWeightOfItemsOnFloor() -
getCollideMatrix
public boolean getCollideMatrix(int dx, int dy, int dz) -
getPathMatrix
public boolean getPathMatrix(int dx, int dy, int dz) -
getVisionMatrix
public boolean getVisionMatrix(int dx, int dy, int dz) -
checkRoomSeen
public void checkRoomSeen(int playerIndex) -
hasFlies
public boolean hasFlies() -
setHasFlies
public void setHasFlies(boolean hasFlies) -
getLightLevel
public float getLightLevel(int playerIndex)
-