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

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

Member Function Documentation

◆ GetAI()

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

Reimplemented from GameObjectScript.

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

◆ OnLootStateChanged()

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

Reimplemented from GameObjectScript.

150 {
151 switch (state)
152 {
153 case GO_JUST_DEACTIVATED: // This case prevents the Gameobject despawn by Disarm Trap
155 [[fallthrough]];
156 case GO_ACTIVATED:
158 break;
159 }
160 }
@ ACTION_DISARMED
Definition: boss_broodlord_lashlayer.cpp:58
@ GO_ACTIVATED
Definition: GameObject.h:112
@ GO_READY
Definition: GameObject.h:111
@ GO_JUST_DEACTIVATED
Definition: GameObject.h:113
virtual void DoAction(int32)
Definition: GameObjectAI.h:48
void SetLootState(LootState s, Unit *unit=nullptr)
Definition: GameObject.cpp:2444
GameObjectAI * AI() const
Definition: GameObject.h:306

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