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

Classes

struct  go_suppression_deviceAI
 

Public Member Functions

 go_suppression_device ()
 
void OnLootStateChanged (GameObject *go, uint32 state, Unit *) override
 
GameObjectAIGetAI (GameObject *go) const 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
 
- 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)
 
virtual ~ScriptObject ()=default
 
- Protected Member Functions inherited from UpdatableScript< GameObject >
 UpdatableScript ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ go_suppression_device()

go_suppression_device::go_suppression_device ( )
inline
148: GameObjectScript("go_suppression_device") { }
Definition: GameObjectScript.h:25

Member Function Documentation

◆ GetAI()

GameObjectAI * go_suppression_device::GetAI ( GameObject go) const
inlineoverridevirtual

Reimplemented from GameObjectScript.

249 {
250 return new go_suppression_deviceAI(go);
251 }

◆ OnLootStateChanged()

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

Reimplemented from GameObjectScript.

151 {
152 switch (state)
153 {
154 case GO_JUST_DEACTIVATED: // This case prevents the Gameobject despawn by Disarm Trap
156 [[fallthrough]];
157 case GO_ACTIVATED:
159 break;
160 }
161 }
@ GO_ACTIVATED
Definition: GameObject.h:114
@ GO_READY
Definition: GameObject.h:113
@ GO_JUST_DEACTIVATED
Definition: GameObject.h:115
@ ACTION_DISARMED
Definition: boss_broodlord_lashlayer.cpp:59
virtual void DoAction(int32)
Definition: GameObjectAI.h:49
void SetLootState(LootState s, Unit *unit=nullptr)
Definition: GameObject.cpp:2442
GameObjectAI * AI() const
Definition: GameObject.h:310

References ACTION_DISARMED, GameObject::AI(), GameObjectAI::DoAction(), GO_ACTIVATED, GO_JUST_DEACTIVATED, GO_READY, and GameObject::SetLootState().