TrinityCore
Creature.h File Reference
#include "Unit.h"
#include "Common.h"
#include "CreatureData.h"
#include "DatabaseEnvFwd.h"
#include "Duration.h"
#include "GridObject.h"
#include "MapObject.h"
#include <list>
+ Include dependency graph for Creature.h:

Go to the source code of this file.

Classes

struct  VendorItemCount
 
class  Creature
 
struct  Creature::ValuesUpdateForPlayerWithMaskSender
 
class  AssistDelayEvent
 
class  ForcedDespawnDelayEvent
 

Macros

#define CREATURE_Z_ATTACK_RANGE   3
 
#define MAX_VENDOR_ITEMS   150
 

Typedefs

typedef std::list< VendorItemCountVendorItemCounts
 
typedef std::vector< uint8CreatureTextRepeatIds
 
typedef std::unordered_map< uint8, CreatureTextRepeatIdsCreatureTextRepeatGroup
 

Enumerations

enum class  VendorInventoryReason : uint8 { None = 0 , Empty = 1 }
 
enum class  VendorDataTypeFlags : int32 {
  Generic = 0x01 , Ammo = 0x02 , Food = 0x04 , Poison = 0x08 ,
  Reagent = 0x10 , Petition = 0x20
}
 

Functions

 DEFINE_ENUM_FLAG (VendorDataTypeFlags)
 

Variables

static constexpr uint8 WILD_BATTLE_PET_DEFAULT_LEVEL = 1
 
static constexpr size_t CREATURE_TAPPERS_SOFT_CAP = 5
 

Macro Definition Documentation

◆ CREATURE_Z_ATTACK_RANGE

#define CREATURE_Z_ATTACK_RANGE   3

Definition at line 52 of file Creature.h.

◆ MAX_VENDOR_ITEMS

#define MAX_VENDOR_ITEMS   150

Definition at line 54 of file Creature.h.

Typedef Documentation

◆ CreatureTextRepeatGroup

typedef std::unordered_map<uint8, CreatureTextRepeatIds> CreatureTextRepeatGroup

Definition at line 79 of file Creature.h.

◆ CreatureTextRepeatIds

typedef std::vector<uint8> CreatureTextRepeatIds

Definition at line 78 of file Creature.h.

◆ VendorItemCounts

typedef std::list<VendorItemCount> VendorItemCounts

Definition at line 49 of file Creature.h.

Enumeration Type Documentation

◆ VendorDataTypeFlags

enum class VendorDataTypeFlags : int32
strong
Enumerator
Generic 
Ammo 
Food 
Poison 
Reagent 
Petition 

Definition at line 62 of file Creature.h.

◆ VendorInventoryReason

enum class VendorInventoryReason : uint8
strong
Enumerator
None 
Empty 

Definition at line 56 of file Creature.h.

Function Documentation

◆ DEFINE_ENUM_FLAG()

DEFINE_ENUM_FLAG ( VendorDataTypeFlags  )

Variable Documentation

◆ CREATURE_TAPPERS_SOFT_CAP

constexpr size_t CREATURE_TAPPERS_SOFT_CAP = 5
staticconstexpr

Definition at line 75 of file Creature.h.

◆ WILD_BATTLE_PET_DEFAULT_LEVEL

constexpr uint8 WILD_BATTLE_PET_DEFAULT_LEVEL = 1
staticconstexpr

Definition at line 74 of file Creature.h.