public AI fields

This commit is contained in:
Anuken 2021-08-17 22:06:29 -04:00
parent 8e179552ec
commit 63795d9df8
2 changed files with 7 additions and 6 deletions

View File

@ -15,11 +15,12 @@ import static mindustry.Vars.*;
public class BuilderAI extends AIController{
public static float buildRadius = 1500, retreatDst = 110f, fleeRange = 370f, retreatDelay = Time.toSeconds * 2f;
public @Nullable Unit following;
public @Nullable Teamc enemy;
public @Nullable BlockPlan lastPlan;
boolean found = false;
float retreatTimer;
@Nullable Unit following;
@Nullable Teamc enemy;
@Nullable BlockPlan lastPlan;
@Override
public void updateMovement(){

View File

@ -9,9 +9,9 @@ import mindustry.world.*;
import static mindustry.Vars.*;
public class MinerAI extends AIController{
boolean mining = true;
Item targetItem;
Tile ore;
public boolean mining = true;
public Item targetItem;
public Tile ore;
@Override
public void updateMovement(){