PlayerId
Bases: IntEnum
This enum class provides the integer values used to reference each player in the game. Use these over specifying player number directly to improve code readability
Source code in AoE2ScenarioParser/datasets/players.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|
Attributes¶
Functions¶
def all(...)
staticmethod
¶
Return a list of all players
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exclude_gaia |
bool
|
if the GAIA player should be excluded from the list or not |
False
|
Returns:
Type | Description |
---|---|
List[PlayerId]
|
The list of playerIds |
Source code in AoE2ScenarioParser/datasets/players.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|