Package mindustry.ai.types
Class MissileAI
java.lang.Object
mindustry.entities.units.AIController
mindustry.ai.types.MissileAI
- All Implemented Interfaces:
UnitController
-
Field Summary
FieldsFields inherited from class mindustry.entities.units.AIController
bomberTarget, fallback, noTargetTime, rotateBackTimer, target, timer, timerTarget, timerTarget2, timerTarget3, timerTarget4, unit, vec -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class mindustry.entities.units.AIController
afterRead, alterPathfind, checkTarget, circle, circle, circleAttack, commandPosition, commandTarget, faceMovement, faceTarget, fallback, findMainTarget, findTarget, getClosestSpawner, init, invalid, isLogicControllable, keepState, moveTo, moveTo, moveTo, moveTo, pathfind, pathfind, pathfind, prefSpeed, shouldFire, shouldShoot, stanceChanged, stopShooting, targetFlag, targetInvalidated, unit, unit, unloadPayloads, updateTargeting, 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
-
Field Details
-
shooter
@Nullable public mindustry.gen.Unit shooter
-
-
Constructor Details
-
MissileAI
public MissileAI()
-
-
Method Details
-
resetTimers
protected void resetTimers()- Overrides:
resetTimersin classAIController
-
updateMovement
public void updateMovement()- Overrides:
updateMovementin classAIController
-
target
public mindustry.gen.Teamc target(float x, float y, float range, boolean air, boolean ground) - Overrides:
targetin classAIController
-
retarget
public boolean retarget()- Overrides:
retargetin classAIController
-