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

Public Member Functions

 go_magtheridons_head (GameObject *gameObject)
 
void InitializeAI () override
 
void OnStateChanged (uint32 state, Unit *) 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 *)
 

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

go_magtheridons_head::go_magtheridons_head ( GameObject gameObject)
inline
608: GameObjectAI(gameObject) { }
Definition: GameObjectAI.h:33

Member Function Documentation

◆ InitializeAI()

void go_magtheridons_head::InitializeAI ( )
inlineoverridevirtual

Reimplemented from GameObjectAI.

611 {
612 me->SetGoState(GO_STATE_ACTIVE_ALTERNATIVE); // spawn head on spike
615 }
@ GO_FLAG_NOT_SELECTABLE
Definition: SharedDefines.h:1607
@ TEAM_ALLIANCE
Definition: SharedDefines.h:760
@ TEAM_HORDE
Definition: SharedDefines.h:761
#define sWorldState
Definition: WorldState.h:94
@ WORLD_STATE_CUSTOM_EVENT_ON_MAGTHERIDON_HEAD_SPAWN
Definition: WorldState.h:42
@ GO_STATE_ACTIVE_ALTERNATIVE
Definition: GameObjectData.h:691
GameObject *const me
Definition: GameObjectAI.h:35
void SetGoState(GOState state)
Definition: GameObject.cpp:2479
void SetGameObjectFlag(GameObjectFlags flags)
Definition: GameObject.h:218
float GetPositionX() const
Definition: Position.h:116

References Position::GetPositionX(), GO_FLAG_NOT_SELECTABLE, GO_STATE_ACTIVE_ALTERNATIVE, GameObjectAI::me, GameObject::SetGameObjectFlag(), GameObject::SetGoState(), sWorldState, TEAM_ALLIANCE, TEAM_HORDE, and WORLD_STATE_CUSTOM_EVENT_ON_MAGTHERIDON_HEAD_SPAWN.

◆ OnStateChanged()

void go_magtheridons_head::OnStateChanged ( uint32  state,
Unit  
)
inlineoverridevirtual

Reimplemented from GameObjectAI.

618 {
619 if (state == GO_JUST_DEACTIVATED)
620 {
622 }
623 }
@ WORLD_STATE_CUSTOM_EVENT_ON_MAGTHERIDON_HEAD_DESPAWN
Definition: WorldState.h:43
@ GO_JUST_DEACTIVATED
Definition: GameObject.h:113

References Position::GetPositionX(), GO_JUST_DEACTIVATED, GameObjectAI::me, sWorldState, TEAM_ALLIANCE, TEAM_HORDE, and WORLD_STATE_CUSTOM_EVENT_ON_MAGTHERIDON_HEAD_DESPAWN.