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 UpdateAI (uint32)
 
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 *)
 

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
86 : GameObjectAI(gameObject)
87 {
88 _timer = 1;
89 }
Definition: GameObjectAI.h:34
uint32 _timer
Definition: go_scripts.cpp:105

References _timer.

Member Function Documentation

◆ UpdateAI()

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

Reimplemented from GameObjectAI.

92 {
93 if (_timer)
94 {
95 _timer += diff;
96 if (_timer > 5000)
97 {
98 me->CastSpell(nullptr, 9056);
100 _timer = 0;
101 }
102 }
103 }
GameObject *const me
Definition: GameObjectAI.h:36
void CastSpell(Unit *target, uint32 spell)
Definition: GameObject.cpp:2076
void DestroyForNearbyPlayers()
Definition: Object.cpp:2898

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

Member Data Documentation

◆ _timer

uint32 go_witherbark_totem_bundle::go_witherbark_totem_bundleAI::_timer