Constants

See also UNIT_TYPEID, UPGRADE_ID and ABILITY_ID for more constants.

Player constants

The following constants are used when referring to a player:

library.PLAYER_SELF
library.PLAYER_ENEMY
library.PLAYER_NEUTRAL
library.PLAYER_ALLY

These are internally represented as integers, but these constants should be used instead to avoid confusion.

Difficulty

class library.Difficulty
CheatInsane = Difficulty.CheatInsane
CheatMoney = Difficulty.CheatMoney
CheatVision = Difficulty.CheatVision
Easy = Difficulty.Easy
Hard = Difficulty.Hard
HardVeryHard = Difficulty.HardVeryHard
Medium = Difficulty.Medium
MediumHard = Difficulty.MediumHard
VeryEasy = Difficulty.VeryEasy
VeryHard = Difficulty.VeryHard

AIBuild

class library.AIBuild
Air = AIBuild.Air
Macro = AIBuild.Macro
Power = AIBuild.Power
RandomBuild = AIBuild.RandomBuild
Rush = AIBuild.Rush
Timing = AIBuild.Timing

Race

class library.Race

The following three values represent actual races:

Race.Protoss
Race.Terran
Race.Zerg

The following attribute means a randomly selected race from the three above:

Race.Random