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

References _timer.

Member Function Documentation

◆ UpdateAI()

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

Reimplemented from GameObjectAI.

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

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

Member Data Documentation

◆ _timer

uint32 go_witherbark_totem_bundle::go_witherbark_totem_bundleAI::_timer