AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
go_witherbark_totem_bundle::go_witherbark_totem_bundleAI Struct Reference
Inheritance diagram for go_witherbark_totem_bundle::go_witherbark_totem_bundleAI:
GameObjectAI

Public Member Functions

 go_witherbark_totem_bundleAI (GameObject *gameObject)
 
void UpdateAI (uint32 diff) override
 
- Public Member Functions inherited from GameObjectAI
 GameObjectAI (GameObject *go)
 
virtual ~GameObjectAI ()
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
virtual void DoAction (int32)
 
virtual void SetGUID (ObjectGuid, int32)
 
virtual ObjectGuid GetGUID (int32) const
 
virtual bool GossipHello (Player *, bool)
 
virtual bool GossipSelect (Player *, uint32, uint32)
 
virtual bool GossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual bool QuestAccept (Player *, Quest const *)
 
virtual bool QuestReward (Player *, Quest const *, uint32)
 
virtual uint32 GetDialogStatus (Player *)
 
virtual void Destroyed (Player *, uint32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void OnGameEvent (bool, uint16)
 
virtual void OnStateChanged (uint32, Unit *)
 
virtual void EventInform (uint32)
 
virtual void SpellHit (Unit *, SpellInfo const *)
 
virtual bool CanBeSeen (Player const *)
 
virtual void JustSummoned (Creature *)
 
virtual void SummonedCreatureDespawn (Creature *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureEvade (Creature *)
 

Public Attributes

uint32 _timer
 

Additional Inherited Members

- Static Public Member Functions inherited from GameObjectAI
static int32 Permissible (GameObject const *go)
 
- Protected Attributes inherited from GameObjectAI
GameObject *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ go_witherbark_totem_bundleAI()

go_witherbark_totem_bundle::go_witherbark_totem_bundleAI::go_witherbark_totem_bundleAI ( GameObject gameObject)
inline
71 : GameObjectAI(gameObject)
72 {
73 _timer = 1;
74 }
Definition GameObjectAI.h:33

References _timer.

Member Function Documentation

◆ UpdateAI()

void go_witherbark_totem_bundle::go_witherbark_totem_bundleAI::UpdateAI ( uint32  diff)
inlineoverridevirtual

Reimplemented from GameObjectAI.

77 {
78 if (_timer)
79 {
80 _timer += diff;
81 if (_timer > 5000)
82 {
83 me->CastSpell(nullptr, 9056);
85 _timer = 0;
86 }
87 }
88 }
GameObject *const me
Definition GameObjectAI.h:35
void CastSpell(Unit *target, uint32 spell)
Definition GameObject.cpp:2070
void DestroyForNearbyPlayers()
Definition Object.cpp:2955

References _timer, GameObject::CastSpell(), WorldObject::DestroyForNearbyPlayers(), and GameObjectAI::me.

Member Data Documentation

◆ _timer

uint32 go_witherbark_totem_bundle::go_witherbark_totem_bundleAI::_timer

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