Skip to content

ObstructionType

Bases: _DataSetIntEnums

This enum class provides the integer values for the different obstruction types that can be used in the 'Modify Attribute' effect with the 'ObstructionType' attribute.

Examples:

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

    **Examples**:



    """
    SQUARE_OUTLINE_PASSABLE = 0
    """Square outline and passable"""
    _SQUARE_OUTLINE_PASSABLE = 1
    """Use ``<ObstructionType.SQUARE_OUTLINE_PASSABLE: 0>`` instead"""
    SOLID_SQUARE_OUTLINE_COLLISION = 2
    """Solid square outline, and has collision box"""
    SQUARE_OUTLINE_COLLISION = 3
    """Square outline, and has collision box"""
    NO_OUTLINE_PASSABLE = 4
    """No outline, and passable"""
    ROUND_OUTLINE_COLLISION = 5
    """Round outline, and has collision box"""
    SOLID_SQUARE_OUTLINE_COLLISION_MOUNTAINS = 10
    """Same as ``<ObstructionType.SOLID_SQUARE_OUTLINE_COLLISION: 2>`` but designed for mountains"""

Attributes

SQUARE_OUTLINE_PASSABLE = 0 class-attribute instance-attribute

Value: 0

Square outline and passable

SOLID_SQUARE_OUTLINE_COLLISION = 2 class-attribute instance-attribute

Value: 2

Solid square outline, and has collision box

SQUARE_OUTLINE_COLLISION = 3 class-attribute instance-attribute

Value: 3

Square outline, and has collision box

NO_OUTLINE_PASSABLE = 4 class-attribute instance-attribute

Value: 4

No outline, and passable

ROUND_OUTLINE_COLLISION = 5 class-attribute instance-attribute

Value: 5

Round outline, and has collision box

SOLID_SQUARE_OUTLINE_COLLISION_MOUNTAINS = 10 class-attribute instance-attribute

Value: 10

Same as <ObstructionType.SOLID_SQUARE_OUTLINE_COLLISION: 2> but designed for mountains