Skip to content

ObjectClass

Bases: _DataSetIntEnums

This enum class provides the integer values used to reference the object class in the game. Used in a lot of effects and conditions, like 'Kill Object', 'Objects in Area' under the name 'Object Group'.

Examples

Source code in AoE2ScenarioParser/datasets/trigger_lists/object_class.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
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
class ObjectClass(_DataSetIntEnums):
    """
    This enum class provides the integer values used to reference the object class in the game. Used in a lot of effects
    and conditions, like 'Kill Object', 'Objects in Area' under the name 'Object Group'.

    **Examples**



    """
    ARCHER = 0
    ARTIFACT = 1
    TRADE_BOAT = 2
    BUILDING = 3
    CIVILIAN = 4
    OCEAN_FISH = 5
    INFANTRY = 6
    BERRY_BUSH = 7
    STONE_MINE = 8
    PREY_ANIMAL = 9
    PREDATOR_ANIMAL = 10
    MISCELLANEOUS = 11
    CAVALRY = 12
    SIEGE_WEAPON = 13
    TERRAIN = 14
    TREE = 15
    TREE_STUMP = 16
    HEALER = 17
    MONK = 18
    TRADE_CART = 19
    TRANSPORT_BOAT = 20
    FISHING_BOAT = 21
    WARSHIP = 22
    CONQUISTADOR = 23
    WAR_ELEPHANT = 24
    HERO = 25
    ELEPHANT_ARCHER = 26
    WALL = 27
    PHALANX = 28
    DOMESTIC_ANIMAL = 29
    FLAG = 30
    DEEP_SEA_FISH = 31
    GOLD_MINE = 32
    SHORE_FISH = 33
    CLIFF = 34
    PETARD = 35
    CAVALRY_ARCHER = 36
    DOPPELGANGER = 37
    BIRD = 38
    GATE = 39
    SALVAGE_PILE = 40
    RESOURCE_PILE = 41
    RELIC = 42
    MONKWITH_RELIC = 43
    HAND_CANNONEER = 44
    TWO_HANDED_SWORDSMAN = 45
    PIKEMAN = 46
    SCOUT = 47
    ORE_MINE = 48
    FARM = 49
    SPEARMAN = 50
    PACKED_UNIT = 51
    TOWER = 52
    BOARDING_BOAT = 53
    UNPACKED_SIEGE_UNIT = 54
    BALLISTA = 55
    RAIDER = 56
    CAVALRY_RAIDER = 57
    LIVESTOCK = 58
    KING = 59
    MISC_BUILDING = 60
    CONTROLLED_ANIMAL = 61

Attributes

ARCHER = 0 class-attribute instance-attribute

Value: 0

ARTIFACT = 1 class-attribute instance-attribute

Value: 1

TRADE_BOAT = 2 class-attribute instance-attribute

Value: 2

BUILDING = 3 class-attribute instance-attribute

Value: 3

CIVILIAN = 4 class-attribute instance-attribute

Value: 4

OCEAN_FISH = 5 class-attribute instance-attribute

Value: 5

INFANTRY = 6 class-attribute instance-attribute

Value: 6

BERRY_BUSH = 7 class-attribute instance-attribute

Value: 7

STONE_MINE = 8 class-attribute instance-attribute

Value: 8

PREY_ANIMAL = 9 class-attribute instance-attribute

Value: 9

PREDATOR_ANIMAL = 10 class-attribute instance-attribute

Value: 10

MISCELLANEOUS = 11 class-attribute instance-attribute

Value: 11

CAVALRY = 12 class-attribute instance-attribute

Value: 12

SIEGE_WEAPON = 13 class-attribute instance-attribute

Value: 13

TERRAIN = 14 class-attribute instance-attribute

Value: 14

TREE = 15 class-attribute instance-attribute

Value: 15

TREE_STUMP = 16 class-attribute instance-attribute

Value: 16

HEALER = 17 class-attribute instance-attribute

Value: 17

MONK = 18 class-attribute instance-attribute

Value: 18

TRADE_CART = 19 class-attribute instance-attribute

Value: 19

TRANSPORT_BOAT = 20 class-attribute instance-attribute

Value: 20

FISHING_BOAT = 21 class-attribute instance-attribute

Value: 21

WARSHIP = 22 class-attribute instance-attribute

Value: 22

CONQUISTADOR = 23 class-attribute instance-attribute

Value: 23

WAR_ELEPHANT = 24 class-attribute instance-attribute

Value: 24

HERO = 25 class-attribute instance-attribute

Value: 25

ELEPHANT_ARCHER = 26 class-attribute instance-attribute

Value: 26

WALL = 27 class-attribute instance-attribute

Value: 27

PHALANX = 28 class-attribute instance-attribute

Value: 28

DOMESTIC_ANIMAL = 29 class-attribute instance-attribute

Value: 29

FLAG = 30 class-attribute instance-attribute

Value: 30

DEEP_SEA_FISH = 31 class-attribute instance-attribute

Value: 31

GOLD_MINE = 32 class-attribute instance-attribute

Value: 32

SHORE_FISH = 33 class-attribute instance-attribute

Value: 33

CLIFF = 34 class-attribute instance-attribute

Value: 34

PETARD = 35 class-attribute instance-attribute

Value: 35

CAVALRY_ARCHER = 36 class-attribute instance-attribute

Value: 36

DOPPELGANGER = 37 class-attribute instance-attribute

Value: 37

BIRD = 38 class-attribute instance-attribute

Value: 38

GATE = 39 class-attribute instance-attribute

Value: 39

SALVAGE_PILE = 40 class-attribute instance-attribute

Value: 40

RESOURCE_PILE = 41 class-attribute instance-attribute

Value: 41

RELIC = 42 class-attribute instance-attribute

Value: 42

MONKWITH_RELIC = 43 class-attribute instance-attribute

Value: 43

HAND_CANNONEER = 44 class-attribute instance-attribute

Value: 44

TWO_HANDED_SWORDSMAN = 45 class-attribute instance-attribute

Value: 45

PIKEMAN = 46 class-attribute instance-attribute

Value: 46

SCOUT = 47 class-attribute instance-attribute

Value: 47

ORE_MINE = 48 class-attribute instance-attribute

Value: 48

FARM = 49 class-attribute instance-attribute

Value: 49

SPEARMAN = 50 class-attribute instance-attribute

Value: 50

PACKED_UNIT = 51 class-attribute instance-attribute

Value: 51

TOWER = 52 class-attribute instance-attribute

Value: 52

BOARDING_BOAT = 53 class-attribute instance-attribute

Value: 53

UNPACKED_SIEGE_UNIT = 54 class-attribute instance-attribute

Value: 54

BALLISTA = 55 class-attribute instance-attribute

Value: 55

RAIDER = 56 class-attribute instance-attribute

Value: 56

CAVALRY_RAIDER = 57 class-attribute instance-attribute

Value: 57

LIVESTOCK = 58 class-attribute instance-attribute

Value: 58

KING = 59 class-attribute instance-attribute

Value: 59

MISC_BUILDING = 60 class-attribute instance-attribute

Value: 60

CONTROLLED_ANIMAL = 61 class-attribute instance-attribute

Value: 61