AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
go_palehoof_sphere Class Reference
Inheritance diagram for go_palehoof_sphere:
GameObjectScript ScriptObject UpdatableScript< GameObject >

Public Member Functions

 go_palehoof_sphere ()
 
bool OnGossipHello (Player *, GameObject *go) override
 
- Public Member Functions inherited from GameObjectScript
bool IsDatabaseBound () const override
 
virtual bool OnGossipHello (Player *, GameObject *)
 
virtual bool OnGossipSelect (Player *, GameObject *, uint32, uint32)
 
virtual bool OnGossipSelectCode (Player *, GameObject *, uint32, uint32, const char *)
 
virtual bool OnQuestAccept (Player *, GameObject *, Quest const *)
 
virtual bool OnQuestReward (Player *, GameObject *, Quest const *, uint32)
 
virtual uint32 GetDialogStatus (Player *, GameObject *)
 
virtual void OnDestroyed (GameObject *, Player *)
 
virtual void OnDamaged (GameObject *, Player *)
 
virtual void OnModifyHealth (GameObject *, Unit *, int32 &, SpellInfo const *)
 
virtual void OnLootStateChanged (GameObject *, uint32, Unit *)
 
virtual void OnGameObjectStateChanged (GameObject *, uint32)
 
virtual GameObjectAIGetAI (GameObject *) const
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 
- Public Member Functions inherited from UpdatableScript< GameObject >
virtual void OnUpdate (GameObject *, uint32)
 

Additional Inherited Members

- Protected Member Functions inherited from GameObjectScript
 GameObjectScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 
- Protected Member Functions inherited from UpdatableScript< GameObject >
 UpdatableScript ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ go_palehoof_sphere()

go_palehoof_sphere::go_palehoof_sphere ( )
inline
796: GameObjectScript("go_palehoof_sphere") { }
Definition: GameObjectScript.h:25

Member Function Documentation

◆ OnGossipHello()

bool go_palehoof_sphere::OnGossipHello ( Player ,
GameObject go 
)
inlineoverridevirtual

Reimplemented from GameObjectScript.

799 {
800 InstanceScript* pInstance = go->GetInstanceScript();
801
803 if (pPalehoof && pPalehoof->IsAlive())
804 {
805 // maybe these are hacks :(
808
809 pPalehoof->AI()->DoAction(ACTION_START_EVENT);
810 }
811 return true;
812 }
@ ACTION_START_EVENT
Definition: boss_palehoof.cpp:71
@ DATA_GORTOK_PALEHOOF
Definition: utgarde_pinnacle.h:30
@ GO_FLAG_NOT_SELECTABLE
Definition: SharedDefines.h:1607
@ GO_STATE_ACTIVE
Definition: GameObjectData.h:689
Creature * GetCreature(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:210
virtual void DoAction(int32)
Definition: UnitAI.h:212
Definition: Creature.h:43
CreatureAI * AI() const
Definition: Creature.h:140
void SetGoState(GOState state)
Definition: GameObject.cpp:2479
void SetGameObjectFlag(GameObjectFlags flags)
Definition: GameObject.h:218
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1203
static ObjectGuid const Empty
Definition: ObjectGuid.h:120
bool IsAlive() const
Definition: Unit.h:1654
Definition: InstanceScript.h:142
ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:98

References ACTION_START_EVENT, Creature::AI(), DATA_GORTOK_PALEHOOF, UnitAI::DoAction(), ObjectGuid::Empty, ObjectAccessor::GetCreature(), InstanceScript::GetGuidData(), WorldObject::GetInstanceScript(), GO_FLAG_NOT_SELECTABLE, GO_STATE_ACTIVE, Unit::IsAlive(), GameObject::SetGameObjectFlag(), and GameObject::SetGoState().