Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
CreatureTemplate Struct Reference

#include <Creature.h>

Public Member Functions

uint32 GetFirstValidModelId () const
uint32 GetRandomValidModelId () const
SkillType GetRequiredLootSkill () const
bool IsExotic () const
bool IsTameable (bool canTameExotic) const

Static Public Member Functions

static int32 DiffToDiffIndex (uint32 difficulty)

Public Attributes

std::string AIName
uint32 attackpower
uint32 baseattacktime
uint32 DifficultyEntry [4 - 1]
float dmg_multiplier
uint32 dmgschool
uint32 dynamicflags
uint32 Entry
uint32 expansion
uint32 expansionUnknown
uint32 faction_A
uint32 faction_H
uint32 family
uint32 flags_extra
uint32 GossipMenuId
float HoverHeight
std::string IconName
uint32 InhabitType
uint32 KillCredit [MAX_KILL_CREDIT]
uint32 lootid
float maxdmg
uint32 maxgold
uint8 maxlevel
float maxrangedmg
uint32 MechanicImmuneMask
float mindmg
uint32 mingold
uint8 minlevel
float minrangedmg
float ModArmor
uint32 Modelid1
uint32 Modelid2
uint32 Modelid3
uint32 Modelid4
float ModHealth
bool ModLevel
float ModMana
float ModManaExtra
uint32 movementId
uint32 MovementType
std::string Name
uint32 npcflag
uint32 PetSpellDataId
uint32 pickpocketLootId
uint32 questItems [MAX_CREATURE_QUEST_ITEMS]
bool RacialLeader
uint32 rangeattacktime
uint32 rangedattackpower
uint32 rank
bool RegenHealth
int32 resistance [MAX_SPELL_SCHOOL]
float scale
uint32 ScriptID
uint32 SkinLootId
float speed_run
float speed_walk
uint32 spells [CREATURE_MAX_SPELLS]
std::string SubName
uint32 trainer_class
uint32 trainer_race
uint32 trainer_type
uint32 type
uint32 type_flags
uint32 type_flags2
uint32 unit_class
uint32 unit_flags
uint32 unit_flags2
uint32 VehicleId

Detailed Description

Definition at line 62 of file Creature.h.

Member Function Documentation

◆ DiffToDiffIndex()

◆ GetFirstValidModelId()

uint32 CreatureTemplate::GetFirstValidModelId ( ) const

Definition at line 92 of file Creature.cpp.

References Modelid1, Modelid2, Modelid3, and Modelid4.

Referenced by Creature::InitEntry().

◆ GetRandomValidModelId()

uint32 CreatureTemplate::GetRandomValidModelId ( ) const

◆ GetRequiredLootSkill()

◆ IsExotic()

bool CreatureTemplate::IsExotic ( ) const
inline

Definition at line 148 of file Creature.h.

References CREATURE_TYPEFLAGS_EXOTIC, and type_flags.

Referenced by IsTameable().

◆ IsTameable()

Member Data Documentation

◆ AIName

◆ attackpower

◆ baseattacktime

◆ DifficultyEntry

◆ dmg_multiplier

float CreatureTemplate::dmg_multiplier

◆ dmgschool

◆ dynamicflags

◆ Entry

◆ expansion

◆ expansionUnknown

◆ faction_A

◆ faction_H

◆ family

◆ flags_extra

◆ GossipMenuId

◆ HoverHeight

◆ IconName

◆ InhabitType

◆ KillCredit

◆ lootid

◆ maxdmg

◆ maxgold

◆ maxlevel

◆ maxrangedmg

float CreatureTemplate::maxrangedmg

◆ MechanicImmuneMask

◆ mindmg

◆ mingold

◆ minlevel

◆ minrangedmg

float CreatureTemplate::minrangedmg

◆ ModArmor

◆ Modelid1

◆ Modelid2

◆ Modelid3

◆ Modelid4

◆ ModHealth

◆ ModLevel

bool CreatureTemplate::ModLevel

◆ ModMana

◆ ModManaExtra

◆ movementId

◆ MovementType

◆ Name

◆ npcflag

◆ PetSpellDataId

◆ pickpocketLootId

◆ questItems

◆ RacialLeader

◆ rangeattacktime

◆ rangedattackpower

uint32 CreatureTemplate::rangedattackpower

◆ rank

◆ RegenHealth

bool CreatureTemplate::RegenHealth

◆ resistance

◆ scale

◆ ScriptID

◆ SkinLootId

◆ speed_run

◆ speed_walk

◆ spells

◆ SubName

◆ trainer_class

◆ trainer_race

◆ trainer_type

◆ type

◆ type_flags

◆ type_flags2

◆ unit_class

◆ unit_flags

◆ unit_flags2

◆ VehicleId


The documentation for this struct was generated from the following files: