Skip to content

BlockageClass

Bases: _DataSetIntEnums

This enum class provides the integer values for the different blockage classes that can be used in the 'Modify Attribute' effect with the 'BlockageClass' attribute.

Examples:

Source code in AoE2ScenarioParser/datasets/trigger_lists/blockage_class.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class BlockageClass(_DataSetIntEnums):
    """
    This enum class provides the integer values for the different blockage classes that can be used in the 'Modify
    Attribute' effect with the 'BlockageClass' attribute.

    **Examples**:



    """
    DEFAULT = 0
    """Forces default obstruction type"""
    RESOURCE = 1
    UNIT = 2
    BUILDING = 3
    WALL = 4
    GATE = 5
    """Gate, allows trespassing"""
    CLIFF = 6
    """Cliff, blocks walling"""

Attributes

DEFAULT = 0 class-attribute instance-attribute

Value: 0

Forces default obstruction type

RESOURCE = 1 class-attribute instance-attribute

Value: 1

UNIT = 2 class-attribute instance-attribute

Value: 2

BUILDING = 3 class-attribute instance-attribute

Value: 3

WALL = 4 class-attribute instance-attribute

Value: 4

GATE = 5 class-attribute instance-attribute

Value: 5

Gate, allows trespassing

CLIFF = 6 class-attribute instance-attribute

Value: 6

Cliff, blocks walling