From 526f1106fb9b06d7f02666f30c3e9c55aa7b1b1b Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 21 Aug 2020 14:32:35 -0400 Subject: [PATCH] Initial path refactor --- core/src/mindustry/ai/Pathfinder.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/core/src/mindustry/ai/Pathfinder.java b/core/src/mindustry/ai/Pathfinder.java index 222cc7df74..9563773545 100644 --- a/core/src/mindustry/ai/Pathfinder.java +++ b/core/src/mindustry/ai/Pathfinder.java @@ -464,13 +464,15 @@ public class Pathfinder implements Runnable{ /** Holds a copy of tile data for a specific tile position. */ @Struct class PathTileStruct{ - //traversal cost + //base traversal cost short cost; //team of block, if applicable (0 by default) byte team; - //whether it's viable to pass this block - boolean passable; - //whether it's viable to pass this block through water - boolean passableWater; + //general solid state + boolean solid; + //whether this block is a liquid that boats can move on + boolean water; + //whether this block is solid for leg units that can move over some solid blocks + boolean legSolid; } }