TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
player_overlord_brandAI Class Reference

Public Member Functions

 player_overlord_brandAI (Player *player, ObjectGuid casterGUID)
 
void DamageDealt (Unit *, uint32 &damage, DamageEffectType) override
 
void HealDone (Unit *, uint32 &addHealth) override
 
void UpdateAI (uint32) override
 
- Public Member Functions inherited from PlayerAI
 PlayerAI (Player *player)
 
void OnCharmed (bool apply) override
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual bool CanAIAttack (Unit const *) const
 
virtual void AttackStart (Unit *)
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
virtual void DoAction (int32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
UnitSelectTarget (SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectAggroTarget targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectAggroTarget targetType, float dist=0.0f, bool playerOnly=false, int32 aura=0)
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, PREDICATE const &predicate, uint32 maxTargets, SelectAggroTarget targetType)
 
virtual void DamageTaken (Unit *, uint32 &)
 
virtual void HealReceived (Unit *, uint32 &)
 
virtual void SpellInterrupted (uint32, uint32)
 
void AttackStartCaster (Unit *victim, float dist)
 
void DoCast (uint32 spellId)
 
void DoCast (Unit *victim, uint32 spellId, bool triggered=false)
 
void DoCastVictim (uint32 spellId, bool triggered=false)
 
void DoCastAOE (uint32 spellId, bool triggered=false)
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spellId)
 
virtual void sGossipHello (Player *)
 
virtual void sGossipSelect (Player *, uint32, uint32)
 
virtual void sGossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual void sQuestAccept (Player *, Quest const *)
 
virtual void sQuestSelect (Player *, Quest const *)
 
virtual void sQuestReward (Player *, Quest const *, uint32)
 
virtual bool sOnDummyEffect (Unit *, uint32, SpellEffIndex)
 
virtual void sOnGameEvent (bool, uint16)
 

Private Attributes

ObjectGuid _tyrannusGUID
 

Additional Inherited Members

- Static Public Member Functions inherited from UnitAI
static void FillAISpellInfo ()
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
 
- Protected Attributes inherited from PlayerAI
Player *const me
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Constructor & Destructor Documentation

player_overlord_brandAI::player_overlord_brandAI ( Player player,
ObjectGuid  casterGUID 
)
inline
393 : PlayerAI(player), _tyrannusGUID(casterGUID) { }
ObjectGuid _tyrannusGUID
Definition: boss_scourgelord_tyrannus.cpp:411
PlayerAI(Player *player)
Definition: UnitAI.h:272

Member Function Documentation

void player_overlord_brandAI::DamageDealt ( Unit ,
uint32 damage,
DamageEffectType   
)
inlineoverridevirtual

Reimplemented from UnitAI.

396  {
398  if (Unit* victim = tyrannus->GetVictim())
399  me->CastCustomSpell(SPELL_OVERLORD_BRAND_DAMAGE, SPELLVALUE_BASE_POINT0, damage, victim, true, NULL, NULL, tyrannus->GetGUID());
400  }
Player *const me
Definition: UnitAI.h:270
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: Creature.h:467
Definition: boss_scourgelord_tyrannus.cpp:61
Unit * GetVictim() const
Definition: Unit.h:1379
ObjectGuid _tyrannusGUID
Definition: boss_scourgelord_tyrannus.cpp:411
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: Unit.h:1305
Definition: Unit.h:129

+ Here is the call graph for this function:

void player_overlord_brandAI::HealDone ( Unit ,
uint32 addHealth 
)
inlineoverridevirtual

Reimplemented from UnitAI.

403  {
405  me->CastCustomSpell(SPELL_OVERLORD_BRAND_HEAL, SPELLVALUE_BASE_POINT0, int32(addHealth * 5.5f), tyrannus, true, NULL, NULL, tyrannus->GetGUID());
406  }
Definition: boss_scourgelord_tyrannus.cpp:60
Player *const me
Definition: UnitAI.h:270
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: Creature.h:467
ObjectGuid _tyrannusGUID
Definition: boss_scourgelord_tyrannus.cpp:411
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
int32_t int32
Definition: g3dmath.h:167
Definition: Unit.h:129

+ Here is the call graph for this function:

void player_overlord_brandAI::UpdateAI ( uint32  )
inlineoverridevirtual

Implements UnitAI.

408 { }

Member Data Documentation

ObjectGuid player_overlord_brandAI::_tyrannusGUID
private

The documentation for this class was generated from the following file: