PlayerTypes

Module containing player types.

See also

BWAPI.PlayerType

Functions

static BWAPI.PlayerTypes.allPlayerTypes() → set

Retrieves a set of all PlayerTypes.

Returns:Set of all PlayerTypes.
Return type:PlayerTypeset

Constants

All constants are instances of the PlayerType class

BWAPI.PlayerTypes.None
BWAPI.PlayerTypes.Computer
BWAPI.PlayerTypes.Player
BWAPI.PlayerTypes.RescuePassive
BWAPI.PlayerTypes.EitherPreferComputer
BWAPI.PlayerTypes.EitherPreferHuman
BWAPI.PlayerTypes.Neutral
BWAPI.PlayerTypes.Closed
BWAPI.PlayerTypes.PlayerLeft
BWAPI.PlayerTypes.ComputerLeft
BWAPI.PlayerTypes.Unknown

Enum

Enumeration of player types.

Important

Enum values rarely need to be used in Lua.

BWAPI.PlayerTypes.Enum.None

Value of 0.

BWAPI.PlayerTypes.Enum.Computer

Value of 1.

BWAPI.PlayerTypes.Enum.Player

Value of 2.

BWAPI.PlayerTypes.Enum.RescuePassive

Value of 3.

BWAPI.PlayerTypes.Enum.RescueActive

Value of 4.

BWAPI.PlayerTypes.Enum.EitherPreferComputer

Value of 5.

BWAPI.PlayerTypes.Enum.EitherPreferHuman

Value of 6.

BWAPI.PlayerTypes.Enum.Neutral

Value of 7.

BWAPI.PlayerTypes.Enum.Closed

Value of 8.

BWAPI.PlayerTypes.Enum.Observer

Value of 9.

BWAPI.PlayerTypes.Enum.PlayerLeft

Value of 10.

BWAPI.PlayerTypes.Enum.ComputerLeft

Value of 11.

BWAPI.PlayerTypes.Enum.Unknown

Value of 12.

BWAPI.PlayerTypes.Enum.MAX

Value of 13.