Package | Description |
---|---|
bwapi | |
bwta |
Modifier and Type | Method and Description |
---|---|
Player |
Game.enemy()
Retrieves the
Player interface that represents the enemy player. |
Player |
Game.enemy()
Retrieves the
Player interface that represents the enemy player. |
Player |
Unit.getLastAttackingPlayer()
Retrieves the
Player that last attacked this unit. |
Player |
Unit.getLastAttackingPlayer()
Retrieves the
Player that last attacked this unit. |
Player |
Bullet.getPlayer()
Retrieves the
Player interface that owns the Bullet. |
Player |
Unit.getPlayer()
Retrieves the player that owns this unit.
|
Player |
Unit.getPlayer()
Retrieves the player that owns this unit.
|
Player |
Bullet.getPlayer()
Retrieves the
Player interface that owns the Bullet. |
Player |
Game.getPlayer(int playerID)
Retrieves the
Player object associated with a given identifier. |
Player |
Game.getPlayer(int playerID)
Retrieves the
Player object associated with a given identifier. |
Player |
Game.neutral()
Retrieves the
Player object representing the neutral player. |
Player |
Game.neutral()
Retrieves the
Player object representing the neutral player. |
Player |
Game.self()
Retrieves the player object that BWAPI is controlling.
|
Player |
Game.self()
Retrieves the player object that BWAPI is controlling.
|
Modifier and Type | Method and Description |
---|---|
List<Player> |
Game.allies()
Retrieves a set of all the current player's remaining allies.
|
List<Player> |
Game.allies()
Retrieves a set of all the current player's remaining allies.
|
List<Player> |
Game.enemies()
Retrieves a set of all the current player's remaining enemies.
|
List<Player> |
Game.enemies()
Retrieves a set of all the current player's remaining enemies.
|
List<Player> |
Force.getPlayers()
Retrieves the set of players that belong to this
Force . |
List<Player> |
Game.getPlayers()
Retrieves the set of all players in the match.
|
List<Player> |
Game.getPlayers()
Retrieves the set of all players in the match.
|
List<Player> |
Force.getPlayers()
Retrieves the set of players that belong to this
Force . |
List<Player> |
Game.observers()
Retrieves a set of all players currently observing the game.
|
List<Player> |
Game.observers()
Retrieves a set of all players currently observing the game.
|
Modifier and Type | Method and Description |
---|---|
int |
Player.compareTo(Player other) |
int |
Player.compareTo(Player other) |
int |
Game.getDamageFrom(UnitType fromType,
UnitType toType,
Player fromPlayer) |
int |
Game.getDamageFrom(UnitType fromType,
UnitType toType,
Player fromPlayer) |
int |
Game.getDamageFrom(UnitType fromType,
UnitType toType,
Player fromPlayer,
Player toPlayer)
Calculates the damage received for a given player.
|
int |
Game.getDamageFrom(UnitType fromType,
UnitType toType,
Player fromPlayer,
Player toPlayer)
Calculates the damage received for a given player.
|
int |
Game.getDamageTo(UnitType toType,
UnitType fromType,
Player toPlayer) |
int |
Game.getDamageTo(UnitType toType,
UnitType fromType,
Player toPlayer) |
int |
Game.getDamageTo(UnitType toType,
UnitType fromType,
Player toPlayer,
Player fromPlayer)
Calculates the damage dealt for a given player.
|
int |
Game.getDamageTo(UnitType toType,
UnitType fromType,
Player toPlayer,
Player fromPlayer)
Calculates the damage dealt for a given player.
|
boolean |
Player.isAlly(Player player)
Checks if this player is allied to the specified player.
|
boolean |
Player.isAlly(Player player)
Checks if this player is allied to the specified player.
|
boolean |
Player.isEnemy(Player player)
Checks if this player is unallied to the specified player.
|
boolean |
Player.isEnemy(Player player)
Checks if this player is unallied to the specified player.
|
boolean |
Bullet.isVisible(Player player)
Retrieves the visibility state of the Bullet.
|
boolean |
Unit.isVisible(Player player)
Checks if this unit is visible.
|
boolean |
Unit.isVisible(Player player)
Checks if this unit is visible.
|
boolean |
Bullet.isVisible(Player player)
Retrieves the visibility state of the Bullet.
|
void |
BWEventListener.onPlayerDropped(Player player) |
void |
DefaultBWListener.onPlayerDropped(Player player) |
void |
DefaultBWListener.onPlayerDropped(Player player) |
void |
BWEventListener.onPlayerDropped(Player player) |
void |
BWEventListener.onPlayerLeft(Player player) |
void |
DefaultBWListener.onPlayerLeft(Player player) |
void |
DefaultBWListener.onPlayerLeft(Player player) |
void |
BWEventListener.onPlayerLeft(Player player) |
void |
BWEventListener.onReceiveText(Player player,
String text) |
void |
DefaultBWListener.onReceiveText(Player player,
String text) |
void |
DefaultBWListener.onReceiveText(Player player,
String text) |
void |
BWEventListener.onReceiveText(Player player,
String text) |
boolean |
Game.setAlliance(Player player) |
boolean |
Game.setAlliance(Player player) |
boolean |
Game.setAlliance(Player player,
boolean allied) |
boolean |
Game.setAlliance(Player player,
boolean allied) |
boolean |
Game.setAlliance(Player player,
boolean allied,
boolean alliedVictory)
Sets the alliance state of the current player with the target player.
|
boolean |
Game.setAlliance(Player player,
boolean allied,
boolean alliedVictory)
Sets the alliance state of the current player with the target player.
|
boolean |
Game.setVision(Player player,
boolean enabled)
In a game, this function sets the vision of the current BWAPI player with the
target player.
|
boolean |
Game.setVision(Player player,
boolean enabled)
In a game, this function sets the vision of the current BWAPI player with the
target player.
|
Modifier and Type | Method and Description |
---|---|
static UnitFilter |
UnitFilter.GetPlayer(Predicate<Player> c) |
static UnitFilter |
UnitFilter.GetPlayer(Predicate<Player> c) |
Modifier and Type | Method and Description |
---|---|
static BaseLocation |
BWTA.getStartLocation(Player player) |
static BaseLocation |
BWTA.getStartLocation(Player player) |
Copyright © 2022. All rights reserved.