GeneralizableAbility<UnitOrder>
, java.io.Serializable
public final class UnitOrder extends java.lang.Object implements java.io.Serializable, GeneralizableAbility<UnitOrder>
Constructor | Description |
---|---|
UnitOrder(Ability ability,
Tag targetedUnitTag,
Point targetedWorldSpacePosition,
java.lang.Float progress) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
static UnitOrder |
from(SC2APIProtocol.Raw.UnitOrder sc2ApiUnitOrder) |
|
UnitOrder |
generalizeAbility(java.util.function.UnaryOperator<Ability> generalize) |
|
Ability |
getAbility() |
|
java.util.Optional<java.lang.Float> |
getProgress() |
|
java.util.Optional<Tag> |
getTargetedUnitTag() |
|
java.util.Optional<Point> |
getTargetedWorldSpacePosition() |
|
int |
hashCode() |
|
java.lang.String |
toString() |
public static UnitOrder from(SC2APIProtocol.Raw.UnitOrder sc2ApiUnitOrder)
public Ability getAbility()
public java.util.Optional<Tag> getTargetedUnitTag()
public java.util.Optional<Point> getTargetedWorldSpacePosition()
public java.util.Optional<java.lang.Float> getProgress()
public UnitOrder generalizeAbility(java.util.function.UnaryOperator<Ability> generalize)
generalizeAbility
in interface GeneralizableAbility<UnitOrder>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2017–2018 Ocraft Project. All rights reserved.