OregonCore  revision be9e804-git
Your Favourite TBC server
CreatureAI.h File Reference
#include "Creature.h"
#include "UnitAI.h"
#include "Common.h"

Go to the source code of this file.

Classes

class  CreatureAI
 

Macros

#define TIME_INTERVAL_LOOK   5000
 
#define VISIBILITY_RANGE   10000
 

Enumerations

enum  SelectTargetType {
  SELECT_TARGET_DONTCARE = 0, SELECT_TARGET_SELF, SELECT_TARGET_SINGLE_ENEMY, SELECT_TARGET_AOE_ENEMY,
  SELECT_TARGET_ANY_ENEMY, SELECT_TARGET_SINGLE_FRIEND, SELECT_TARGET_AOE_FRIEND, SELECT_TARGET_ANY_FRIEND
}
 
enum  SelectEffect { SELECT_EFFECT_DONTCARE = 0, SELECT_EFFECT_DAMAGE, SELECT_EFFECT_HEALING, SELECT_EFFECT_AURA }
 
enum  SCEquip { EQUIP_NO_CHANGE = -1, EQUIP_UNEQUIP = 0 }
 
enum  Permitions {
  PERMIT_BASE_NO = -1, PERMIT_BASE_IDLE = 1, PERMIT_BASE_REACTIVE = 100, PERMIT_BASE_PROACTIVE = 200,
  PERMIT_BASE_FACTION_SPECIFIC = 400, PERMIT_BASE_SPECIAL = 800
}
 

Macro Definition Documentation

#define TIME_INTERVAL_LOOK   5000

Definition at line 31 of file CreatureAI.h.

#define VISIBILITY_RANGE   10000

Definition at line 32 of file CreatureAI.h.

Enumeration Type Documentation

enum Permitions
Enumerator
PERMIT_BASE_NO 
PERMIT_BASE_IDLE 
PERMIT_BASE_REACTIVE 
PERMIT_BASE_PROACTIVE 
PERMIT_BASE_FACTION_SPECIFIC 
PERMIT_BASE_SPECIAL 

Definition at line 218 of file CreatureAI.h.

enum SCEquip
Enumerator
EQUIP_NO_CHANGE 
EQUIP_UNEQUIP 

Definition at line 59 of file CreatureAI.h.

60 {
61  EQUIP_NO_CHANGE = -1,
62  EQUIP_UNEQUIP = 0
63 };
Enumerator
SELECT_EFFECT_DONTCARE 
SELECT_EFFECT_DAMAGE 
SELECT_EFFECT_HEALING 
SELECT_EFFECT_AURA 

Definition at line 51 of file CreatureAI.h.

52 {
53  SELECT_EFFECT_DONTCARE = 0, //All spell effects allowed
54  SELECT_EFFECT_DAMAGE, //Spell does damage
55  SELECT_EFFECT_HEALING, //Spell does healing
56  SELECT_EFFECT_AURA, //Spell applies an aura
57 };
Enumerator
SELECT_TARGET_DONTCARE 
SELECT_TARGET_SELF 
SELECT_TARGET_SINGLE_ENEMY 
SELECT_TARGET_AOE_ENEMY 
SELECT_TARGET_ANY_ENEMY 
SELECT_TARGET_SINGLE_FRIEND 
SELECT_TARGET_AOE_FRIEND 
SELECT_TARGET_ANY_FRIEND 

Definition at line 35 of file CreatureAI.h.

36 {
37  SELECT_TARGET_DONTCARE = 0, //All target types allowed
38 
39  SELECT_TARGET_SELF, //Only Self casting
40 
41  SELECT_TARGET_SINGLE_ENEMY, //Only Single Enemy
42  SELECT_TARGET_AOE_ENEMY, //Only AoE Enemy
43  SELECT_TARGET_ANY_ENEMY, //AoE or Single Enemy
44 
45  SELECT_TARGET_SINGLE_FRIEND, //Only Single Friend
46  SELECT_TARGET_AOE_FRIEND, //Only AoE Friend
47  SELECT_TARGET_ANY_FRIEND, //AoE or Single Friend
48 };