AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
GameObjectScript Class Reference

#include "ScriptMgr.h"

Inheritance diagram for GameObjectScript:
ScriptObject UpdatableScript< GameObject > FactoryGameObjectScript< AI, AIFactory > GenericGameObjectScript< AI > go_acherus_soul_prison go_ahune_ice_stone go_amberpine_outhouse go_apexis_relic go_arcane_prison go_arena_ready_marker go_bashir_crystalforge go_bear_trap go_bells go_blackened_urn go_brazier go_brewfest_music go_bristlelimb_cage go_broggok_lever go_call_tram go_celestial_planetarium_access go_chromaggus_lever go_corkis_prison go_crystal_prison go_crystalline_tear go_darkmoon_faire_music go_direbrew_mole_machine go_dragonflayer_cage go_duskwither_spire_power_source go_elune_fire go_ethereum_prison go_ethereum_stasis go_evil_book_for_dummies go_father_flame go_fel_crystalforge go_finklestein_cauldron go_flames go_gilded_brazier go_gong_of_bethekk go_harpoon_canon go_heat go_hive_pod go_inconspicuous_landmark go_inconspicuous_mine_car go_jotunheim_cage go_jump_a_tron go_loosely_turned_soil go_main_chambers_access_panel go_massive_seaforium_charge go_midsummer_bonfire go_midsummer_music go_mistwhisper_treasure go_naga_brazier go_noblegarden_colored_egg go_orb_of_domination go_ossirian_crystal go_palehoof_sphere go_panther_cage go_pirate_day_music go_pressure_valve go_prince_taldaram_sphere go_ravager_cage go_resonite_cask go_sacred_fire_of_life go_scourge_cage go_scourge_enclosure go_seer_of_zebhalak go_shadowforge_brazier go_simon_cluster go_skull_pile go_soulwell go_southfury_moonstone go_strange_pool go_suppression_device go_table_theka go_tablet_of_the_seven go_tadpole_cage go_tele_to_dalaran_crystal go_tele_to_violet_stand go_the_focusing_iris go_the_pearl_of_the_depths go_thorim_lever go_troll_cage go_ulduar_do_not_push_this_button go_ulduar_pure_saronite_deposit go_ulduar_tower go_ulduar_working_harpoon go_veil_skith_cage go_vh_activation_crystal go_violet_hold_gate_lever go_warmaul_prison go_wg_vehicle_teleporter go_wind_stone go_witherbark_totem_bundle icecrown_citadel_teleport

Public Member Functions

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

Protected Member Functions

 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

◆ GameObjectScript()

GameObjectScript::GameObjectScript ( const char *  name)
protected
372 : ScriptObject(name)
373{
375}
Definition: ScriptMgr.h:107
static void AddScript(TScript *const script)
Definition: ScriptMgr.h:2708

References ScriptRegistry< TScript >::AddScript().

Member Function Documentation

◆ GetAI()

◆ GetDialogStatus()

virtual uint32 GameObjectScript::GetDialogStatus ( Player ,
GameObject  
)
inlinevirtual
@ DIALOG_STATUS_SCRIPTED_NO_STATUS
Definition: QuestDef.h:125

References DIALOG_STATUS_SCRIPTED_NO_STATUS.

◆ IsDatabaseBound()

bool GameObjectScript::IsDatabaseBound ( ) const
inlineoverridevirtual

Reimplemented from ScriptObject.

763{ return true; }

◆ OnDamaged()

virtual void GameObjectScript::OnDamaged ( GameObject ,
Player  
)
inlinevirtual
787{ }

◆ OnDestroyed()

virtual void GameObjectScript::OnDestroyed ( GameObject ,
Player  
)
inlinevirtual

Reimplemented in go_ulduar_tower.

784{ }

◆ OnGameObjectStateChanged()

virtual void GameObjectScript::OnGameObjectStateChanged ( GameObject ,
uint32   
)
inlinevirtual
793{ }

◆ OnGossipHello()

virtual bool GameObjectScript::OnGossipHello ( Player ,
GameObject  
)
inlinevirtual

◆ OnGossipSelect()

virtual bool GameObjectScript::OnGossipSelect ( Player ,
GameObject ,
uint32  ,
uint32   
)
inlinevirtual

◆ OnGossipSelectCode()

virtual bool GameObjectScript::OnGossipSelectCode ( Player ,
GameObject ,
uint32  ,
uint32  ,
const char *   
)
inlinevirtual
772{ return false; }

◆ OnLootStateChanged()

virtual void GameObjectScript::OnLootStateChanged ( GameObject ,
uint32  ,
Unit  
)
inlinevirtual

Reimplemented in go_father_flame, and go_suppression_device.

790{ }

◆ OnQuestAccept()

virtual bool GameObjectScript::OnQuestAccept ( Player ,
GameObject ,
Quest const *   
)
inlinevirtual

Reimplemented in go_crystal_prison, and go_crystalline_tear.

775{ return false; }

◆ OnQuestReward()

virtual bool GameObjectScript::OnQuestReward ( Player ,
GameObject ,
Quest const *  ,
uint32   
)
inlinevirtual

Reimplemented in go_loosely_turned_soil.

778{ return false; }