Package mindustry.ai.types
Class DefenderAI
java.lang.Object
mindustry.entities.units.AIController
mindustry.ai.types.DefenderAI
- All Implemented Interfaces:
UnitController
-
Field Summary
Fields inherited from class mindustry.entities.units.AIController
bomberTarget, fallback, noTargetTime, rotateBackTimer, target, timer, timerTarget, timerTarget2, timerTarget3, timerTarget4, unit, vec -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmindustry.gen.TeamcfindTarget(float x, float y, float range, boolean air, boolean ground) voidvoidMethods inherited from class mindustry.entities.units.AIController
afterRead, alterPathfind, checkTarget, circle, circle, circleAttack, commandPosition, commandTarget, faceMovement, faceTarget, fallback, findMainTarget, getClosestSpawner, init, invalid, isLogicControllable, keepState, moveTo, moveTo, moveTo, moveTo, pathfind, pathfind, pathfind, prefSpeed, resetTimers, retarget, shouldFire, shouldShoot, stanceChanged, stopShooting, target, targetFlag, targetInvalidated, unit, unit, unloadPayloads, updateUnit, updateVisuals, updateWeapons, useFallbackMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface mindustry.entities.units.UnitController
hit, isValidController, removed
-
Constructor Details
-
DefenderAI
public DefenderAI()
-
-
Method Details
-
updateMovement
public void updateMovement()- Overrides:
updateMovementin classAIController
-
updateTargeting
public void updateTargeting()- Overrides:
updateTargetingin classAIController
-
findTarget
public mindustry.gen.Teamc findTarget(float x, float y, float range, boolean air, boolean ground) - Overrides:
findTargetin classAIController
-