Package mindustry.ai.types
Class CargoAI
java.lang.Object
mindustry.entities.units.AIController
mindustry.ai.types.CargoAI
- All Implemented Interfaces:
UnitController
-
Field Summary
Modifier and TypeFieldDescriptionstatic float
static float
static float
static float
float
int
static float
Fields inherited from class mindustry.entities.units.AIController
fallback, noTargetTime, rotateBackTimer, target, timer, timerTarget, timerTarget2, timerTarget3, timerTarget4, unit, vec
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
findAnyTarget
(mindustry.gen.Building build) int
findDropTarget
(Item item, int offset, UnitCargoUnloadPoint.UnitCargoUnloadPointBuild ignore) find target for the unit's current itemvoid
Methods inherited from class mindustry.entities.units.AIController
checkTarget, circle, circle, circleAttack, commandPosition, commandTarget, faceMovement, faceTarget, fallback, findMainTarget, findTarget, getClosestSpawner, init, invalid, isLogicControllable, keepState, moveTo, moveTo, moveTo, moveTo, pathfind, retarget, shouldShoot, stopShooting, target, targetFlag, unit, unit, unloadPayloads, updateTargeting, updateUnit, updateVisuals, updateWeapons, useFallback
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface mindustry.entities.units.UnitController
hit, isBeingControlled, isValidController, removed
-
Field Details
-
emptyWaitTime
public static float emptyWaitTime -
dropSpacing
public static float dropSpacing -
transferRange
public static float transferRange -
moveRange
public static float moveRange -
moveSmoothing
public static float moveSmoothing -
unloadTarget
-
itemTarget
-
noDestTimer
public float noDestTimer -
targetIndex
public int targetIndex
-
-
Constructor Details
-
CargoAI
public CargoAI()
-
-
Method Details
-
updateMovement
public void updateMovement()- Overrides:
updateMovement
in classAIController
-
findDropTarget
public int findDropTarget(Item item, int offset, UnitCargoUnloadPoint.UnitCargoUnloadPointBuild ignore) find target for the unit's current item -
findAnyTarget
public void findAnyTarget(mindustry.gen.Building build)
-