19 #ifndef TRINITYCORE_TEMPSUMMON_H
20 #define TRINITYCORE_TEMPSUMMON_H
46 virtual void InitStats(
uint32 lifetime);
47 virtual void InitSummon();
48 virtual void UnSummon(
uint32 msTime = 0);
52 Unit* GetSummoner()
const;
53 Creature* GetSummonerCreatureBase()
const;
77 bool IsGuardianPet()
const;
88 bool InitStatsForLevel(
uint8 level);
101 void SetBonusDamage(
int32 damage);
void RemoveFromWorld() override
Definition: TemporarySummon.cpp:268
Definition: TemporarySummon.h:83
float m_followAngle
Definition: TemporarySummon.h:80
bool IsPetGhoul() const
Definition: TemporarySummon.h:75
TempSummonType type
Summon type, see TempSummonType for available types.
Definition: TemporarySummon.h:36
ObjectGuid m_summonerGUID
Definition: TemporarySummon.h:63
Definition: TemporarySummon.h:40
Definition: TemporarySummon.h:28
uint32 GetTimer() const
Definition: TemporarySummon.h:56
ForcedUnsummonDelayEvent(TempSummon &owner)
Definition: TemporarySummon.h:120
void SetFollowAngle(float angle)
Definition: TemporarySummon.h:74
void InitStats(uint32 duration) override
Definition: TemporarySummon.cpp:298
Definition: TemporarySummon.h:107
void UpdateResistances(uint32 school) override
Definition: StatSystem.cpp:847
int32 m_bonusSpellDamage
Definition: TemporarySummon.h:103
Stores data for temp summons.
Definition: TemporarySummon.h:32
virtual ~TempSummon()
Definition: TemporarySummon.h:44
Stats
Definition: SharedDefines.h:235
Definition: TemporarySummon.h:27
void UpdateAttackPowerAndDamage(bool ranged=false) override
Definition: StatSystem.cpp:878
Definition: Creature.h:467
SummonerType
Definition: TemporarySummon.h:24
bool UpdateAllStats() override
Definition: StatSystem.cpp:833
TempSummon & m_owner
Definition: TemporarySummon.h:124
TempSummonType
Definition: Object.h:52
void UpdateMaxHealth() override
Definition: StatSystem.cpp:864
bool IsSpiritWolf() const
Definition: TemporarySummon.h:76
#define MAX_STATS
Definition: SharedDefines.h:244
Unit * GetOwner() const
Definition: TemporarySummon.h:72
Definition: TemporarySummon.h:66
int32 GetBonusDamage() const
Definition: TemporarySummon.h:100
Powers
Definition: SharedDefines.h:246
bool UpdateStats(Stats stat) override
Definition: StatSystem.cpp:828
Definition: TemporarySummon.h:117
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
uint64_t uint64
Definition: Define.h:149
void UpdateArmor() override
Definition: StatSystem.cpp:858
const SummonPropertiesEntry *const m_Properties
Definition: TemporarySummon.h:58
ObjectGuid GetSummonerGUID() const
Definition: TemporarySummon.h:54
Unit *const m_owner
Definition: TemporarySummon.h:79
void RemoveFromWorld() override
Definition: TemporarySummon.cpp:310
virtual bool Execute(uint64, uint32)
Definition: EventProcessor.h:42
uint32 m_lifetime
Definition: TemporarySummon.h:62
Definition: EventProcessor.h:28
TempSummonType m_type
Definition: TemporarySummon.h:60
virtual void InitSummon()
Definition: TemporarySummon.cpp:220
void RemoveFromWorld() override
Definition: Creature.cpp:238
virtual void UpdateDamagePhysical(WeaponAttackType attType)
Definition: StatSystem.cpp:60
uint32 time
Despawn time, usable only with certain temp summon types.
Definition: TemporarySummon.h:37
#define TC_GAME_API
Definition: Define.h:134
uint32 entry
Entry of summoned creature.
Definition: TemporarySummon.h:34
uint8_t uint8
Definition: Define.h:152
Definition: Position.h:27
float GetFollowAngle() const override
Definition: TemporarySummon.h:73
void UpdateMaxPower(Powers power) override
Definition: StatSystem.cpp:870
void Update(uint32 time) override
Definition: Creature.cpp:494
Definition: TemporarySummon.h:26
virtual void InitStats(uint32 lifetime)
Definition: TemporarySummon.cpp:176
uint32 GetEntry() const
Definition: Object.h:107
void Update(uint32 time) override
Definition: TemporarySummon.cpp:47
Definition: ObjectGuid.h:189
TempSummonType const & GetSummonType()
Definition: TemporarySummon.h:55
WeaponAttackType
Definition: Unit.h:615
Position pos
Position, where should be creature spawned.
Definition: TemporarySummon.h:35
uint32 m_timer
Definition: TemporarySummon.h:61
void SaveToDB(uint32, uint32, uint32) override
Definition: TemporarySummon.h:51
Definition: DBCStructure.h:1242