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

Public Member Functions

 go_ahune_ice_spear (GameObject *go)
 
void Reset () override
 
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 *)
 

Private Attributes

TaskScheduler _scheduler
 

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_ahune_ice_spear()

go_ahune_ice_spear::go_ahune_ice_spear ( GameObject go)
inline
638: GameObjectAI(go) { }
Definition: GameObjectAI.h:34

Member Function Documentation

◆ Reset()

void go_ahune_ice_spear::Reset ( )
inlineoverridevirtual

Reimplemented from GameObjectAI.

641 {
642 _scheduler.Schedule(2500ms, [this](TaskContext /*context*/)
643 {
645 me->DespawnOrUnsummon(3500ms);
646 });
647 }
TaskScheduler & Schedule(std::chrono::duration< _Rep, _Period > const &time, task_handler_t const &task)
Definition: TaskScheduler.h:229
Definition: TaskScheduler.h:415
GameObject *const me
Definition: GameObjectAI.h:36
void UseDoorOrButton(uint32 time_to_restore=0, bool alternative=false, Unit *user=nullptr)
Definition: GameObject.cpp:1429
void DespawnOrUnsummon(Milliseconds delay=0ms, Seconds forcedRespawnTime=0s)
Definition: GameObject.cpp:933
TaskScheduler _scheduler
Definition: boss_ahune.cpp:655

References _scheduler, GameObject::DespawnOrUnsummon(), GameObjectAI::me, TaskScheduler::Schedule(), and GameObject::UseDoorOrButton().

◆ UpdateAI()

void go_ahune_ice_spear::UpdateAI ( uint32  diff)
inlineoverridevirtual

Reimplemented from GameObjectAI.

650 {
651 _scheduler.Update(diff);
652 }
TaskScheduler & Update(success_t const &callback=EmptyCallback)
Definition: TaskScheduler.cpp:27

References _scheduler, and TaskScheduler::Update().

Member Data Documentation

◆ _scheduler

TaskScheduler go_ahune_ice_spear::_scheduler
private

Referenced by Reset(), and UpdateAI().