Interface UnitController

All Known Implementing Classes:
AIController, AssemblerAI, BoostAI, BuilderAI, CargoAI, CommandAI, DefenderAI, DroneCenter.EffectDroneAI, FlyingAI, FlyingFollowAI, GroundAI, HugAI, LogicAI, MinerAI, MissileAI, RepairAI, SuicideAI

public interface UnitController
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    hit(mindustry.gen.Bullet bullet)
     
    default boolean
    isBeingControlled(mindustry.gen.Unit player)
     
    default boolean
     
    default boolean
     
    default void
    removed(mindustry.gen.Unit unit)
     
    mindustry.gen.Unit
     
    void
    unit(mindustry.gen.Unit unit)
     
    default void
     
  • Method Details

    • unit

      void unit(mindustry.gen.Unit unit)
    • unit

      mindustry.gen.Unit unit()
    • hit

      default void hit(mindustry.gen.Bullet bullet)
    • isValidController

      default boolean isValidController()
    • isLogicControllable

      default boolean isLogicControllable()
      Returns:
      whether logic AI can take over
    • updateUnit

      default void updateUnit()
    • removed

      default void removed(mindustry.gen.Unit unit)
    • isBeingControlled

      default boolean isBeingControlled(mindustry.gen.Unit player)