summaryrefslogtreecommitdiff
path: root/src/map/mob.t.hpp
blob: c8b1e7a134197af1b0562636817a7d8b5526df1a (plain) (blame)
1
2
3
4
5
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
#ifndef TMWA_MAP_MOB_T_HPP
#define TMWA_MAP_MOB_T_HPP

# include <cstdint>

enum class MobSkillTarget
{
    MST_TARGET = 0,
    MST_SELF,
};

/// Used as a condition when trying to apply the chosen mob skill.
enum class MobSkillCondition : uint16_t
{
    // used as something that never compares true
    NEVER_EQUAL = 0xfffe,
    ANY = 0xffff,

    MSC_ALWAYS = 0x0000,
    MSC_MYHPLTMAXRATE = 0x0001,

    MSC_NOTINTOWN = 0x0032,

    MSC_SLAVELT = 0x0110,
    MSC_SLAVELE = 0x0111,
};

/// Used as a filter when trying to choose a mob skill to use.
enum class MobSkillState : uint8_t
{
    ANY = 0xff,

    MSS_IDLE = 0,
    MSS_WALK,
    MSS_ATTACK,
    MSS_DEAD,
    MSS_LOOT,
    MSS_CHASE,
};

#endif // TMWA_MAP_MOB_T_HPP