Package | Description |
---|---|
bwapi |
Modifier and Type | Method and Description |
---|---|
WeaponType |
UnitType.airWeapon()
Retrieves this unit type's weapon type used when attacking targets in the air.
|
WeaponType |
UnitType.airWeapon()
Retrieves this unit type's weapon type used when attacking targets in the air.
|
WeaponType |
TechType.getWeapon()
Retrieves the Weapon that is attached to this tech type.
|
WeaponType |
TechType.getWeapon()
Retrieves the Weapon that is attached to this tech type.
|
WeaponType |
UnitType.groundWeapon()
Retrieves this unit type's weapon type used when attacking targets on the ground.
|
WeaponType |
UnitType.groundWeapon()
Retrieves this unit type's weapon type used when attacking targets on the ground.
|
static WeaponType |
WeaponType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WeaponType |
WeaponType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WeaponType[] |
WeaponType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static WeaponType[] |
WeaponType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
int |
Player.damage(WeaponType wpn)
Calculates the damage that a given weapon type can deal, including upgrades.
|
int |
Player.damage(WeaponType wpn)
Calculates the damage that a given weapon type can deal, including upgrades.
|
List<Unit> |
Unit.getUnitsInWeaponRange(WeaponType weapon) |
List<Unit> |
Unit.getUnitsInWeaponRange(WeaponType weapon) |
List<Unit> |
Unit.getUnitsInWeaponRange(WeaponType weapon,
UnitFilter pred)
Obtains the set of units within weapon range of this unit.
|
List<Unit> |
Unit.getUnitsInWeaponRange(WeaponType weapon,
UnitFilter pred)
Obtains the set of units within weapon range of this unit.
|
int |
Player.weaponMaxRange(WeaponType weapon)
Retrieves the maximum weapon range of a weapon type, taking the player's weapon
upgrades into consideration.
|
int |
Player.weaponMaxRange(WeaponType weapon)
Retrieves the maximum weapon range of a weapon type, taking the player's weapon
upgrades into consideration.
|
Modifier and Type | Method and Description |
---|---|
static UnitFilter |
UnitFilter.AirWeapon(Predicate<WeaponType> c) |
static UnitFilter |
UnitFilter.AirWeapon(Predicate<WeaponType> c) |
static UnitFilter |
UnitFilter.GroundWeapon(Predicate<WeaponType> c) |
static UnitFilter |
UnitFilter.GroundWeapon(Predicate<WeaponType> c) |
Copyright © 2022. All rights reserved.