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

Public Member Functions

 go_father_flame ()
 
void OnLootStateChanged (GameObject *go, uint32 state, Unit *) 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_father_flame()

go_father_flame::go_father_flame ( )
inline
777: GameObjectScript("go_father_flame") {}
Definition: GameObjectScript.h:25

Member Function Documentation

◆ OnLootStateChanged()

void go_father_flame::OnLootStateChanged ( GameObject go,
uint32  state,
Unit  
)
inlineoverridevirtual

Reimplemented from GameObjectScript.

780 {
781 if (InstanceScript* instance = go->GetInstanceScript())
782 {
783 if (state == GO_ACTIVATED)
784 {
785 if (instance->GetData(DATA_SOLAKAR_FLAMEWREATH) == IN_PROGRESS || instance->GetData(DATA_SOLAKAR_FLAMEWREATH) == DONE)
786 {
787 return;
788 }
789
790 instance->SetData(DATA_SOLAKAR_FLAMEWREATH, IN_PROGRESS);
791 }
792 }
793 }
@ IN_PROGRESS
Definition: InstanceScript.h:58
@ DONE
Definition: InstanceScript.h:60
@ GO_ACTIVATED
Definition: GameObject.h:113
@ DATA_SOLAKAR_FLAMEWREATH
Definition: blackrock_spire.h:55
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
Definition: InstanceScript.h:142

References DATA_SOLAKAR_FLAMEWREATH, DONE, WorldObject::GetInstanceScript(), GO_ACTIVATED, and IN_PROGRESS.