Class LogicAI

All Implemented Interfaces:
UnitController

public class LogicAI extends AIController
  • Field Details

    • transferDelay

      public static final float transferDelay
      Minimum delay between item transfers.
      See Also:
    • logicControlTimeout

      public static final float logicControlTimeout
      Time after which the unit resets its controlled and reverts to a normal unit.
      See Also:
    • control

      public LUnitControl control
    • moveX

      public float moveX
    • moveY

      public float moveY
    • moveRad

      public float moveRad
    • controlTimer

      public float controlTimer
    • targetTimer

      public float targetTimer
    • controller

      @Nullable public mindustry.gen.Building controller
    • plan

      public BuildPlan plan
    • execCache

      public ObjectMap<Object,Object> execCache
    • aimControl

      public LUnitControl aimControl
    • boost

      public boolean boost
    • mainTarget

      public mindustry.gen.Teamc mainTarget
    • shoot

      public boolean shoot
    • posTarget

      public mindustry.gen.PosTeam posTarget
  • Constructor Details

    • LogicAI

      public LogicAI()
  • Method Details

    • keepState

      public boolean keepState()
      Overrides:
      keepState in class AIController
      Returns:
      whether controller state should not be reset after reading. Do not override unless you know exactly what you are doing.
    • updateMovement

      public void updateMovement()
      Overrides:
      updateMovement in class AIController
    • checkTargetTimer

      public boolean checkTargetTimer(Object radar)
    • checkTarget

      public boolean checkTarget(mindustry.gen.Teamc target, float x, float y, float range)
      Overrides:
      checkTarget in class AIController
    • retarget

      public boolean retarget()
      Overrides:
      retarget in class AIController
    • invalid

      public boolean invalid(mindustry.gen.Teamc target)
      Overrides:
      invalid in class AIController
    • shouldShoot

      public boolean shouldShoot()
      Overrides:
      shouldShoot in class AIController
    • target

      public mindustry.gen.Teamc target(float x, float y, float range, boolean air, boolean ground)
      Overrides:
      target in class AIController