public class Unit extends PositionedObject
Modifier and Type | Method and Description |
---|---|
boolean |
attack(Position target)
Orders the unit(s) to attack move to the specified position or attack the specified unit.
|
boolean |
attack(Position target,
boolean shiftQueueCommand) |
boolean |
attack(PositionOrUnit target) |
boolean |
attack(PositionOrUnit target,
boolean shiftQueueCommand) |
boolean |
attack(Unit target) |
boolean |
attack(Unit target,
boolean shiftQueueCommand) |
boolean |
build(UnitType type)
Orders the worker unit(s) to construct a structure at a target position.
|
boolean |
build(UnitType type,
TilePosition target) |
boolean |
buildAddon(UnitType type)
Orders the Terran structure(s) to construct an add-on.
|
boolean |
burrow()
Orders the unit to burrow.
|
boolean |
canAttack()
Cheap checks for whether the unit is able to execute an attack command to attack-move or attack a unit.
|
boolean |
canAttack(boolean checkCommandibility) |
boolean |
canAttack(Position target) |
boolean |
canAttack(Position target,
boolean checkCanTargetUnit) |
boolean |
canAttack(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute an attack command to attack-move or attack a unit.
|
boolean |
canAttack(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canAttack(PositionOrUnit target) |
boolean |
canAttack(PositionOrUnit target,
boolean checkCanTargetUnit) |
boolean |
canAttack(PositionOrUnit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
canAttack(PositionOrUnit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canAttack(Unit target) |
boolean |
canAttack(Unit target,
boolean checkCanTargetUnit) |
boolean |
canAttack(Unit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
canAttack(Unit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canAttackGrouped() |
boolean |
canAttackGrouped(boolean checkCommandibilityGrouped)
Cheap checks for whether the unit is able to execute an attack command to attack-move or attack a unit, as part of a Unitset.
|
boolean |
canAttackGrouped(boolean checkCommandibilityGrouped,
boolean checkCommandibility) |
boolean |
canAttackGrouped(Position target) |
boolean |
canAttackGrouped(Position target,
boolean checkCanTargetUnit) |
boolean |
canAttackGrouped(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
canAttackGrouped(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped)
Cheap checks for whether the unit is able to execute an attack command to attack-move or attack a unit, as part of a Unitset.
|
boolean |
canAttackGrouped(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped,
boolean checkCommandibility) |
boolean |
canAttackGrouped(PositionOrUnit target) |
boolean |
canAttackGrouped(PositionOrUnit target,
boolean checkCanTargetUnit) |
boolean |
canAttackGrouped(PositionOrUnit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
canAttackGrouped(PositionOrUnit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped) |
boolean |
canAttackGrouped(PositionOrUnit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped,
boolean checkCommandibility) |
boolean |
canAttackGrouped(Unit target) |
boolean |
canAttackGrouped(Unit target,
boolean checkCanTargetUnit) |
boolean |
canAttackGrouped(Unit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
canAttackGrouped(Unit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped) |
boolean |
canAttackGrouped(Unit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped,
boolean checkCommandibility) |
boolean |
canAttackMove()
Checks whether the unit is able to execute an attack command to attack-move.
|
boolean |
canAttackMove(boolean checkCommandibility) |
boolean |
canAttackMoveGrouped() |
boolean |
canAttackMoveGrouped(boolean checkCommandibilityGrouped)
Checks whether the unit is able to execute an attack command to attack-move, as part of a Unitset.
|
boolean |
canAttackMoveGrouped(boolean checkCommandibilityGrouped,
boolean checkCommandibility) |
boolean |
canAttackUnit()
Cheap checks for whether the unit is able to execute an attack command to attack a unit.
|
boolean |
canAttackUnit(boolean checkCommandibility) |
boolean |
canAttackUnit(Unit targetUnit) |
boolean |
canAttackUnit(Unit targetUnit,
boolean checkCanTargetUnit) |
boolean |
canAttackUnit(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute an attack command to attack a unit.
|
boolean |
canAttackUnit(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canAttackUnitGrouped() |
boolean |
canAttackUnitGrouped(boolean checkCommandibilityGrouped)
Cheap checks for whether the unit is able to execute an attack command to attack a unit, as part of a Unitset.
|
boolean |
canAttackUnitGrouped(boolean checkCommandibilityGrouped,
boolean checkCommandibility) |
boolean |
canAttackUnitGrouped(Unit targetUnit) |
boolean |
canAttackUnitGrouped(Unit targetUnit,
boolean checkCanTargetUnit) |
boolean |
canAttackUnitGrouped(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
canAttackUnitGrouped(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped)
Cheap checks for whether the unit is able to execute an attack command to attack a unit, as part of a Unitset.
|
boolean |
canAttackUnitGrouped(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped,
boolean checkCommandibility) |
boolean |
canBuild()
Cheap checks for whether the unit is able to execute a build command.
|
boolean |
canBuild(boolean checkCommandibility) |
boolean |
canBuild(UnitType uType) |
boolean |
canBuild(UnitType uType,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute a build command.
|
boolean |
canBuild(UnitType uType,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canBuild(UnitType uType,
TilePosition tilePos) |
boolean |
canBuild(UnitType uType,
TilePosition tilePos,
boolean checkTargetUnitType) |
boolean |
canBuild(UnitType uType,
TilePosition tilePos,
boolean checkTargetUnitType,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute a build command.
|
boolean |
canBuild(UnitType uType,
TilePosition tilePos,
boolean checkTargetUnitType,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canBuildAddon()
Cheap checks for whether the unit is able to execute a buildAddon command.
|
boolean |
canBuildAddon(boolean checkCommandibility) |
boolean |
canBuildAddon(UnitType uType) |
boolean |
canBuildAddon(UnitType uType,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute a buildAddon command.
|
boolean |
canBuildAddon(UnitType uType,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canBurrow()
Checks whether the unit is able to execute a burrow command.
|
boolean |
canBurrow(boolean checkCommandibility) |
boolean |
canCancelAddon()
Checks whether the unit is able to execute a cancelAddon command.
|
boolean |
canCancelAddon(boolean checkCommandibility) |
boolean |
canCancelConstruction()
Checks whether the unit is able to execute a cancelConstruction command.
|
boolean |
canCancelConstruction(boolean checkCommandibility) |
boolean |
canCancelMorph()
Checks whether the unit is able to execute a cancelMorph command.
|
boolean |
canCancelMorph(boolean checkCommandibility) |
boolean |
canCancelResearch()
Checks whether the unit is able to execute a cancelResearch command.
|
boolean |
canCancelResearch(boolean checkCommandibility) |
boolean |
canCancelTrain()
Checks whether the unit is able to execute a cancelTrain command for any slot.
|
boolean |
canCancelTrain(boolean checkCommandibility) |
boolean |
canCancelTrainSlot()
Cheap checks for whether the unit is able to execute a cancelTrain command for an unspecified slot.
|
boolean |
canCancelTrainSlot(boolean checkCommandibility) |
boolean |
canCancelTrainSlot(int slot) |
boolean |
canCancelTrainSlot(int slot,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute a cancelTrain command for an unspecified slot.
|
boolean |
canCancelTrainSlot(int slot,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canCancelUpgrade()
Checks whether the unit is able to execute a cancelUpgrade command.
|
boolean |
canCancelUpgrade(boolean checkCommandibility) |
boolean |
cancelAddon()
Orders this unit to cancel and refund an add-on that is being constructed.
|
boolean |
cancelConstruction()
Orders this unit to cancel and refund itself from begin constructed.
|
boolean |
cancelMorph()
Orders this unit to cancel and refund a unit that is morphing.
|
boolean |
cancelResearch()
Orders this unit to cancel and refund a research that is in progress.
|
boolean |
cancelTrain()
Orders the unit to remove the specified unit from its training queue.
|
boolean |
cancelTrain(int slot) |
boolean |
cancelUpgrade()
Orders this unit to cancel and refund an upgrade that is in progress.
|
boolean |
canCloak()
Checks whether the unit is able to execute a cloak command.
|
boolean |
canCloak(boolean checkCommandibility) |
boolean |
canCommand()
Performs some cheap checks to attempt to quickly detect whether the unit is unable to execute any commands (eg the unit is stasised).
|
boolean |
canCommandGrouped()
Performs some cheap checks to attempt to quickly detect whether the unit is unable to execute any commands as part of a Unitset (eg buildings, critters).
|
boolean |
canCommandGrouped(boolean checkCommandibility) |
boolean |
canDecloak()
Checks whether the unit is able to execute a decloak command.
|
boolean |
canDecloak(boolean checkCommandibility) |
boolean |
canFollow()
Cheap checks for whether the unit is able to execute a follow command.
|
boolean |
canFollow(boolean checkCommandibility) |
boolean |
canFollow(Unit targetUnit) |
boolean |
canFollow(Unit targetUnit,
boolean checkCanTargetUnit) |
boolean |
canFollow(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute a follow command.
|
boolean |
canFollow(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canGather()
Cheap checks for whether the unit is able to execute a gather command.
|
boolean |
canGather(boolean checkCommandibility) |
boolean |
canGather(Unit targetUnit) |
boolean |
canGather(Unit targetUnit,
boolean checkCanTargetUnit) |
boolean |
canGather(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute a gather command.
|
boolean |
canGather(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canHaltConstruction()
Checks whether the unit is able to execute a haltConstruction command.
|
boolean |
canHaltConstruction(boolean checkCommandibility) |
boolean |
canHoldPosition()
Checks whether the unit is able to execute a holdPosition command.
|
boolean |
canHoldPosition(boolean checkCommandibility) |
boolean |
canIssueCommand(UnitCommand command) |
boolean |
canIssueCommand(UnitCommand command,
boolean checkCanUseTechPositionOnPositions) |
boolean |
canIssueCommand(UnitCommand command,
boolean checkCanUseTechPositionOnPositions,
boolean checkCanUseTechUnitOnUnits) |
boolean |
canIssueCommand(UnitCommand command,
boolean checkCanUseTechPositionOnPositions,
boolean checkCanUseTechUnitOnUnits,
boolean checkCanBuildUnitType) |
boolean |
canIssueCommand(UnitCommand command,
boolean checkCanUseTechPositionOnPositions,
boolean checkCanUseTechUnitOnUnits,
boolean checkCanBuildUnitType,
boolean checkCanTargetUnit) |
boolean |
canIssueCommand(UnitCommand command,
boolean checkCanUseTechPositionOnPositions,
boolean checkCanUseTechUnitOnUnits,
boolean checkCanBuildUnitType,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType)
Checks whether the unit is able to execute the given command.
|
boolean |
canIssueCommand(UnitCommand command,
boolean checkCanUseTechPositionOnPositions,
boolean checkCanUseTechUnitOnUnits,
boolean checkCanBuildUnitType,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canIssueCommandGrouped(UnitCommand command) |
boolean |
canIssueCommandGrouped(UnitCommand command,
boolean checkCanUseTechPositionOnPositions) |
boolean |
canIssueCommandGrouped(UnitCommand command,
boolean checkCanUseTechPositionOnPositions,
boolean checkCanUseTechUnitOnUnits) |
boolean |
canIssueCommandGrouped(UnitCommand command,
boolean checkCanUseTechPositionOnPositions,
boolean checkCanUseTechUnitOnUnits,
boolean checkCanTargetUnit) |
boolean |
canIssueCommandGrouped(UnitCommand command,
boolean checkCanUseTechPositionOnPositions,
boolean checkCanUseTechUnitOnUnits,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
canIssueCommandGrouped(UnitCommand command,
boolean checkCanUseTechPositionOnPositions,
boolean checkCanUseTechUnitOnUnits,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped)
Checks whether the unit is able to execute the given command as part of a Unitset (even if none of the units in the Unitset are able to execute the command individually).
|
boolean |
canIssueCommandGrouped(UnitCommand command,
boolean checkCanUseTechPositionOnPositions,
boolean checkCanUseTechUnitOnUnits,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped,
boolean checkCommandibility) |
boolean |
canIssueCommandType(UnitCommandType ct)
Performs some cheap checks to attempt to quickly detect whether the unit is unable to execute the given command type (i.e. regardless of what other possible command parameters could be).
|
boolean |
canIssueCommandType(UnitCommandType ct,
boolean checkCommandibility) |
boolean |
canIssueCommandTypeGrouped(UnitCommandType ct) |
boolean |
canIssueCommandTypeGrouped(UnitCommandType ct,
boolean checkCommandibilityGrouped)
Performs some cheap checks to attempt to quickly detect whether the unit is unable to execute the given command type (i.e. regardless of what other possible command parameters could be) as part of a Unitset.
|
boolean |
canIssueCommandTypeGrouped(UnitCommandType ct,
boolean checkCommandibilityGrouped,
boolean checkCommandibility) |
boolean |
canLand()
Cheap checks for whether the unit is able to execute a land command.
|
boolean |
canLand(boolean checkCommandibility) |
boolean |
canLand(TilePosition target) |
boolean |
canLand(TilePosition target,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute a land command.
|
boolean |
canLand(TilePosition target,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canLift()
Checks whether the unit is able to execute a lift command.
|
boolean |
canLift(boolean checkCommandibility) |
boolean |
canLoad()
Cheap checks for whether the unit is able to execute a load command.
|
boolean |
canLoad(boolean checkCommandibility) |
boolean |
canLoad(Unit targetUnit) |
boolean |
canLoad(Unit targetUnit,
boolean checkCanTargetUnit) |
boolean |
canLoad(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute a load command.
|
boolean |
canLoad(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canMorph()
Cheap checks for whether the unit is able to execute a morph command.
|
boolean |
canMorph(boolean checkCommandibility) |
boolean |
canMorph(UnitType uType) |
boolean |
canMorph(UnitType uType,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute a morph command.
|
boolean |
canMorph(UnitType uType,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canMove()
Checks whether the unit is able to execute a move command.
|
boolean |
canMove(boolean checkCommandibility) |
boolean |
canMoveGrouped() |
boolean |
canMoveGrouped(boolean checkCommandibilityGrouped)
Checks whether the unit is able to execute a move command, as part of a Unitset.
|
boolean |
canMoveGrouped(boolean checkCommandibilityGrouped,
boolean checkCommandibility) |
boolean |
canPatrol()
Checks whether the unit is able to execute a patrol command.
|
boolean |
canPatrol(boolean checkCommandibility) |
boolean |
canPatrolGrouped() |
boolean |
canPatrolGrouped(boolean checkCommandibilityGrouped)
Checks whether the unit is able to execute a patrol command, as part of a Unitset.
|
boolean |
canPatrolGrouped(boolean checkCommandibilityGrouped,
boolean checkCommandibility) |
boolean |
canPlaceCOP()
Cheap checks for whether the unit is able to execute a placeCOP command.
|
boolean |
canPlaceCOP(boolean checkCommandibility) |
boolean |
canPlaceCOP(TilePosition target) |
boolean |
canPlaceCOP(TilePosition target,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute a placeCOP command.
|
boolean |
canPlaceCOP(TilePosition target,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canRepair()
Cheap checks for whether the unit is able to execute a repair command.
|
boolean |
canRepair(boolean checkCommandibility) |
boolean |
canRepair(Unit targetUnit) |
boolean |
canRepair(Unit targetUnit,
boolean checkCanTargetUnit) |
boolean |
canRepair(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute a repair command.
|
boolean |
canRepair(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canResearch()
Cheap checks for whether the unit is able to execute a research command.
|
boolean |
canResearch(boolean checkCommandibility) |
boolean |
canResearch(TechType type)
Cheap checks for whether the unit is able to execute a research command.
|
boolean |
canResearch(TechType type,
boolean checkCanIssueCommandType) |
boolean |
canReturnCargo()
Checks whether the unit is able to execute a returnCargo command.
|
boolean |
canReturnCargo(boolean checkCommandibility) |
boolean |
canRightClick()
Cheap checks for whether the unit is able to execute a rightClick command to a position or unit.
|
boolean |
canRightClick(boolean checkCommandibility) |
boolean |
canRightClick(Position target) |
boolean |
canRightClick(Position target,
boolean checkCanTargetUnit) |
boolean |
canRightClick(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute a rightClick command to a position or unit.
|
boolean |
canRightClick(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canRightClick(PositionOrUnit target) |
boolean |
canRightClick(PositionOrUnit target,
boolean checkCanTargetUnit) |
boolean |
canRightClick(PositionOrUnit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
canRightClick(PositionOrUnit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canRightClick(Unit target) |
boolean |
canRightClick(Unit target,
boolean checkCanTargetUnit) |
boolean |
canRightClick(Unit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
canRightClick(Unit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canRightClickGrouped() |
boolean |
canRightClickGrouped(boolean checkCommandibilityGrouped)
Cheap checks for whether the unit is able to execute a rightClick command to a position or unit, as part of a Unitset.
|
boolean |
canRightClickGrouped(boolean checkCommandibilityGrouped,
boolean checkCommandibility) |
boolean |
canRightClickGrouped(Position target) |
boolean |
canRightClickGrouped(Position target,
boolean checkCanTargetUnit) |
boolean |
canRightClickGrouped(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
canRightClickGrouped(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped)
Cheap checks for whether the unit is able to execute a rightClick command to a position or unit, as part of a Unitset.
|
boolean |
canRightClickGrouped(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped,
boolean checkCommandibility) |
boolean |
canRightClickGrouped(PositionOrUnit target) |
boolean |
canRightClickGrouped(PositionOrUnit target,
boolean checkCanTargetUnit) |
boolean |
canRightClickGrouped(PositionOrUnit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
canRightClickGrouped(PositionOrUnit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped) |
boolean |
canRightClickGrouped(PositionOrUnit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped,
boolean checkCommandibility) |
boolean |
canRightClickGrouped(Unit target) |
boolean |
canRightClickGrouped(Unit target,
boolean checkCanTargetUnit) |
boolean |
canRightClickGrouped(Unit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
canRightClickGrouped(Unit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped) |
boolean |
canRightClickGrouped(Unit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped,
boolean checkCommandibility) |
boolean |
canRightClickPosition()
Checks whether the unit is able to execute a rightClick command for a position.
|
boolean |
canRightClickPosition(boolean checkCommandibility) |
boolean |
canRightClickPositionGrouped() |
boolean |
canRightClickPositionGrouped(boolean checkCommandibilityGrouped)
Checks whether the unit is able to execute a rightClick command for a position, as part of a Unitset.
|
boolean |
canRightClickPositionGrouped(boolean checkCommandibilityGrouped,
boolean checkCommandibility) |
boolean |
canRightClickUnit()
Cheap checks for whether the unit is able to execute a rightClick command to a unit.
|
boolean |
canRightClickUnit(boolean checkCommandibility) |
boolean |
canRightClickUnit(Unit targetUnit) |
boolean |
canRightClickUnit(Unit targetUnit,
boolean checkCanTargetUnit) |
boolean |
canRightClickUnit(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute a rightClick command to a unit.
|
boolean |
canRightClickUnit(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canRightClickUnitGrouped() |
boolean |
canRightClickUnitGrouped(boolean checkCommandibilityGrouped)
Cheap checks for whether the unit is able to execute a rightClick command to a unit, as part of a Unitset.
|
boolean |
canRightClickUnitGrouped(boolean checkCommandibilityGrouped,
boolean checkCommandibility) |
boolean |
canRightClickUnitGrouped(Unit targetUnit) |
boolean |
canRightClickUnitGrouped(Unit targetUnit,
boolean checkCanTargetUnit) |
boolean |
canRightClickUnitGrouped(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
canRightClickUnitGrouped(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped)
Cheap checks for whether the unit is able to execute a rightClick command to a unit, as part of a Unitset.
|
boolean |
canRightClickUnitGrouped(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped,
boolean checkCommandibility) |
boolean |
canSetRallyPoint()
Cheap checks for whether the unit is able to execute a setRallyPoint command to a position or unit.
|
boolean |
canSetRallyPoint(boolean checkCommandibility) |
boolean |
canSetRallyPoint(Position target) |
boolean |
canSetRallyPoint(Position target,
boolean checkCanTargetUnit) |
boolean |
canSetRallyPoint(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute a setRallyPoint command to a position or unit.
|
boolean |
canSetRallyPoint(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canSetRallyPoint(PositionOrUnit target) |
boolean |
canSetRallyPoint(PositionOrUnit target,
boolean checkCanTargetUnit) |
boolean |
canSetRallyPoint(PositionOrUnit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
canSetRallyPoint(PositionOrUnit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canSetRallyPoint(Unit target) |
boolean |
canSetRallyPoint(Unit target,
boolean checkCanTargetUnit) |
boolean |
canSetRallyPoint(Unit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
canSetRallyPoint(Unit target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canSetRallyPosition()
Checks whether the unit is able to execute a setRallyPoint command to a position.
|
boolean |
canSetRallyPosition(boolean checkCommandibility) |
boolean |
canSetRallyUnit()
Cheap checks for whether the unit is able to execute a setRallyPoint command to a unit.
|
boolean |
canSetRallyUnit(boolean checkCommandibility) |
boolean |
canSetRallyUnit(Unit targetUnit) |
boolean |
canSetRallyUnit(Unit targetUnit,
boolean checkCanTargetUnit) |
boolean |
canSetRallyUnit(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute a setRallyPoint command to a unit.
|
boolean |
canSetRallyUnit(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canSiege()
Checks whether the unit is able to execute a siege command.
|
boolean |
canSiege(boolean checkCommandibility) |
boolean |
canStop()
Checks whether the unit is able to execute a stop command.
|
boolean |
canStop(boolean checkCommandibility) |
boolean |
canTargetUnit(Unit targetUnit)
Performs some cheap checks to attempt to quickly detect whether the unit is unable to use the given unit as the target unit of an unspecified command.
|
boolean |
canTargetUnit(Unit targetUnit,
boolean checkCommandibility) |
boolean |
canTrain()
Cheap checks for whether the unit is able to execute a train command.
|
boolean |
canTrain(boolean checkCommandibility) |
boolean |
canTrain(UnitType uType) |
boolean |
canTrain(UnitType uType,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute a train command.
|
boolean |
canTrain(UnitType uType,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canUnburrow()
Checks whether the unit is able to execute an unburrow command.
|
boolean |
canUnburrow(boolean checkCommandibility) |
boolean |
canUnload()
Cheap checks for whether the unit is able to execute an unload command.
|
boolean |
canUnload(boolean checkCommandibility) |
boolean |
canUnload(Unit targetUnit) |
boolean |
canUnload(Unit targetUnit,
boolean checkCanTargetUnit) |
boolean |
canUnload(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkPosition) |
boolean |
canUnload(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkPosition,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute an unload command.
|
boolean |
canUnload(Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkPosition,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canUnloadAll()
Checks whether the unit is able to execute an unloadAll command for the current position.
|
boolean |
canUnloadAll(boolean checkCommandibility) |
boolean |
canUnloadAllPosition()
Cheap checks for whether the unit is able to execute an unloadAll command for a different position.
|
boolean |
canUnloadAllPosition(boolean checkCommandibility) |
boolean |
canUnloadAllPosition(Position targDropPos) |
boolean |
canUnloadAllPosition(Position targDropPos,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute an unloadAll command for a different position.
|
boolean |
canUnloadAllPosition(Position targDropPos,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canUnloadAtPosition(Position targDropPos) |
boolean |
canUnloadAtPosition(Position targDropPos,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute an unload command or unloadAll at current position command or unloadAll at a different position command, for a given position.
|
boolean |
canUnloadAtPosition(Position targDropPos,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canUnloadWithOrWithoutTarget()
Cheap checks for whether the unit is able to execute an unload command or unloadAll at current position command or unloadAll at a different position command.
|
boolean |
canUnloadWithOrWithoutTarget(boolean checkCommandibility) |
boolean |
canUnsiege()
Checks whether the unit is able to execute an unsiege command.
|
boolean |
canUnsiege(boolean checkCommandibility) |
boolean |
canUpgrade()
Cheap checks for whether the unit is able to execute an upgrade command.
|
boolean |
canUpgrade(boolean checkCommandibility) |
boolean |
canUpgrade(UpgradeType type)
Cheap checks for whether the unit is able to execute an upgrade command.
|
boolean |
canUpgrade(UpgradeType type,
boolean checkCanIssueCommandType) |
boolean |
canUseTech(TechType tech) |
boolean |
canUseTech(TechType tech,
Position target) |
boolean |
canUseTech(TechType tech,
Position target,
boolean checkCanTargetUnit) |
boolean |
canUseTech(TechType tech,
Position target,
boolean checkCanTargetUnit,
boolean checkTargetsType) |
boolean |
canUseTech(TechType tech,
Position target,
boolean checkCanTargetUnit,
boolean checkTargetsType,
boolean checkCanIssueCommandType)
Checks whether the unit is able to execute a useTech command for a specified position or unit (only specify nullptr if the TechType does not target another position/unit).
|
boolean |
canUseTech(TechType tech,
Position target,
boolean checkCanTargetUnit,
boolean checkTargetsType,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canUseTech(TechType tech,
PositionOrUnit target) |
boolean |
canUseTech(TechType tech,
PositionOrUnit target,
boolean checkCanTargetUnit) |
boolean |
canUseTech(TechType tech,
PositionOrUnit target,
boolean checkCanTargetUnit,
boolean checkTargetsType) |
boolean |
canUseTech(TechType tech,
PositionOrUnit target,
boolean checkCanTargetUnit,
boolean checkTargetsType,
boolean checkCanIssueCommandType) |
boolean |
canUseTech(TechType tech,
PositionOrUnit target,
boolean checkCanTargetUnit,
boolean checkTargetsType,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canUseTech(TechType tech,
Unit target) |
boolean |
canUseTech(TechType tech,
Unit target,
boolean checkCanTargetUnit) |
boolean |
canUseTech(TechType tech,
Unit target,
boolean checkCanTargetUnit,
boolean checkTargetsType) |
boolean |
canUseTech(TechType tech,
Unit target,
boolean checkCanTargetUnit,
boolean checkTargetsType,
boolean checkCanIssueCommandType) |
boolean |
canUseTech(TechType tech,
Unit target,
boolean checkCanTargetUnit,
boolean checkTargetsType,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canUseTechPosition(TechType tech) |
boolean |
canUseTechPosition(TechType tech,
boolean checkCanIssueCommandType)
Checks whether the unit is able to execute a useTech command with an unspecified target position.
|
boolean |
canUseTechPosition(TechType tech,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canUseTechPosition(TechType tech,
Position target) |
boolean |
canUseTechPosition(TechType tech,
Position target,
boolean checkTargetsPositions) |
boolean |
canUseTechPosition(TechType tech,
Position target,
boolean checkTargetsPositions,
boolean checkCanIssueCommandType)
Checks whether the unit is able to execute a useTech command with an unspecified target position.
|
boolean |
canUseTechPosition(TechType tech,
Position target,
boolean checkTargetsPositions,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canUseTechUnit(TechType tech) |
boolean |
canUseTechUnit(TechType tech,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute a useTech command with an unspecified target unit.
|
boolean |
canUseTechUnit(TechType tech,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canUseTechUnit(TechType tech,
Unit targetUnit) |
boolean |
canUseTechUnit(TechType tech,
Unit targetUnit,
boolean checkCanTargetUnit) |
boolean |
canUseTechUnit(TechType tech,
Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkTargetsUnits) |
boolean |
canUseTechUnit(TechType tech,
Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkTargetsUnits,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute a useTech command with an unspecified target unit.
|
boolean |
canUseTechUnit(TechType tech,
Unit targetUnit,
boolean checkCanTargetUnit,
boolean checkTargetsUnits,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canUseTechWithOrWithoutTarget()
Cheap checks for whether the unit is able to execute a useTech command without a target or or a useTech command with a target position or a useTech command with a target unit.
|
boolean |
canUseTechWithOrWithoutTarget(boolean checkCommandibility) |
boolean |
canUseTechWithOrWithoutTarget(TechType tech) |
boolean |
canUseTechWithOrWithoutTarget(TechType tech,
boolean checkCanIssueCommandType)
Cheap checks for whether the unit is able to execute a useTech command without a target or or a useTech command with a target position or a useTech command with a target unit.
|
boolean |
canUseTechWithOrWithoutTarget(TechType tech,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
canUseTechWithoutTarget(TechType tech) |
boolean |
canUseTechWithoutTarget(TechType tech,
boolean checkCanIssueCommandType)
Checks whether the unit is able to execute a useTech command without a target.
|
boolean |
canUseTechWithoutTarget(TechType tech,
boolean checkCanIssueCommandType,
boolean checkCommandibility) |
boolean |
cloak()
Orders the unit to cloak.
|
boolean |
decloak()
Orders a cloaked unit to decloak.
|
boolean |
exists()
Checks if the Unit exists in the view of the BWAPI player.
|
boolean |
follow(Unit target)
Orders the unit to follow the specified unit.
|
boolean |
follow(Unit target,
boolean shiftQueueCommand) |
boolean |
gather(Unit target)
Orders the unit to gather the specified unit (must be mineral or refinery type).
|
boolean |
gather(Unit target,
boolean shiftQueueCommand) |
int |
getAcidSporeCount()
Retrieves the number of acid spores that this unit is inflicted with.
|
Unit |
getAddon()
Retrieves the add-on that is attached to this unit.
|
int |
getAirWeaponCooldown()
Retrieves the unit's air weapon cooldown.
|
double |
getAngle()
Retrieves the unit's facing direction in radians.
|
int |
getBottom()
Retrieves the Y coordinate of the unit's bottom boundary, measured in pixels from the top of the map.
|
UnitType |
getBuildType()
Retrieves the building type that a worker (SCV, Probe, Drone) is about to construct.
|
Unit |
getBuildUnit()
Retrieves the corresponding paired unit for SCVs and Terran structures.
|
Unit |
getCarrier()
Retrieves the parent Carrier that owns this Interceptor.
|
int |
getDefenseMatrixPoints()
Retrieves the amount of hit points remaining on the Defensive Matrix created by a Science Vessel.
|
int |
getDefenseMatrixTimer()
Retrieves the time, in frames, that the Defensive Matrix will remain active on the current unit.
|
int |
getDistance(Position target)
Retrieves the distance between this unit and a target.
|
int |
getDistance(PositionOrUnit target) |
int |
getDistance(Unit target) |
int |
getEnergy()
Retrieves the unit's current Energy Points (Energy) as seen in the game.
|
int |
getEnsnareTimer()
Retrieves the time, in frames, that Ensnare will remain active on the current unit.
|
int |
getGroundWeaponCooldown()
Retrieves the unit's ground weapon cooldown.
|
Unit |
getHatchery()
Retrieves the parent Hatchery, Lair, or Hive that owns this particular unit.
|
int |
getHitPoints()
Retrieves the unit's current Hit Points (HP) as seen in the game.
|
int |
getID()
Retrieves a unique identifier for this unit.
|
int |
getInitialHitPoints()
Retrieves the amount of hit points that this unit started off with at the beginning of the game.
|
Position |
getInitialPosition()
Retrieves the initial position of this unit.
|
int |
getInitialResources()
Retrieves the amount of resources contained in the unit at the beginning of the game.
|
TilePosition |
getInitialTilePosition()
Retrieves the initial build tile position of this unit.
|
UnitType |
getInitialType()
Retrieves the initial type of the unit.
|
int |
getInterceptorCount()
Retrieves the number of interceptors that this unit manages.
|
java.util.List<Unit> |
getInterceptors()
Retrieves the set of Interceptors controlled by this unit.
|
int |
getIrradiateTimer()
Retrieves the time, in frames, that Irradiate will remain active on the current unit.
|
int |
getKillCount()
Retrieves the number of units that this unit has killed in total.
|
java.util.List<Unit> |
getLarva()
Retrieves the set of Larvae that were spawned by this unit.
|
Player |
getLastAttackingPlayer()
Retrieves the Player that last attacked this unit.
|
UnitCommand |
getLastCommand()
Retrieves the last successful command that was sent to BWAPI.
|
int |
getLastCommandFrame()
Retrieves the frame number that sent the last successful command.
|
int |
getLeft()
Retrieves the X coordinate of the unit's left boundary, measured in pixels from the left side of the map.
|
java.util.List<Unit> |
getLoadedUnits()
Retrieves the set of units that are contained within this Bunker or Transport(Dropship, Shuttle, Overlord ).
|
int |
getLockdownTimer()
Retrieves the time, in frames, that Lockdown will remain active on the current unit.
|
int |
getMaelstromTimer()
Retrieves the time, in frames, that Maelstrom will remain active on the current unit.
|
Unit |
getNydusExit()
Retrieves the Nydus Canal that is attached to this one.
|
Order |
getOrder()
Retrieves the primary Order that the unit is assigned.
|
Unit |
getOrderTarget()
Retrieves the unit's primary order target.
|
Position |
getOrderTargetPosition()
Retrieves the target position for the unit's order.
|
int |
getOrderTimer()
Retrieves an internal timer used for the primary order.
|
int |
getPlagueTimer()
Retrieves the time, in frames, that Plague will remain active on the current unit.
|
Player |
getPlayer()
Retrieves the player that owns this unit.
|
Position |
getPosition()
Retrieves the unit's position from the upper left corner of the map in pixels.
|
Unit |
getPowerUp()
Retrieves the power-up that the worker unit is holding.
|
Position |
getRallyPosition()
Retrieves the position the structure is rallying units to once they are completed.
|
Unit |
getRallyUnit()
Retrieves the unit the structure is rallying units to once they are completed.
|
Region |
getRegion()
Retrieves the Region that the center of the unit is in.
|
int |
getRemainingBuildTime()
Retrieves the remaining build time for a unit or structure that is being trained or constructed.
|
int |
getRemainingResearchTime()
Retrieves the amount of time until the unit is done researching its currently assigned TechType.
|
int |
getRemainingTrainTime()
Retrieves the remaining time, in frames, of the unit that is currently being trained.
|
int |
getRemainingUpgradeTime()
Retrieves the amount of time until the unit is done upgrading its current upgrade.
|
int |
getRemoveTimer()
Retrieves the time, in frames, until this temporary unit is destroyed or removed.
|
int |
getReplayID()
Retrieves the unit identifier for this unit as seen in replay data.
|
int |
getResourceGroup()
Retrieves a grouping index from a resource container.
|
int |
getResources()
Retrieves the resource amount from a resource container, such as a Mineral Field and Vespene Geyser.
|
int |
getRight()
Retrieves the X coordinate of the unit's right boundary, measured in pixels from the left side of the map.
|
int |
getScarabCount()
Retrieves the number of scarabs that this unit has for use.
|
Order |
getSecondaryOrder()
Retrieves the secondary Order that the unit is assigned.
|
int |
getShields()
Retrieves the unit's current Shield Points (Shields) as seen in the game.
|
int |
getSpaceRemaining()
Retrieves the remaining unit-space available for Bunkers and Transports(Dropships, Shuttles, Overlords ).
|
int |
getSpellCooldown()
Retrieves the unit's ability cooldown.
|
int |
getSpiderMineCount()
Retrieves the amount of Spider Mines this unit has available.
|
int |
getStasisTimer()
Retrieves the time, in frames, that Stasis Field will remain active on the current unit.
|
int |
getStimTimer()
Retrieves the time, in frames, that Stim Packs will remain active on the current unit.
|
Unit |
getTarget()
Generally returns the appropriate target unit after issuing an order that accepts a target unit (i.e. attack, repair, gather, etc.).
|
Position |
getTargetPosition()
Retrieves the target position the unit is moving to, provided a valid path to the target position exists.
|
TechType |
getTech()
Retrieves the technology that this unit is currently researching.
|
TilePosition |
getTilePosition()
Retrieves the unit's build position from the upper left corner of the map in tiles.
|
int |
getTop()
Retrieves the Y coordinate of the unit's top boundary, measured in pixels from the top of the map.
|
java.util.List<UnitType> |
getTrainingQueue()
Retrieves the list of units queued up to be trained.
|
Unit |
getTransport()
Retrieves the Transport(Dropship, Shuttle, Overlord ) or Bunker unit that has this unit loaded inside of it.
|
UnitType |
getType()
Retrieves the unit's type.
|
java.util.List<Unit> |
getUnitsInRadius(int radius)
Retrieves the set of all units in a given radius of the current unit.
|
java.util.List<Unit> |
getUnitsInWeaponRange(WeaponType weapon)
Obtains the set of units within weapon range of this unit.
|
UpgradeType |
getUpgrade()
Retrieves the upgrade that this unit is currently upgrading.
|
double |
getVelocityX()
Retrieves the x component of the unit's velocity, measured in pixels per frame.
|
double |
getVelocityY()
Retrieves the y component of the unit's velocity, measured in pixels per frame.
|
boolean |
haltConstruction()
Orders a SCV to stop constructing a structure.
|
boolean |
hasNuke()
Checks if the current unit is housing a Nuke.
|
boolean |
hasPath(Position target)
Using data provided by Starcraft, checks if there is a path available from this unit to the given target.
|
boolean |
hasPath(PositionOrUnit target) |
boolean |
hasPath(Unit target) |
boolean |
holdPosition()
Orders the unit to hold its position.
|
boolean |
holdPosition(boolean shiftQueueCommand) |
boolean |
isAccelerating()
Checks if the current unit is accelerating.
|
boolean |
isAttackFrame()
Checks if this unit is currently playing an attack animation.
|
boolean |
isAttacking()
Checks if this unit is currently attacking something.
|
boolean |
isBeingConstructed()
Checks if the current unit is being constructed.
|
boolean |
isBeingGathered()
Checks this Mineral Field or Refinery is currently being gathered from.
|
boolean |
isBeingHealed()
Checks if this unit is currently being healed by a Medic or repaired by a SCV.
|
boolean |
isBlind()
Checks if this unit is currently blinded by a Medic 's Optical Flare ability.
|
boolean |
isBraking()
Checks if the current unit is slowing down to come to a stop.
|
boolean |
isBurrowed()
Checks if the current unit is burrowed, either using the Burrow ability, or is an armed Spider Mine.
|
boolean |
isCarryingGas()
Checks if this worker unit is carrying some vespene gas.
|
boolean |
isCarryingMinerals()
Checks if this worker unit is carrying some minerals.
|
boolean |
isCloaked()
Checks if this unit is currently cloaked.
|
boolean |
isCompleted()
Checks if this unit has finished being constructed, trained, morphed, or warped in, and can now receive orders.
|
boolean |
isConstructing()
Checks if a unit is either constructing something or moving to construct something.
|
boolean |
isDefenseMatrixed()
Checks if this unit has the Defensive Matrix effect.
|
boolean |
isDetected()
Checks if this unit is visible or revealed by a detector unit.
|
boolean |
isEnsnared()
Checks if the Queen ability Ensnare has been used on this unit.
|
boolean |
isFlying()
This macro function checks if this unit is in the air.
|
boolean |
isFollowing()
Checks if this unit is following another unit.
|
boolean |
isGatheringGas()
Checks if this unit is currently gathering gas.
|
boolean |
isGatheringMinerals()
Checks if this unit is currently harvesting minerals.
|
boolean |
isHallucination()
Checks if this unit is a hallucination.
|
boolean |
isHoldingPosition()
Checks if the unit is currently holding position.
|
boolean |
isIdle()
Checks if this unit is running an idle order.
|
boolean |
isInterruptible()
Checks if the unit can be interrupted.
|
boolean |
isInvincible()
Checks the invincibility state for this unit.
|
boolean |
isInWeaponRange(Unit target)
Checks if the target unit can immediately be attacked by this unit in the current frame.
|
boolean |
isIrradiated()
Checks if this unit is irradiated by a Science Vessel 's Irradiate ability.
|
boolean |
isLifted()
Checks if this unit is a Terran building and lifted off the ground.
|
boolean |
isLoaded()
Checks if this unit is currently loaded into another unit such as a Transport(Dropship, Shuttle, Overlord ).
|
boolean |
isLockedDown()
Checks if this unit is currently locked by a Ghost.
|
boolean |
isMaelstrommed()
Checks if this unit has been maelstrommed by a Dark Archon.
|
boolean |
isMorphing()
Finds out if the current unit is morphing or not.
|
boolean |
isMoving()
Checks if this unit is currently moving.
|
boolean |
isParasited()
Checks if this unit has been parasited by some other player.
|
boolean |
isPatrolling()
Checks if this unit is patrolling between two positions.
|
boolean |
isPlagued()
Checks if this unit has been been plagued by a Defiler.
|
boolean |
isPowered()
Checks if this unit has power.
|
boolean |
isRepairing()
Checks if this unit is repairing or moving to repair another unit.
|
boolean |
isResearching()
Checks if this unit is a structure that is currently researching a technology.
|
boolean |
isSelected()
Checks if this unit has been selected in the user interface.
|
boolean |
isSieged()
Checks if this unit is currently sieged.
|
boolean |
isStartingAttack()
Checks if the unit is starting to attack.
|
boolean |
isStasised()
Checks if this unit is inflicted with Stasis Field by an Arbiter.
|
boolean |
isStimmed()
Checks if this unit is currently under the influence of a Stim Packs.
|
boolean |
isStuck()
Checks if this unit is currently trying to resolve a collision by randomly moving around.
|
boolean |
issueCommand(UnitCommand command)
This function issues a command to the unit(s), however it is used for interfacing only, and is recommended to use one of the more specific command functions when writing an AI.
|
boolean |
isTargetable()
Performs some cheap checks to attempt to quickly detect whether the unit is unable to be targetted as the target unit of an unspecified command.
|
boolean |
isTraining()
Checks if this unit is training a new unit.
|
boolean |
isUnderAttack()
Checks if the current unit is being attacked.
|
boolean |
isUnderDarkSwarm()
Checks if this unit is under the cover of a Dark Swarm.
|
boolean |
isUnderDisruptionWeb()
Checks if this unit is currently being affected by a Disruption Web.
|
boolean |
isUnderStorm()
Checks if this unit is currently taking damage from a Psionic Storm.
|
boolean |
isUpgrading()
Checks if this unit is a structure that is currently upgrading an upgrade.
|
boolean |
isVisible()
Checks if this unit is visible.
|
boolean |
isVisible(Player player) |
boolean |
land(TilePosition target)
Orders the unit to land.
|
boolean |
lift()
Orders the unit to lift.
|
boolean |
load(Unit target)
Orders the unit to load the target unit.
|
boolean |
load(Unit target,
boolean shiftQueueCommand) |
boolean |
morph(UnitType type)
Orders the unit(s) to morph into a different UnitType.
|
boolean |
move(Position target)
Orders the unit to move from its current position to the specified position.
|
boolean |
move(Position target,
boolean shiftQueueCommand) |
boolean |
patrol(Position target)
Orders the unit to patrol between its current position and the specified position.
|
boolean |
patrol(Position target,
boolean shiftQueueCommand) |
boolean |
placeCOP(TilePosition target)
Moves a Flag Beacon to a different location.
|
boolean |
repair(Unit target)
Orders the unit to repair the specified unit.
|
boolean |
repair(Unit target,
boolean shiftQueueCommand) |
boolean |
research(TechType tech)
Orders the unit to research the given tech type.
|
boolean |
returnCargo()
Orders the unit to return its cargo to a nearby resource depot such as a Command Center.
|
boolean |
returnCargo(boolean shiftQueueCommand) |
boolean |
rightClick(Position target)
Works like the right click in the GUI.
|
boolean |
rightClick(Position target,
boolean shiftQueueCommand) |
boolean |
rightClick(PositionOrUnit target) |
boolean |
rightClick(PositionOrUnit target,
boolean shiftQueueCommand) |
boolean |
rightClick(Unit target) |
boolean |
rightClick(Unit target,
boolean shiftQueueCommand) |
boolean |
setRallyPoint(Position target)
Orders the unit to set its rally position to the specified position or unit.
|
boolean |
setRallyPoint(PositionOrUnit target) |
boolean |
setRallyPoint(Unit target) |
boolean |
siege()
Orders the unit to siege.
|
boolean |
stop()
Orders the unit to stop.
|
boolean |
stop(boolean shiftQueueCommand) |
boolean |
train()
Orders the unit(s) to add a UnitType to its training queue, or morphs into the UnitType if it is Zerg.
|
boolean |
train(UnitType type) |
boolean |
unburrow()
Orders a burrowed unit to unburrow.
|
boolean |
unload(Unit target)
Orders the unit to unload the target unit.
|
boolean |
unloadAll()
Orders the unit to unload all loaded units at the unit's current position.
|
boolean |
unloadAll(boolean shiftQueueCommand) |
boolean |
unloadAll(Position target)
Orders the unit to unload all loaded units at the unit's current position.
|
boolean |
unloadAll(Position target,
boolean shiftQueueCommand) |
boolean |
unsiege()
Orders the unit to unsiege.
|
boolean |
upgrade(UpgradeType upgrade)
Orders the unit to upgrade the given upgrade type.
|
boolean |
useTech(TechType tech)
Orders the unit to use a technology.
|
boolean |
useTech(TechType tech,
Position target) |
boolean |
useTech(TechType tech,
PositionOrUnit target) |
boolean |
useTech(TechType tech,
Unit target) |
getPoint
getDistance, getDistance, getX, getY
public int getID()
public boolean exists()
public int getReplayID()
public Player getPlayer()
public UnitType getType()
public Position getPosition()
getPosition
in class PositionedObject
public TilePosition getTilePosition()
public double getAngle()
public double getVelocityX()
public double getVelocityY()
public Region getRegion()
public int getLeft()
public int getTop()
public int getRight()
public int getBottom()
public int getHitPoints()
public int getShields()
public int getEnergy()
public int getResources()
public int getResourceGroup()
public int getDistance(Position target)
public int getDistance(Unit target)
public int getDistance(PositionOrUnit target)
public boolean hasPath(Position target)
public boolean hasPath(Unit target)
public boolean hasPath(PositionOrUnit target)
public int getLastCommandFrame()
public UnitCommand getLastCommand()
public Player getLastAttackingPlayer()
public UnitType getInitialType()
public Position getInitialPosition()
public TilePosition getInitialTilePosition()
public int getInitialHitPoints()
public int getInitialResources()
public int getKillCount()
public int getAcidSporeCount()
public int getInterceptorCount()
public int getScarabCount()
public int getSpiderMineCount()
public int getGroundWeaponCooldown()
public int getAirWeaponCooldown()
public int getSpellCooldown()
public int getDefenseMatrixPoints()
public int getDefenseMatrixTimer()
public int getEnsnareTimer()
public int getIrradiateTimer()
public int getLockdownTimer()
public int getMaelstromTimer()
public int getOrderTimer()
public int getPlagueTimer()
public int getRemoveTimer()
public int getStasisTimer()
public int getStimTimer()
public UnitType getBuildType()
public java.util.List<UnitType> getTrainingQueue()
public TechType getTech()
public UpgradeType getUpgrade()
public int getRemainingBuildTime()
public int getRemainingTrainTime()
public int getRemainingResearchTime()
public int getRemainingUpgradeTime()
public Unit getBuildUnit()
public Unit getTarget()
public Position getTargetPosition()
public Order getOrder()
public Order getSecondaryOrder()
public Unit getOrderTarget()
public Position getOrderTargetPosition()
public Position getRallyPosition()
public Unit getRallyUnit()
public Unit getAddon()
public Unit getNydusExit()
public Unit getPowerUp()
public Unit getTransport()
public java.util.List<Unit> getLoadedUnits()
public int getSpaceRemaining()
public Unit getCarrier()
public java.util.List<Unit> getInterceptors()
public Unit getHatchery()
public java.util.List<Unit> getLarva()
public java.util.List<Unit> getUnitsInRadius(int radius)
public java.util.List<Unit> getUnitsInWeaponRange(WeaponType weapon)
public boolean hasNuke()
public boolean isAccelerating()
public boolean isAttacking()
public boolean isAttackFrame()
public boolean isBeingConstructed()
public boolean isBeingGathered()
public boolean isBeingHealed()
public boolean isBlind()
public boolean isBraking()
public boolean isBurrowed()
public boolean isCarryingGas()
public boolean isCarryingMinerals()
public boolean isCloaked()
public boolean isCompleted()
public boolean isConstructing()
public boolean isDefenseMatrixed()
public boolean isDetected()
public boolean isEnsnared()
public boolean isFlying()
public boolean isFollowing()
public boolean isGatheringGas()
public boolean isGatheringMinerals()
public boolean isHallucination()
public boolean isHoldingPosition()
public boolean isIdle()
public boolean isInterruptible()
public boolean isInvincible()
public boolean isInWeaponRange(Unit target)
public boolean isIrradiated()
public boolean isLifted()
public boolean isLoaded()
public boolean isLockedDown()
public boolean isMaelstrommed()
public boolean isMorphing()
public boolean isMoving()
public boolean isParasited()
public boolean isPatrolling()
public boolean isPlagued()
public boolean isRepairing()
public boolean isResearching()
public boolean isSelected()
public boolean isSieged()
public boolean isStartingAttack()
public boolean isStasised()
public boolean isStimmed()
public boolean isStuck()
public boolean isTraining()
public boolean isUnderAttack()
public boolean isUnderDarkSwarm()
public boolean isUnderDisruptionWeb()
public boolean isUnderStorm()
public boolean isPowered()
public boolean isUpgrading()
public boolean isVisible()
public boolean isVisible(Player player)
public boolean isTargetable()
public boolean issueCommand(UnitCommand command)
public boolean attack(Position target)
public boolean attack(Unit target)
public boolean attack(PositionOrUnit target)
public boolean attack(Position target, boolean shiftQueueCommand)
public boolean attack(Unit target, boolean shiftQueueCommand)
public boolean attack(PositionOrUnit target, boolean shiftQueueCommand)
public boolean build(UnitType type)
public boolean build(UnitType type, TilePosition target)
public boolean buildAddon(UnitType type)
public boolean train()
public boolean train(UnitType type)
public boolean morph(UnitType type)
public boolean research(TechType tech)
public boolean upgrade(UpgradeType upgrade)
public boolean setRallyPoint(Position target)
public boolean setRallyPoint(Unit target)
public boolean setRallyPoint(PositionOrUnit target)
public boolean move(Position target)
public boolean move(Position target, boolean shiftQueueCommand)
public boolean patrol(Position target)
public boolean patrol(Position target, boolean shiftQueueCommand)
public boolean holdPosition()
public boolean holdPosition(boolean shiftQueueCommand)
public boolean stop()
public boolean stop(boolean shiftQueueCommand)
public boolean follow(Unit target)
public boolean follow(Unit target, boolean shiftQueueCommand)
public boolean gather(Unit target)
public boolean gather(Unit target, boolean shiftQueueCommand)
public boolean returnCargo()
public boolean returnCargo(boolean shiftQueueCommand)
public boolean repair(Unit target)
public boolean repair(Unit target, boolean shiftQueueCommand)
public boolean burrow()
public boolean unburrow()
public boolean cloak()
public boolean decloak()
public boolean siege()
public boolean unsiege()
public boolean lift()
public boolean land(TilePosition target)
public boolean load(Unit target)
public boolean load(Unit target, boolean shiftQueueCommand)
public boolean unload(Unit target)
public boolean unloadAll()
public boolean unloadAll(boolean shiftQueueCommand)
public boolean unloadAll(Position target)
public boolean unloadAll(Position target, boolean shiftQueueCommand)
public boolean rightClick(Position target)
public boolean rightClick(Unit target)
public boolean rightClick(PositionOrUnit target)
public boolean rightClick(Position target, boolean shiftQueueCommand)
public boolean rightClick(Unit target, boolean shiftQueueCommand)
public boolean rightClick(PositionOrUnit target, boolean shiftQueueCommand)
public boolean haltConstruction()
public boolean cancelConstruction()
public boolean cancelAddon()
public boolean cancelTrain()
public boolean cancelTrain(int slot)
public boolean cancelMorph()
public boolean cancelResearch()
public boolean cancelUpgrade()
public boolean useTech(TechType tech)
public boolean useTech(TechType tech, PositionOrUnit target)
public boolean placeCOP(TilePosition target)
public boolean canIssueCommand(UnitCommand command, boolean checkCanUseTechPositionOnPositions, boolean checkCanUseTechUnitOnUnits, boolean checkCanBuildUnitType, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canIssueCommand(UnitCommand command, boolean checkCanUseTechPositionOnPositions, boolean checkCanUseTechUnitOnUnits, boolean checkCanBuildUnitType, boolean checkCanTargetUnit)
public boolean canIssueCommand(UnitCommand command, boolean checkCanUseTechPositionOnPositions, boolean checkCanUseTechUnitOnUnits, boolean checkCanBuildUnitType)
public boolean canIssueCommand(UnitCommand command, boolean checkCanUseTechPositionOnPositions, boolean checkCanUseTechUnitOnUnits)
public boolean canIssueCommand(UnitCommand command, boolean checkCanUseTechPositionOnPositions)
public boolean canIssueCommand(UnitCommand command)
public boolean canIssueCommand(UnitCommand command, boolean checkCanUseTechPositionOnPositions, boolean checkCanUseTechUnitOnUnits, boolean checkCanBuildUnitType, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canIssueCommandGrouped(UnitCommand command, boolean checkCanUseTechPositionOnPositions, boolean checkCanUseTechUnitOnUnits, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibilityGrouped)
public boolean canIssueCommandGrouped(UnitCommand command, boolean checkCanUseTechPositionOnPositions, boolean checkCanUseTechUnitOnUnits, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canIssueCommandGrouped(UnitCommand command, boolean checkCanUseTechPositionOnPositions, boolean checkCanUseTechUnitOnUnits, boolean checkCanTargetUnit)
public boolean canIssueCommandGrouped(UnitCommand command, boolean checkCanUseTechPositionOnPositions, boolean checkCanUseTechUnitOnUnits)
public boolean canIssueCommandGrouped(UnitCommand command, boolean checkCanUseTechPositionOnPositions)
public boolean canIssueCommandGrouped(UnitCommand command)
public boolean canIssueCommandGrouped(UnitCommand command, boolean checkCanUseTechPositionOnPositions, boolean checkCanUseTechUnitOnUnits, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibilityGrouped, boolean checkCommandibility)
public boolean canCommand()
public boolean canCommandGrouped()
public boolean canCommandGrouped(boolean checkCommandibility)
public boolean canIssueCommandType(UnitCommandType ct)
public boolean canIssueCommandType(UnitCommandType ct, boolean checkCommandibility)
public boolean canIssueCommandTypeGrouped(UnitCommandType ct, boolean checkCommandibilityGrouped)
public boolean canIssueCommandTypeGrouped(UnitCommandType ct)
public boolean canIssueCommandTypeGrouped(UnitCommandType ct, boolean checkCommandibilityGrouped, boolean checkCommandibility)
public boolean canTargetUnit(Unit targetUnit)
public boolean canTargetUnit(Unit targetUnit, boolean checkCommandibility)
public boolean canAttack()
public boolean canAttack(boolean checkCommandibility)
public boolean canAttack(Position target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canAttack(Unit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canAttack(PositionOrUnit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canAttack(Position target, boolean checkCanTargetUnit)
public boolean canAttack(Unit target, boolean checkCanTargetUnit)
public boolean canAttack(PositionOrUnit target, boolean checkCanTargetUnit)
public boolean canAttack(Position target)
public boolean canAttack(Unit target)
public boolean canAttack(PositionOrUnit target)
public boolean canAttack(Position target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canAttack(Unit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canAttack(PositionOrUnit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canAttackGrouped(boolean checkCommandibilityGrouped)
public boolean canAttackGrouped()
public boolean canAttackGrouped(boolean checkCommandibilityGrouped, boolean checkCommandibility)
public boolean canAttackGrouped(Position target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibilityGrouped)
public boolean canAttackGrouped(Unit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibilityGrouped)
public boolean canAttackGrouped(PositionOrUnit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibilityGrouped)
public boolean canAttackGrouped(Position target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canAttackGrouped(Unit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canAttackGrouped(PositionOrUnit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canAttackGrouped(Position target, boolean checkCanTargetUnit)
public boolean canAttackGrouped(Unit target, boolean checkCanTargetUnit)
public boolean canAttackGrouped(PositionOrUnit target, boolean checkCanTargetUnit)
public boolean canAttackGrouped(Position target)
public boolean canAttackGrouped(Unit target)
public boolean canAttackGrouped(PositionOrUnit target)
public boolean canAttackGrouped(Position target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibilityGrouped, boolean checkCommandibility)
public boolean canAttackGrouped(Unit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibilityGrouped, boolean checkCommandibility)
public boolean canAttackGrouped(PositionOrUnit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibilityGrouped, boolean checkCommandibility)
public boolean canAttackMove()
public boolean canAttackMove(boolean checkCommandibility)
public boolean canAttackMoveGrouped(boolean checkCommandibilityGrouped)
public boolean canAttackMoveGrouped()
public boolean canAttackMoveGrouped(boolean checkCommandibilityGrouped, boolean checkCommandibility)
public boolean canAttackUnit()
public boolean canAttackUnit(boolean checkCommandibility)
public boolean canAttackUnit(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canAttackUnit(Unit targetUnit, boolean checkCanTargetUnit)
public boolean canAttackUnit(Unit targetUnit)
public boolean canAttackUnit(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canAttackUnitGrouped(boolean checkCommandibilityGrouped)
public boolean canAttackUnitGrouped()
public boolean canAttackUnitGrouped(boolean checkCommandibilityGrouped, boolean checkCommandibility)
public boolean canAttackUnitGrouped(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibilityGrouped)
public boolean canAttackUnitGrouped(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canAttackUnitGrouped(Unit targetUnit, boolean checkCanTargetUnit)
public boolean canAttackUnitGrouped(Unit targetUnit)
public boolean canAttackUnitGrouped(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibilityGrouped, boolean checkCommandibility)
public boolean canBuild()
public boolean canBuild(boolean checkCommandibility)
public boolean canBuild(UnitType uType, boolean checkCanIssueCommandType)
public boolean canBuild(UnitType uType)
public boolean canBuild(UnitType uType, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canBuild(UnitType uType, TilePosition tilePos, boolean checkTargetUnitType, boolean checkCanIssueCommandType)
public boolean canBuild(UnitType uType, TilePosition tilePos, boolean checkTargetUnitType)
public boolean canBuild(UnitType uType, TilePosition tilePos)
public boolean canBuild(UnitType uType, TilePosition tilePos, boolean checkTargetUnitType, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canBuildAddon()
public boolean canBuildAddon(boolean checkCommandibility)
public boolean canBuildAddon(UnitType uType, boolean checkCanIssueCommandType)
public boolean canBuildAddon(UnitType uType)
public boolean canBuildAddon(UnitType uType, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canTrain()
public boolean canTrain(boolean checkCommandibility)
public boolean canTrain(UnitType uType, boolean checkCanIssueCommandType)
public boolean canTrain(UnitType uType)
public boolean canTrain(UnitType uType, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canMorph()
public boolean canMorph(boolean checkCommandibility)
public boolean canMorph(UnitType uType, boolean checkCanIssueCommandType)
public boolean canMorph(UnitType uType)
public boolean canMorph(UnitType uType, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canResearch()
public boolean canResearch(boolean checkCommandibility)
public boolean canResearch(TechType type)
public boolean canResearch(TechType type, boolean checkCanIssueCommandType)
public boolean canUpgrade()
public boolean canUpgrade(boolean checkCommandibility)
public boolean canUpgrade(UpgradeType type)
public boolean canUpgrade(UpgradeType type, boolean checkCanIssueCommandType)
public boolean canSetRallyPoint()
public boolean canSetRallyPoint(boolean checkCommandibility)
public boolean canSetRallyPoint(Position target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canSetRallyPoint(Unit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canSetRallyPoint(PositionOrUnit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canSetRallyPoint(Position target, boolean checkCanTargetUnit)
public boolean canSetRallyPoint(Unit target, boolean checkCanTargetUnit)
public boolean canSetRallyPoint(PositionOrUnit target, boolean checkCanTargetUnit)
public boolean canSetRallyPoint(Position target)
public boolean canSetRallyPoint(Unit target)
public boolean canSetRallyPoint(PositionOrUnit target)
public boolean canSetRallyPoint(Position target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canSetRallyPoint(Unit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canSetRallyPoint(PositionOrUnit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canSetRallyPosition()
public boolean canSetRallyPosition(boolean checkCommandibility)
public boolean canSetRallyUnit()
public boolean canSetRallyUnit(boolean checkCommandibility)
public boolean canSetRallyUnit(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canSetRallyUnit(Unit targetUnit, boolean checkCanTargetUnit)
public boolean canSetRallyUnit(Unit targetUnit)
public boolean canSetRallyUnit(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canMove()
public boolean canMove(boolean checkCommandibility)
public boolean canMoveGrouped(boolean checkCommandibilityGrouped)
public boolean canMoveGrouped()
public boolean canMoveGrouped(boolean checkCommandibilityGrouped, boolean checkCommandibility)
public boolean canPatrol()
public boolean canPatrol(boolean checkCommandibility)
public boolean canPatrolGrouped(boolean checkCommandibilityGrouped)
public boolean canPatrolGrouped()
public boolean canPatrolGrouped(boolean checkCommandibilityGrouped, boolean checkCommandibility)
public boolean canFollow()
public boolean canFollow(boolean checkCommandibility)
public boolean canFollow(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canFollow(Unit targetUnit, boolean checkCanTargetUnit)
public boolean canFollow(Unit targetUnit)
public boolean canFollow(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canGather()
public boolean canGather(boolean checkCommandibility)
public boolean canGather(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canGather(Unit targetUnit, boolean checkCanTargetUnit)
public boolean canGather(Unit targetUnit)
public boolean canGather(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canReturnCargo()
public boolean canReturnCargo(boolean checkCommandibility)
public boolean canHoldPosition()
public boolean canHoldPosition(boolean checkCommandibility)
public boolean canStop()
public boolean canStop(boolean checkCommandibility)
public boolean canRepair()
public boolean canRepair(boolean checkCommandibility)
public boolean canRepair(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canRepair(Unit targetUnit, boolean checkCanTargetUnit)
public boolean canRepair(Unit targetUnit)
public boolean canRepair(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canBurrow()
public boolean canBurrow(boolean checkCommandibility)
public boolean canUnburrow()
public boolean canUnburrow(boolean checkCommandibility)
public boolean canCloak()
public boolean canCloak(boolean checkCommandibility)
public boolean canDecloak()
public boolean canDecloak(boolean checkCommandibility)
public boolean canSiege()
public boolean canSiege(boolean checkCommandibility)
public boolean canUnsiege()
public boolean canUnsiege(boolean checkCommandibility)
public boolean canLift()
public boolean canLift(boolean checkCommandibility)
public boolean canLand()
public boolean canLand(boolean checkCommandibility)
public boolean canLand(TilePosition target, boolean checkCanIssueCommandType)
public boolean canLand(TilePosition target)
public boolean canLand(TilePosition target, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canLoad()
public boolean canLoad(boolean checkCommandibility)
public boolean canLoad(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canLoad(Unit targetUnit, boolean checkCanTargetUnit)
public boolean canLoad(Unit targetUnit)
public boolean canLoad(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canUnloadWithOrWithoutTarget()
public boolean canUnloadWithOrWithoutTarget(boolean checkCommandibility)
public boolean canUnloadAtPosition(Position targDropPos, boolean checkCanIssueCommandType)
public boolean canUnloadAtPosition(Position targDropPos)
public boolean canUnloadAtPosition(Position targDropPos, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canUnload()
public boolean canUnload(boolean checkCommandibility)
public boolean canUnload(Unit targetUnit, boolean checkCanTargetUnit, boolean checkPosition, boolean checkCanIssueCommandType)
public boolean canUnload(Unit targetUnit, boolean checkCanTargetUnit, boolean checkPosition)
public boolean canUnload(Unit targetUnit, boolean checkCanTargetUnit)
public boolean canUnload(Unit targetUnit)
public boolean canUnload(Unit targetUnit, boolean checkCanTargetUnit, boolean checkPosition, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canUnloadAll()
public boolean canUnloadAll(boolean checkCommandibility)
public boolean canUnloadAllPosition()
public boolean canUnloadAllPosition(boolean checkCommandibility)
public boolean canUnloadAllPosition(Position targDropPos, boolean checkCanIssueCommandType)
public boolean canUnloadAllPosition(Position targDropPos)
public boolean canUnloadAllPosition(Position targDropPos, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canRightClick()
public boolean canRightClick(boolean checkCommandibility)
public boolean canRightClick(Position target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canRightClick(Unit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canRightClick(PositionOrUnit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canRightClick(Position target, boolean checkCanTargetUnit)
public boolean canRightClick(Unit target, boolean checkCanTargetUnit)
public boolean canRightClick(PositionOrUnit target, boolean checkCanTargetUnit)
public boolean canRightClick(Position target)
public boolean canRightClick(Unit target)
public boolean canRightClick(PositionOrUnit target)
public boolean canRightClick(Position target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canRightClick(Unit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canRightClick(PositionOrUnit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canRightClickGrouped(boolean checkCommandibilityGrouped)
public boolean canRightClickGrouped()
public boolean canRightClickGrouped(boolean checkCommandibilityGrouped, boolean checkCommandibility)
public boolean canRightClickGrouped(Position target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibilityGrouped)
public boolean canRightClickGrouped(Unit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibilityGrouped)
public boolean canRightClickGrouped(PositionOrUnit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibilityGrouped)
public boolean canRightClickGrouped(Position target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canRightClickGrouped(Unit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canRightClickGrouped(PositionOrUnit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canRightClickGrouped(Position target, boolean checkCanTargetUnit)
public boolean canRightClickGrouped(Unit target, boolean checkCanTargetUnit)
public boolean canRightClickGrouped(PositionOrUnit target, boolean checkCanTargetUnit)
public boolean canRightClickGrouped(Position target)
public boolean canRightClickGrouped(Unit target)
public boolean canRightClickGrouped(PositionOrUnit target)
public boolean canRightClickGrouped(Position target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibilityGrouped, boolean checkCommandibility)
public boolean canRightClickGrouped(Unit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibilityGrouped, boolean checkCommandibility)
public boolean canRightClickGrouped(PositionOrUnit target, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibilityGrouped, boolean checkCommandibility)
public boolean canRightClickPosition()
public boolean canRightClickPosition(boolean checkCommandibility)
public boolean canRightClickPositionGrouped(boolean checkCommandibilityGrouped)
public boolean canRightClickPositionGrouped()
public boolean canRightClickPositionGrouped(boolean checkCommandibilityGrouped, boolean checkCommandibility)
public boolean canRightClickUnit()
public boolean canRightClickUnit(boolean checkCommandibility)
public boolean canRightClickUnit(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canRightClickUnit(Unit targetUnit, boolean checkCanTargetUnit)
public boolean canRightClickUnit(Unit targetUnit)
public boolean canRightClickUnit(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canRightClickUnitGrouped(boolean checkCommandibilityGrouped)
public boolean canRightClickUnitGrouped()
public boolean canRightClickUnitGrouped(boolean checkCommandibilityGrouped, boolean checkCommandibility)
public boolean canRightClickUnitGrouped(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibilityGrouped)
public boolean canRightClickUnitGrouped(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType)
public boolean canRightClickUnitGrouped(Unit targetUnit, boolean checkCanTargetUnit)
public boolean canRightClickUnitGrouped(Unit targetUnit)
public boolean canRightClickUnitGrouped(Unit targetUnit, boolean checkCanTargetUnit, boolean checkCanIssueCommandType, boolean checkCommandibilityGrouped, boolean checkCommandibility)
public boolean canHaltConstruction()
public boolean canHaltConstruction(boolean checkCommandibility)
public boolean canCancelConstruction()
public boolean canCancelConstruction(boolean checkCommandibility)
public boolean canCancelAddon()
public boolean canCancelAddon(boolean checkCommandibility)
public boolean canCancelTrain()
public boolean canCancelTrain(boolean checkCommandibility)
public boolean canCancelTrainSlot()
public boolean canCancelTrainSlot(boolean checkCommandibility)
public boolean canCancelTrainSlot(int slot, boolean checkCanIssueCommandType)
public boolean canCancelTrainSlot(int slot)
public boolean canCancelTrainSlot(int slot, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canCancelMorph()
public boolean canCancelMorph(boolean checkCommandibility)
public boolean canCancelResearch()
public boolean canCancelResearch(boolean checkCommandibility)
public boolean canCancelUpgrade()
public boolean canCancelUpgrade(boolean checkCommandibility)
public boolean canUseTechWithOrWithoutTarget()
public boolean canUseTechWithOrWithoutTarget(boolean checkCommandibility)
public boolean canUseTechWithOrWithoutTarget(TechType tech, boolean checkCanIssueCommandType)
public boolean canUseTechWithOrWithoutTarget(TechType tech)
public boolean canUseTechWithOrWithoutTarget(TechType tech, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canUseTech(TechType tech, Position target, boolean checkCanTargetUnit, boolean checkTargetsType, boolean checkCanIssueCommandType)
public boolean canUseTech(TechType tech, Unit target, boolean checkCanTargetUnit, boolean checkTargetsType, boolean checkCanIssueCommandType)
public boolean canUseTech(TechType tech, PositionOrUnit target, boolean checkCanTargetUnit, boolean checkTargetsType, boolean checkCanIssueCommandType)
public boolean canUseTech(TechType tech, Position target, boolean checkCanTargetUnit, boolean checkTargetsType)
public boolean canUseTech(TechType tech, Unit target, boolean checkCanTargetUnit, boolean checkTargetsType)
public boolean canUseTech(TechType tech, PositionOrUnit target, boolean checkCanTargetUnit, boolean checkTargetsType)
public boolean canUseTech(TechType tech, PositionOrUnit target, boolean checkCanTargetUnit)
public boolean canUseTech(TechType tech, PositionOrUnit target)
public boolean canUseTech(TechType tech)
public boolean canUseTech(TechType tech, Position target, boolean checkCanTargetUnit, boolean checkTargetsType, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canUseTech(TechType tech, Unit target, boolean checkCanTargetUnit, boolean checkTargetsType, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canUseTech(TechType tech, PositionOrUnit target, boolean checkCanTargetUnit, boolean checkTargetsType, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canUseTechWithoutTarget(TechType tech, boolean checkCanIssueCommandType)
public boolean canUseTechWithoutTarget(TechType tech)
public boolean canUseTechWithoutTarget(TechType tech, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canUseTechUnit(TechType tech, boolean checkCanIssueCommandType)
public boolean canUseTechUnit(TechType tech)
public boolean canUseTechUnit(TechType tech, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canUseTechUnit(TechType tech, Unit targetUnit, boolean checkCanTargetUnit, boolean checkTargetsUnits, boolean checkCanIssueCommandType)
public boolean canUseTechUnit(TechType tech, Unit targetUnit, boolean checkCanTargetUnit, boolean checkTargetsUnits)
public boolean canUseTechUnit(TechType tech, Unit targetUnit, boolean checkCanTargetUnit)
public boolean canUseTechUnit(TechType tech, Unit targetUnit, boolean checkCanTargetUnit, boolean checkTargetsUnits, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canUseTechPosition(TechType tech, boolean checkCanIssueCommandType)
public boolean canUseTechPosition(TechType tech)
public boolean canUseTechPosition(TechType tech, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canUseTechPosition(TechType tech, Position target, boolean checkTargetsPositions, boolean checkCanIssueCommandType)
public boolean canUseTechPosition(TechType tech, Position target, boolean checkTargetsPositions)
public boolean canUseTechPosition(TechType tech, Position target, boolean checkTargetsPositions, boolean checkCanIssueCommandType, boolean checkCommandibility)
public boolean canPlaceCOP()
public boolean canPlaceCOP(boolean checkCommandibility)
public boolean canPlaceCOP(TilePosition target, boolean checkCanIssueCommandType)
public boolean canPlaceCOP(TilePosition target)
public boolean canPlaceCOP(TilePosition target, boolean checkCanIssueCommandType, boolean checkCommandibility)