Modifier and Type | Method | Description |
---|---|---|
Unit |
UnitInPool.unit() |
Modifier and Type | Method | Description |
---|---|---|
java.util.Optional<Unit> |
UnitInPool.getUnit() |
Modifier and Type | Method | Description |
---|---|---|
DebugInterface |
DebugInterface.debugKillUnit(Unit unit) |
Destroy a unit.
|
DebugInterface |
DebugInterface.debugSetEnergy(float value,
Unit unit) |
Sets the energy level on a unit.
|
DebugInterface |
DebugInterface.debugSetLife(float value,
Unit unit) |
Sets the life on a unit.
|
DebugInterface |
DebugInterface.debugSetShields(float value,
Unit unit) |
Sets shields on a unit.
|
AvailableAbilities |
QueryInterface.getAbilitiesForUnit(Unit unit,
boolean ignoreResourceRequirements) |
Returns a list of abilities represented as a AvailableAbilities see the Abilities enum for their corresponding,
named, representations.
|
float |
QueryInterface.pathingDistance(Unit start,
Point2d end) |
Returns pathing distance between a unit and a target location.
|
boolean |
QueryInterface.placement(Ability ability,
Point2d target,
Unit unit) |
Returns whether a building can be placed at a location.
|
ActionInterface |
ActionInterface.unitCommand(Unit unit,
Ability ability,
boolean queuedCommand) |
Issues a command to a unit.
|
ActionInterface |
ActionInterface.unitCommand(Unit unit,
Ability ability,
Point2d point,
boolean queuedCommand) |
Issues a command to a unit.
|
ActionInterface |
ActionInterface.unitCommand(Unit unit,
Ability ability,
Unit target,
boolean queuedCommand) |
Issues a command to a unit.
|
ActionInterface |
ActionInterface.unitCommand(java.util.List<Unit> units,
Ability ability,
Unit target,
boolean queuedCommand) |
Issues a command to multiple units (prefer this where possible).
|
UnitInPool |
UnitInPool.update(Unit unit) |
|
UnitInPool |
UnitInPool.update(Unit unit,
long gameLoop,
boolean alive) |
Modifier and Type | Method | Description |
---|---|---|
java.util.List<AvailableAbilities> |
QueryInterface.getAbilitiesForUnits(java.util.List<Unit> units,
boolean ignoreResourceRequirements) |
Issues multiple available abilities queries.
|
ActionInterface |
ActionInterface.unitCommand(java.util.List<Unit> units,
Ability ability,
boolean queuedMove) |
Issues a command to multiple units (prefer this where possible).
|
ActionInterface |
ActionInterface.unitCommand(java.util.List<Unit> units,
Ability ability,
Point2d point,
boolean queuedCommand) |
Issues a command to multiple units (prefer this where possible).
|
ActionInterface |
ActionInterface.unitCommand(java.util.List<Unit> units,
Ability ability,
Unit target,
boolean queuedCommand) |
Issues a command to multiple units (prefer this where possible).
|
Modifier and Type | Method | Description |
---|---|---|
ActionObserverCameraFollowUnitsBuilder |
ActionObserverCameraFollowUnits.Builder.of(Unit... units) |
Modifier and Type | Method | Description |
---|---|---|
ActionRawToggleAutocastBuilder |
ActionRawToggleAutocast.Builder.forUnits(Unit... units) |
|
UseAbilitySyntax |
ActionRawUnitCommand.Builder.forUnits(Unit... units) |
|
ActionRawCameraMoveBuilder |
ActionRawCameraMove.Builder.to(Unit unit) |
Modifier and Type | Method | Description |
---|---|---|
ValueTypeSyntax |
DebugSetUnitValue.Builder.forUnit(Unit unit) |
|
DebugKillUnitBuilder |
DebugKillUnit.Builder.of(Unit... units) |
Modifier and Type | Method | Description |
---|---|---|
java.util.Set<Unit> |
ObservationRaw.getUnits() |
Modifier and Type | Method | Description |
---|---|---|
QueryAvailableAbilitiesBuilder |
QueryAvailableAbilities.Builder.of(Unit unit) |
|
UseAbilitySyntax |
QueryBuildingPlacement.Builder.withUnit(Unit unit) |
Modifier and Type | Method | Description |
---|---|---|
ActionObserverCameraFollowUnitsBuilder |
ActionObserverCameraFollowUnitsSyntax.of(Unit... units) |
Modifier and Type | Method | Description |
---|---|---|
UseAbilitySyntax |
ActionRawUnitCommandSyntax.forUnits(Unit... units) |
|
ActionRawToggleAutocastBuilder |
ForUnitsSyntax.forUnits(Unit... units) |
|
ActionRawCameraMoveBuilder |
ActionRawCameraMoveSyntax.to(Unit unit) |
Modifier and Type | Method | Description |
---|---|---|
ValueTypeSyntax |
DebugSetUnitValueSyntax.forUnit(Unit unit) |
|
DebugKillUnitBuilder |
DebugKillUnitSyntax.of(Unit... units) |
Modifier and Type | Method | Description |
---|---|---|
QueryAvailableAbilitiesBuilder |
QueryAvailableAbilitiesSyntax.of(Unit unit) |
|
UseAbilitySyntax |
QueryBuildingPlacementSyntax.withUnit(Unit unit) |
Modifier and Type | Method | Description |
---|---|---|
static Unit |
Unit.from(SC2APIProtocol.Raw.Unit sc2ApiUnit) |
|
Unit |
Unit.generalizeAbility(java.util.function.UnaryOperator<Ability> generalize) |
Copyright © 2017–2018 Ocraft Project. All rights reserved.