GeneralizableAbility<Unit>
, java.io.Serializable
public final class Unit extends java.lang.Object implements java.io.Serializable, GeneralizableAbility<Unit>
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object o) |
|
static Unit |
from(SC2APIProtocol.Raw.Unit sc2ApiUnit) |
|
Unit |
generalizeAbility(java.util.function.UnaryOperator<Ability> generalize) |
|
java.util.Optional<Tag> |
getAddOnTag() |
|
Alliance |
getAlliance() |
|
java.util.Optional<java.lang.Integer> |
getAssignedHarvesters() |
|
java.util.Set<Buff> |
getBuffs() |
|
float |
getBuildProgress() |
|
java.util.Optional<java.lang.Boolean> |
getBurrowed() |
|
java.util.Optional<java.lang.Integer> |
getCargoSpaceMax() |
|
java.util.Optional<java.lang.Integer> |
getCargoSpaceTaken() |
|
java.util.Optional<CloakState> |
getCloakState() |
|
java.util.Optional<java.lang.Float> |
getDetectRange() |
|
DisplayType |
getDisplayType() |
|
java.util.Optional<java.lang.Float> |
getEnergy() |
|
java.util.Optional<java.lang.Float> |
getEnergyMax() |
|
java.util.Optional<Tag> |
getEngagedTargetTag() |
|
float |
getFacing() |
|
java.util.Optional<java.lang.Boolean> |
getFlying() |
|
java.util.Optional<java.lang.Float> |
getHealth() |
|
java.util.Optional<java.lang.Float> |
getHealthMax() |
|
java.util.Optional<java.lang.Integer> |
getIdealHarvesters() |
|
java.util.Optional<java.lang.Integer> |
getMineralContents() |
|
java.util.List<UnitOrder> |
getOrders() |
|
int |
getOwner() |
|
java.util.List<PassengerUnit> |
getPassengers() |
|
Point |
getPosition() |
|
java.util.Optional<java.lang.Boolean> |
getPowered() |
|
java.util.Optional<java.lang.Float> |
getRadarRange() |
|
float |
getRadius() |
|
java.util.Optional<java.lang.Boolean> |
getSelected() |
|
java.util.Optional<java.lang.Float> |
getShield() |
|
java.util.Optional<java.lang.Float> |
getShieldMax() |
|
Tag |
getTag() |
|
UnitType |
getType() |
|
java.util.Optional<java.lang.Integer> |
getVespeneContents() |
|
java.util.Optional<java.lang.Float> |
getWeaponCooldown() |
|
int |
hashCode() |
|
boolean |
isBlip() |
|
boolean |
isOnScreen() |
|
java.lang.String |
toString() |
public static Unit from(SC2APIProtocol.Raw.Unit sc2ApiUnit)
public DisplayType getDisplayType()
public Alliance getAlliance()
public Tag getTag()
public UnitType getType()
public int getOwner()
public Point getPosition()
public float getFacing()
public float getRadius()
public float getBuildProgress()
public java.util.Optional<CloakState> getCloakState()
public java.util.Optional<java.lang.Float> getDetectRange()
public java.util.Optional<java.lang.Float> getRadarRange()
public java.util.Optional<java.lang.Boolean> getSelected()
public boolean isOnScreen()
public boolean isBlip()
public java.util.Optional<java.lang.Boolean> getPowered()
public java.util.Optional<java.lang.Float> getHealth()
public java.util.Optional<java.lang.Float> getHealthMax()
public java.util.Optional<java.lang.Float> getShield()
public java.util.Optional<java.lang.Float> getShieldMax()
public java.util.Optional<java.lang.Float> getEnergy()
public java.util.Optional<java.lang.Float> getEnergyMax()
public java.util.Optional<java.lang.Integer> getMineralContents()
public java.util.Optional<java.lang.Integer> getVespeneContents()
public java.util.Optional<java.lang.Boolean> getFlying()
public java.util.Optional<java.lang.Boolean> getBurrowed()
public java.util.List<UnitOrder> getOrders()
public java.util.Optional<Tag> getAddOnTag()
public java.util.List<PassengerUnit> getPassengers()
public java.util.Optional<java.lang.Integer> getCargoSpaceTaken()
public java.util.Optional<java.lang.Integer> getCargoSpaceMax()
public java.util.Set<Buff> getBuffs()
public java.util.Optional<java.lang.Integer> getAssignedHarvesters()
public java.util.Optional<java.lang.Integer> getIdealHarvesters()
public java.util.Optional<java.lang.Float> getWeaponCooldown()
public java.util.Optional<Tag> getEngagedTargetTag()
public Unit generalizeAbility(java.util.function.UnaryOperator<Ability> generalize)
generalizeAbility
in interface GeneralizableAbility<Unit>
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.