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

#include "GameObjectScript.h"

Inheritance diagram for GameObjectScript:
ScriptObject UpdatableScript< GameObject > FactoryGameObjectScript< AI, AIFactory > GenericGameObjectScript< AI > go_acherus_soul_prison go_amberpine_outhouse go_apexis_relic go_arcane_prison go_arena_ready_marker go_bashir_crystalforge go_beacon go_bear_trap go_bells go_blackened_urn go_brazier go_brewfest_music go_bristlelimb_cage go_broggok_lever go_celestial_planetarium_access go_chromaggus_lever 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_mine_car go_jotunheim_cage go_jump_a_tron go_l70_etc_music go_loosely_turned_soil go_main_chambers_access_panel go_manticron_cube go_massive_seaforium_charge go_midsummer_music go_mistwhisper_treasure go_noblegarden_colored_egg go_orb_of_domination go_ossirian_crystal go_palehoof_sphere go_pirate_day_music go_pressure_valve go_pumpkin_shrine 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_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 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)
 

Protected Member Functions

 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

◆ GameObjectScript()

GameObjectScript::GameObjectScript ( const char *  name)
protected
243 : ScriptObject(name)
244{
246}
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:737
Definition: ScriptObject.h:44

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.

30{ return true; }

◆ OnDamaged()

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

◆ OnDestroyed()

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

Reimplemented in go_ulduar_tower.

51{ }

◆ OnGameObjectStateChanged()

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

◆ OnGossipHello()

◆ OnGossipSelect()

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

◆ OnGossipSelectCode()

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

◆ OnLootStateChanged()

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

Reimplemented in go_father_flame, and go_suppression_device.

60{ }

◆ OnModifyHealth()

virtual void GameObjectScript::OnModifyHealth ( GameObject ,
Unit ,
int32 ,
SpellInfo const *   
)
inlinevirtual
57{ }

◆ OnQuestAccept()

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

Reimplemented in go_crystal_prison, and go_crystalline_tear.

42{ return false; }

◆ OnQuestReward()

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

Reimplemented in go_loosely_turned_soil.

45{ return false; }