Initial path refactor
This commit is contained in:
@@ -464,13 +464,15 @@ public class Pathfinder implements Runnable{
|
|||||||
/** Holds a copy of tile data for a specific tile position. */
|
/** Holds a copy of tile data for a specific tile position. */
|
||||||
@Struct
|
@Struct
|
||||||
class PathTileStruct{
|
class PathTileStruct{
|
||||||
//traversal cost
|
//base traversal cost
|
||||||
short cost;
|
short cost;
|
||||||
//team of block, if applicable (0 by default)
|
//team of block, if applicable (0 by default)
|
||||||
byte team;
|
byte team;
|
||||||
//whether it's viable to pass this block
|
//general solid state
|
||||||
boolean passable;
|
boolean solid;
|
||||||
//whether it's viable to pass this block through water
|
//whether this block is a liquid that boats can move on
|
||||||
boolean passableWater;
|
boolean water;
|
||||||
|
//whether this block is solid for leg units that can move over some solid blocks
|
||||||
|
boolean legSolid;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user