Package | Description |
---|---|
com.github.ocraft.s2client.bot.gateway | |
com.github.ocraft.s2client.protocol.unit |
Modifier and Type | Method | Description |
---|---|---|
java.util.List<UnitInPool> |
ObservationInterface.getUnits(Alliance alliance) |
|
java.util.List<UnitInPool> |
ObservationInterface.getUnits(Alliance alliance,
java.util.function.Predicate<UnitInPool> filter) |
Get all units belonging to a certain alliance and meet the conditions provided by the filter.
|
Modifier and Type | Method | Description |
---|---|---|
static Alliance |
Alliance.from(int sc2ApiPlayerRelative) |
|
static Alliance |
Alliance.from(SC2APIProtocol.Raw.Alliance sc2ApiAlliance) |
|
Alliance |
Unit.getAlliance() |
|
static Alliance |
Alliance.valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Alliance[] |
Alliance.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.Optional<Alliance> |
UnitInfo.getPlayerRelative() |
Copyright © 2017–2018 Ocraft Project. All rights reserved.