TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
go_ulduar_tower Class Reference

Public Member Functions

 go_ulduar_tower ()
 
void OnDestroyed (GameObject *go, Player *) override
 
- Public Member Functions inherited from GameObjectScript
virtual bool OnDummyEffect (Unit *, uint32, SpellEffIndex, GameObject *)
 
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 OnDamaged (GameObject *, Player *)
 
virtual void OnLootStateChanged (GameObject *, uint32, Unit *)
 
virtual void OnGameObjectStateChanged (GameObject *, uint32)
 
virtual GameObjectAIGetAI (GameObject *) const
 
- Public Member Functions inherited from ScriptObject
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 ()
 
- Protected Member Functions inherited from UpdatableScript< GameObject >
 UpdatableScript ()
 
virtual ~UpdatableScript ()
 

Constructor & Destructor Documentation

go_ulduar_tower::go_ulduar_tower ( )
inline
1277 : GameObjectScript("go_ulduar_tower") { }
GameObjectScript(const char *name)
Definition: ScriptMgr.cpp:1592

Member Function Documentation

void go_ulduar_tower::OnDestroyed ( GameObject go,
Player  
)
inlineoverridevirtual

Reimplemented from GameObjectScript.

1280  {
1281  InstanceScript* instance = go->GetInstanceScript();
1282  if (!instance)
1283  return;
1284 
1285  switch (go->GetEntry())
1286  {
1287  case GO_TOWER_OF_STORMS:
1289  break;
1290  case GO_TOWER_OF_FLAMES:
1292  break;
1293  case GO_TOWER_OF_FROST:
1295  break;
1296  case GO_TOWER_OF_LIFE:
1298  break;
1299  }
1300 
1301  if (Creature* trigger = go->FindNearestCreature(NPC_ULDUAR_GAUNTLET_GENERATOR, 15.0f, true))
1302  trigger->DisappearAndDie();
1303  }
Definition: boss_flame_leviathan.cpp:107
InstanceScript * GetInstanceScript()
Definition: Object.cpp:1540
Definition: boss_flame_leviathan.cpp:108
Definition: boss_flame_leviathan.cpp:106
Definition: Creature.h:467
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2443
Definition: boss_flame_leviathan.cpp:105
Definition: ulduar.h:278
Definition: InstanceScript.h:141
uint32 GetEntry() const
Definition: Object.h:107
Definition: ulduar.h:280
virtual void ProcessEvent(WorldObject *, uint32)
Definition: ZoneScript.h:54
Definition: ulduar.h:279
Definition: boss_flame_leviathan.cpp:100
Definition: ulduar.h:277

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: