TrinityCore
GameObjectAI Class Reference

#include <GameObjectAI.h>

+ Inheritance diagram for GameObjectAI:

Public Member Functions

 GameObjectAI (GameObject *go, uint32 scriptId={})
 
virtual ~GameObjectAI ()
 
uint32 GetId () const
 
virtual void UpdateAI (uint32)
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
virtual void DoAction (int32)
 
virtual void SetGUID (ObjectGuid const &, int32)
 
virtual ObjectGuid GetGUID (int32) const
 
virtual Optional< QuestGiverStatusGetDialogStatus (Player const *player)
 
virtual bool OnGossipHello (Player *)
 
virtual bool OnGossipSelect (Player *, uint32, uint32)
 
virtual bool OnGossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual void OnQuestAccept (Player *, Quest const *)
 
virtual void OnQuestReward (Player *, Quest const *, LootItemType, uint32)
 
virtual bool OnReportUse (Player *)
 
virtual void Destroyed (WorldObject *, uint32)
 
virtual void Damaged (WorldObject *, uint32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData64 (uint32, uint64)
 
virtual uint64 GetData64 (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void OnGameEvent (bool, uint16)
 
virtual void OnLootStateChanged (uint32, Unit *)
 
virtual void OnStateChanged (uint32)
 
virtual void EventInform (uint32)
 
virtual void SpellHit (WorldObject *, SpellInfo const *)
 
virtual void SpellHitTarget (WorldObject *, SpellInfo const *)
 
virtual void JustSummoned (Creature *)
 
virtual void SummonedCreatureDespawn (Creature *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual bool OnCapturePointAssaulted (Player *)
 
virtual bool OnCapturePointUpdated (WorldPackets::Battleground::BattlegroundCapturePointState)
 

Static Public Member Functions

static int32 Permissible (GameObject const *go)
 

Protected Attributes

GameObject *const me
 

Private Attributes

uint32 const _scriptId
 

Detailed Description

Definition at line 43 of file GameObjectAI.h.

Constructor & Destructor Documentation

◆ GameObjectAI()

GameObjectAI::GameObjectAI ( GameObject go,
uint32  scriptId = {} 
)
explicit

Definition at line 29 of file GameObjectAI.cpp.

◆ ~GameObjectAI()

virtual GameObjectAI::~GameObjectAI ( )
inlinevirtual

Definition at line 54 of file GameObjectAI.h.

Member Function Documentation

◆ Damaged()

virtual void GameObjectAI::Damaged ( WorldObject ,
uint32   
)
inlinevirtual

Definition at line 95 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ Destroyed()

virtual void GameObjectAI::Destroyed ( WorldObject ,
uint32   
)
inlinevirtual

Reimplemented in SmartGameObjectAI, and go_ulduar_tower::go_ulduar_towerAI.

Definition at line 94 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ DoAction()

virtual void GameObjectAI::DoAction ( int32  )
inlinevirtual

Reimplemented in go_suppression_device.

Definition at line 66 of file GameObjectAI.h.

◆ EventInform()

virtual void GameObjectAI::EventInform ( uint32  )
inlinevirtual

Reimplemented in SmartGameObjectAI.

Definition at line 105 of file GameObjectAI.h.

◆ GetData()

virtual uint32 GameObjectAI::GetData ( uint32  ) const
inlinevirtual

Definition at line 97 of file GameObjectAI.h.

◆ GetData64()

virtual uint64 GameObjectAI::GetData64 ( uint32  ) const
inlinevirtual

Definition at line 99 of file GameObjectAI.h.

◆ GetDialogStatus()

Optional< QuestGiverStatus > GameObjectAI::GetDialogStatus ( Player const *  player)
virtual

Definition at line 34 of file GameObjectAI.cpp.

◆ GetGUID()

virtual ObjectGuid GameObjectAI::GetGUID ( int32  ) const
inlinevirtual

Definition at line 68 of file GameObjectAI.h.

◆ GetId()

uint32 GameObjectAI::GetId ( ) const
inline

Definition at line 57 of file GameObjectAI.h.

◆ InitializeAI()

virtual void GameObjectAI::InitializeAI ( )
inlinevirtual

Reimplemented in SmartGameObjectAI, go_suppression_device, go_hoo_the_makers_lift_controller, and go_bells::go_bellsAI.

Definition at line 61 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ JustSummoned()

virtual void GameObjectAI::JustSummoned ( Creature )
inlinevirtual

Reimplemented in SmartGameObjectAI.

Definition at line 114 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ OnCapturePointAssaulted()

virtual bool GameObjectAI::OnCapturePointAssaulted ( Player )
inlinevirtual

Definition at line 120 of file GameObjectAI.h.

◆ OnCapturePointUpdated()

virtual bool GameObjectAI::OnCapturePointUpdated ( WorldPackets::Battleground::BattlegroundCapturePointState  )
inlinevirtual

Definition at line 122 of file GameObjectAI.h.

◆ OnGameEvent()

virtual void GameObjectAI::OnGameEvent ( bool  ,
uint16   
)
inlinevirtual

Reimplemented in SmartGameObjectAI, and go_bells::go_bellsAI.

Definition at line 102 of file GameObjectAI.h.

◆ OnGossipHello()

virtual bool GameObjectAI::OnGossipHello ( Player )
inlinevirtual

Reimplemented in go_shadowforge_brazier::go_shadowforge_brazierAI, go_blackened_urn::go_blackened_urnAI, go_atalai_statue::go_atalai_statueAI, go_keystone_chamber::go_keystone_chamberAI, go_blackfathom_fire, go_barrel_old_hillsbrad, go_gong::go_gongAI, go_naga_brazier::go_naga_brazierAI, go_elune_fire::go_elune_fireAI, go_troll_cage::go_troll_cageAI, go_shallow_grave::go_shallow_graveAI, go_prince_taldaram_sphere, go_gundrak_altar, containment_sphere, go_mimiron_hardmode_button::go_mimiron_hardmode_buttonAI, go_razorscale_harpoon::go_razorscale_harpoonAI, go_palehoof_sphere, go_bridge_console::go_bridge_consoleAI, go_main_chambers_access_panel, go_broggok_lever::go_broggok_leverAI, go_resonite_cask::go_resonite_caskAI, go_massive_seaforium_charge::go_massive_seaforium_chargeAI, SmartGameObjectAI, go_av_capturable_object, go_chromaggus_lever, go_orb_of_domination, go_acherus_soul_prison::go_acherus_soul_prisonAI, go_loosely_turned_soil, go_brazier_of_the_herald::go_brazier_of_the_heraldAI, go_gauntlet_gate::go_gauntlet_gateAI, go_kalecgos_spectral_rift::go_kalecgos_spectral_riftAI, go_orb_of_the_blue_flight::go_orb_of_the_blue_flightAI, go_altar_of_archaedas::go_altar_of_archaedasAI, go_blackfathom_altar, go_ossirian_crystal::go_ossirian_crystalAI, go_wind_stone::go_wind_stoneAI, go_twilight_portal::go_twilight_portalAI, go_empowering_blood_orb, go_ioc_capturable_object, go_sota_capturable_object, go_activation_crystal, go_finklesteins_cauldron, go_najentus_spine, go_strange_pool, go_manticron_cube, go_legion_obelisk::go_legion_obeliskAI, go_simon_cluster::go_simon_clusterAI, go_apexis_relic::go_apexis_relicAI, go_gilded_brazier::go_gilded_brazierAI, go_tablet_of_the_seven::go_tablet_of_the_sevenAI, go_ethereum_prison::go_ethereum_prisonAI, go_ethereum_stasis::go_ethereum_stasisAI, go_southfury_moonstone::go_southfury_moonstoneAI, go_tele_to_dalaran_crystal::go_tele_to_dalaran_crystalAI, go_tele_to_violet_stand::go_tele_to_violet_standAI, go_blood_filled_orb::go_blood_filled_orbAI, go_soulwell::go_soulwellAI, go_amberpine_outhouse::go_amberpine_outhouseAI, go_veil_skith_cage::go_veil_skith_cageAI, and go_midsummer_ribbon_pole::go_midsummer_ribbon_poleAI.

Definition at line 76 of file GameObjectAI.h.

◆ OnGossipSelect()

virtual bool GameObjectAI::OnGossipSelect ( Player ,
uint32  ,
uint32   
)
inlinevirtual

◆ OnGossipSelectCode()

virtual bool GameObjectAI::OnGossipSelectCode ( Player ,
uint32  ,
uint32  ,
char const *   
)
inlinevirtual

Reimplemented in SmartGameObjectAI.

Definition at line 82 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ OnLootStateChanged()

virtual void GameObjectAI::OnLootStateChanged ( uint32  ,
Unit  
)
inlinevirtual

Reimplemented in go_suppression_device, SmartGameObjectAI, and go_sapphiron_birth.

Definition at line 103 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ OnQuestAccept()

virtual void GameObjectAI::OnQuestAccept ( Player ,
Quest const *   
)
inlinevirtual

Reimplemented in SmartGameObjectAI, go_silverpine_abandoned_outhouse, go_crystalline_tear::go_crystalline_tearAI, and go_crystal_prison::go_crystal_prisonAI.

Definition at line 85 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ OnQuestReward()

virtual void GameObjectAI::OnQuestReward ( Player ,
Quest const *  ,
LootItemType  ,
uint32   
)
inlinevirtual

Reimplemented in go_loosely_turned_soil, and SmartGameObjectAI.

Definition at line 88 of file GameObjectAI.h.

◆ OnReportUse()

virtual bool GameObjectAI::OnReportUse ( Player )
inlinevirtual

Reimplemented in SmartGameObjectAI, and go_celestial_planetarium_access.

Definition at line 92 of file GameObjectAI.h.

◆ OnStateChanged()

virtual void GameObjectAI::OnStateChanged ( uint32  )
inlinevirtual

Definition at line 104 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ Permissible()

int32 GameObjectAI::Permissible ( GameObject const *  go)
static

Definition at line 24 of file GameObjectAI.cpp.

◆ Reset()

virtual void GameObjectAI::Reset ( )
inlinevirtual

◆ SetData()

virtual void GameObjectAI::SetData ( uint32  ,
uint32   
)
inlinevirtual

Reimplemented in SmartGameObjectAI.

Definition at line 100 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ SetData64()

virtual void GameObjectAI::SetData64 ( uint32  ,
uint64   
)
inlinevirtual

Definition at line 98 of file GameObjectAI.h.

◆ SetGUID()

virtual void GameObjectAI::SetGUID ( ObjectGuid const &  ,
int32   
)
inlinevirtual

Reimplemented in go_empowering_blood_orb.

Definition at line 67 of file GameObjectAI.h.

◆ SpellHit()

virtual void GameObjectAI::SpellHit ( WorldObject ,
SpellInfo const *   
)
inlinevirtual

Reimplemented in SmartGameObjectAI, go_caribou_trap, and go_mammoth_trap.

Definition at line 108 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ SpellHitTarget()

virtual void GameObjectAI::SpellHitTarget ( WorldObject ,
SpellInfo const *   
)
inlinevirtual

Definition at line 111 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ SummonedCreatureDespawn()

virtual void GameObjectAI::SummonedCreatureDespawn ( Creature )
inlinevirtual

Reimplemented in SmartGameObjectAI.

Definition at line 116 of file GameObjectAI.h.

◆ SummonedCreatureDies()

virtual void GameObjectAI::SummonedCreatureDies ( Creature ,
Unit  
)
inlinevirtual

Reimplemented in SmartGameObjectAI.

Definition at line 117 of file GameObjectAI.h.

◆ UpdateAI()

Member Data Documentation

◆ _scriptId

uint32 const GameObjectAI::_scriptId
private

Definition at line 47 of file GameObjectAI.h.

◆ me

GameObject* const GameObjectAI::me
protected

Definition at line 50 of file GameObjectAI.h.


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