OptionManager
Classes¶
OptionManager
¶
Bases: AoE2Object
Source code in AoE2ScenarioParser/objects/managers/option_manager.py
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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
|
Attributes¶
allow_players_choose_teams: bool = bool(allow_players_choose_teams)
instance-attribute
¶
Type:
Value:
bool
Value:
bool(allow_players_choose_teams)
collide_and_correct: bool = bool(collide_and_correct)
instance-attribute
¶
Type:
Value:
bool
Value:
bool(collide_and_correct)
lock_coop_alliances: bool = bool(lock_coop_alliances) if lock_coop_alliances is not None else None
instance-attribute
¶
Type:
Value:
bool
Value:
bool(lock_coop_alliances) if lock_coop_alliances is not None else None
random_start_points: bool = bool(random_start_points)
instance-attribute
¶
Type:
Value:
bool
Value:
bool(random_start_points)
secondary_game_modes: int | SecondaryGameMode = secondary_game_modes
instance-attribute
¶
Type:
Value:
int | SecondaryGameMode
Value:
secondary_game_modes
victory_condition: int | VictoryCondition = victory_condition
instance-attribute
¶
Type:
Value:
int | VictoryCondition
Value:
victory_condition
victory_custom_conditions_required: bool = bool(victory_custom_conditions_required)
instance-attribute
¶
Type:
Value:
bool
Value:
bool(victory_custom_conditions_required)
villager_force_drop: bool = bool(villager_force_drop) if villager_force_drop is not None else None
instance-attribute
¶
Type:
Value:
bool
Value:
bool(villager_force_drop) if villager_force_drop is not None else None
Functions¶
def __init__(...)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
victory_condition |
int
|
- | required |
victory_score |
int
|
- | required |
_victory_years_10ths |
int
|
- | required |
victory_custom_conditions_required |
bool
|
- | required |
secondary_game_modes |
int
|
- | required |
lock_teams |
bool
|
- | required |
random_start_points |
bool
|
- | required |
allow_players_choose_teams |
bool
|
- | required |
collide_and_correct |
bool
|
- | required |
villager_force_drop |
bool
|
- | required |
lock_coop_alliances |
bool
|
- | required |
kwargs |
? | - |
{}
|
Source code in AoE2ScenarioParser/objects/managers/option_manager.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
|