TrinityCore
Loading...
Searching...
No Matches
GameObjectAI Class Reference

#include <GameObjectAI.h>

+ Inheritance diagram for GameObjectAI:

Public Member Functions

 GameObjectAI (GameObject *go)
 
virtual ~GameObjectAI ()
 
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 *)
 
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 *, 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 *)
 

Static Public Member Functions

static int32 Permissible (GameObject const *go)
 

Protected Attributes

GameObject *const me
 

Detailed Description

Definition at line 32 of file GameObjectAI.h.

Constructor & Destructor Documentation

◆ GameObjectAI()

GameObjectAI::GameObjectAI ( GameObject go)
inlineexplicit

Definition at line 38 of file GameObjectAI.h.

◆ ~GameObjectAI()

virtual GameObjectAI::~GameObjectAI ( )
inlinevirtual

Definition at line 39 of file GameObjectAI.h.

Member Function Documentation

◆ Damaged()

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

Definition at line 77 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ Destroyed()

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

Reimplemented in go_ulduar_tower::go_ulduar_towerAI, and SmartGameObjectAI.

Definition at line 76 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 48 of file GameObjectAI.h.

◆ EventInform()

virtual void GameObjectAI::EventInform ( uint32  )
inlinevirtual

Reimplemented in SmartGameObjectAI.

Definition at line 87 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ GetData()

virtual uint32 GameObjectAI::GetData ( uint32  ) const
inlinevirtual

Definition at line 79 of file GameObjectAI.h.

◆ GetData64()

virtual uint64 GameObjectAI::GetData64 ( uint32  ) const
inlinevirtual

Definition at line 81 of file GameObjectAI.h.

◆ GetDialogStatus()

virtual Optional< QuestGiverStatus > GameObjectAI::GetDialogStatus ( Player )
inlinevirtual

Definition at line 55 of file GameObjectAI.h.

◆ GetGUID()

virtual ObjectGuid GameObjectAI::GetGUID ( int32  ) const
inlinevirtual

Definition at line 50 of file GameObjectAI.h.

◆ InitializeAI()

virtual void GameObjectAI::InitializeAI ( )
inlinevirtual

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

Definition at line 43 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ JustSummoned()

virtual void GameObjectAI::JustSummoned ( Creature )
inlinevirtual

Reimplemented in SmartGameObjectAI, and gob_spider_egg.

Definition at line 96 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ OnGameEvent()

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

Reimplemented in SmartGameObjectAI, and go_bells::go_bellsAI.

Definition at line 84 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_gong_of_bethekk, go_brazier_of_madness::go_brazier_of_madnessAI, 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_shield_generator, go_main_chambers_access_panel, go_broggok_lever, go_grand_warlock_chamber_door, go_resonite_cask::go_resonite_caskAI, go_massive_seaforium_charge::go_massive_seaforium_chargeAI, SmartGameObjectAI, 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_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_blackfathom_altar, go_ossirian_crystal::go_ossirian_crystalAI, go_wind_stone::go_wind_stoneAI, go_twilight_portal, go_empowering_blood_orb, 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_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 58 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ 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 64 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 85 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_crystalline_tear::go_crystalline_tearAI, and go_crystal_prison::go_crystal_prisonAI.

Definition at line 67 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ OnQuestReward()

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

Reimplemented in go_loosely_turned_soil, and SmartGameObjectAI.

Definition at line 70 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ OnReportUse()

virtual bool GameObjectAI::OnReportUse ( Player )
inlinevirtual

Reimplemented in SmartGameObjectAI, and go_celestial_planetarium_access.

Definition at line 74 of file GameObjectAI.h.

◆ OnStateChanged()

virtual void GameObjectAI::OnStateChanged ( uint32  )
inlinevirtual

Definition at line 86 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ Permissible()

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

Definition at line 21 of file GameObjectAI.cpp.

◆ Reset()

virtual void GameObjectAI::Reset ( )
inlinevirtual

Reimplemented in SmartGameObjectAI, go_direbrew_mole_machine::go_direbrew_mole_machineAI, go_wind_stone::go_wind_stoneAI, go_empowering_blood_orb, go_razorscale_harpoon::go_razorscale_harpoonAI, go_razorscale_mole_machine::go_razorscale_mole_machineAI, go_caribou_trap, go_mammoth_trap, go_ahune_ice_spear, and go_vazruden_liquid_fire.

Definition at line 45 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ SetData()

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

Reimplemented in SmartGameObjectAI.

Definition at line 82 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ SetData64()

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

Definition at line 80 of file GameObjectAI.h.

◆ SetGUID()

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

Reimplemented in go_empowering_blood_orb.

Definition at line 49 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 90 of file GameObjectAI.h.

+ Here is the caller graph for this function:

◆ SpellHitTarget()

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

Definition at line 93 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 98 of file GameObjectAI.h.

◆ SummonedCreatureDies()

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

Reimplemented in SmartGameObjectAI.

Definition at line 99 of file GameObjectAI.h.

◆ UpdateAI()

Member Data Documentation

◆ me

GameObject* const GameObjectAI::me
protected

Definition at line 35 of file GameObjectAI.h.


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