Condition
Classes¶
Condition
¶
Bases: AoE2Object
, TriggerComponent
Object for handling a condition.
Source code in AoE2ScenarioParser/objects/data_objects/condition.py
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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
|
Attributes¶
include_changeable_weapon_objects: int = include_changeable_weapon_objects
instance-attribute
¶
Type:
Value:
int
Value:
include_changeable_weapon_objects
victory_timer_type: int = victory_timer_type
instance-attribute
¶
Type:
Value:
int
Value:
victory_timer_type
Functions¶
def __init__(...)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
condition_type |
int
|
- |
None
|
quantity |
int
|
- |
None
|
attribute |
int
|
- |
None
|
unit_object |
int
|
- |
None
|
next_object |
int
|
- |
None
|
object_list |
int
|
- |
None
|
source_player |
int | IntEnum
|
- |
None
|
technology |
int | IntEnum
|
- |
None
|
timer |
int
|
- |
None
|
area_x1 |
int
|
- |
None
|
area_y1 |
int
|
- |
None
|
area_x2 |
int
|
- |
None
|
area_y2 |
int
|
- |
None
|
object_group |
int
|
- |
None
|
object_type |
int
|
- |
None
|
ai_signal |
int
|
- |
None
|
inverted |
int
|
- |
None
|
variable |
int
|
- |
None
|
comparison |
int
|
- |
None
|
target_player |
int | IntEnum
|
- |
None
|
unit_ai_action |
int
|
- |
None
|
object_state |
int
|
- |
None
|
timer_id |
int
|
- |
None
|
victory_timer_type |
int
|
- |
None
|
include_changeable_weapon_objects |
int
|
- |
None
|
xs_function |
str
|
- |
None
|
kwargs |
? | - |
{}
|
Source code in AoE2ScenarioParser/objects/data_objects/condition.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
|
def __str__(...)
¶
Source code in AoE2ScenarioParser/objects/data_objects/condition.py
156 157 |
|
def get_content_as_string(...)
¶
Create a human-readable string showcasing all content of this condition.
This is also the function that is called when doing: print(condition)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
include_condition_definition |
bool
|
If the condition meta-data should be added by this function |
False
|
Returns:
Type | Description |
---|---|
str
|
The created string |
Source code in AoE2ScenarioParser/objects/data_objects/condition.py
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 |
|