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

#include "GameObjectAI.h"

Inheritance diagram for GameObjectAI:
NullGameObjectAI SmartGameObjectAI go_ahune_ice_spear go_ahune_ice_stone go_beacon::go_beaconAI go_bear_trap::go_bear_trapAI go_bells::go_bellsAI go_brazier_of_madness go_brewfest_music::go_brewfest_musicAI go_celestial_planetarium_access::go_celestial_planetarium_accessAI go_chromaggus_lever::go_chromaggus_leverAI go_darkmoon_faire_music::go_darkmoon_faire_musicAI go_direbrew_mole_machine::go_direbrew_mole_machineAI go_firework_show go_flames::go_flamesAI go_gilded_brazier::go_gilded_brazierAI go_heat::go_heatAI go_l70_etc_music::go_l70_etc_musicAI go_loosely_turned_soil::go_loosely_turned_soilAI go_midsummer_music::go_midsummer_musicAI go_ossirian_crystal::go_ossirian_crystalAI go_pirate_day_music::go_pirate_day_musicAI go_sand_trap go_soulwell::go_soulwellAI go_suppression_device::go_suppression_deviceAI go_tadpole_cage::go_tadpole_cageAI go_troll_cage::go_troll_cageAI go_wg_vehicle_teleporter::go_wg_vehicle_teleporterAI go_wind_stone::go_wind_stoneAI go_witherbark_totem_bundle::go_witherbark_totem_bundleAI

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, int32)
 
virtual ObjectGuid GetGUID (int32) const
 
virtual bool GossipHello (Player *, bool)
 
virtual bool GossipSelect (Player *, uint32, uint32)
 
virtual bool GossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual bool QuestAccept (Player *, Quest const *)
 
virtual bool QuestReward (Player *, Quest const *, uint32)
 
virtual uint32 GetDialogStatus (Player *)
 
virtual void Destroyed (Player *, uint32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void OnGameEvent (bool, uint16)
 
virtual void OnStateChanged (uint32, Unit *)
 
virtual void EventInform (uint32)
 
virtual void SpellHit (Unit *, SpellInfo const *)
 
virtual bool CanBeSeen (Player const *)
 
virtual void JustSummoned (Creature *)
 
virtual void SummonedCreatureDespawn (Creature *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureEvade (Creature *)
 

Static Public Member Functions

static int32 Permissible (GameObject const *go)
 

Protected Attributes

GameObject *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ GameObjectAI()

GameObjectAI::GameObjectAI ( GameObject go)
inlineexplicit
38: me(go) {}
GameObject *const me
Definition: GameObjectAI.h:35

◆ ~GameObjectAI()

virtual GameObjectAI::~GameObjectAI ( )
inlinevirtual
39{}

Member Function Documentation

◆ CanBeSeen()

virtual bool GameObjectAI::CanBeSeen ( Player const *  )
inlinevirtual

Reimplemented in go_loosely_turned_soil::go_loosely_turned_soilAI.

67{ return true; }

◆ Destroyed()

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

Reimplemented in SmartGameObjectAI.

60{}

◆ DoAction()

virtual void GameObjectAI::DoAction ( int32  )
inlinevirtual

◆ EventInform()

virtual void GameObjectAI::EventInform ( uint32  )
inlinevirtual

Reimplemented in SmartGameObjectAI.

65{}

Referenced by GameObject::EventInform().

◆ GetData()

virtual uint32 GameObjectAI::GetData ( uint32  ) const
inlinevirtual
61{ return 0; }

◆ GetDialogStatus()

virtual uint32 GameObjectAI::GetDialogStatus ( Player )
inlinevirtual
@ DIALOG_STATUS_SCRIPTED_NO_STATUS
Definition: QuestDef.h:125

References DIALOG_STATUS_SCRIPTED_NO_STATUS.

◆ GetGUID()

virtual ObjectGuid GameObjectAI::GetGUID ( int32  ) const
inlinevirtual
50{ return ObjectGuid::Empty; }
static ObjectGuid const Empty
Definition: ObjectGuid.h:120

References ObjectGuid::Empty.

◆ GossipHello()

◆ GossipSelect()

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

◆ GossipSelectCode()

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

Reimplemented in SmartGameObjectAI.

56{ return false; }

Referenced by WorldSession::HandleGossipSelectOptionOpcode().

◆ InitializeAI()

virtual void GameObjectAI::InitializeAI ( )
inlinevirtual

Reimplemented in SmartGameObjectAI, go_suppression_device::go_suppression_deviceAI, and go_wind_stone::go_wind_stoneAI.

43{ Reset(); }
virtual void Reset()
Definition: GameObjectAI.h:45

Referenced by GameObject::AIM_Initialize().

◆ JustSummoned()

virtual void GameObjectAI::JustSummoned ( Creature )
inlinevirtual

Reimplemented in SmartGameObjectAI.

70{}

Referenced by TempSummon::InitSummon().

◆ OnGameEvent()

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

Reimplemented in SmartGameObjectAI.

63{}

◆ OnStateChanged()

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

◆ Permissible()

int32 GameObjectAI::Permissible ( GameObject const *  go)
static
21{
22 return PERMIT_BASE_NO;
23}
@ PERMIT_BASE_NO
Definition: CreatureAI.h:239

References PERMIT_BASE_NO.

◆ QuestAccept()

virtual bool GameObjectAI::QuestAccept ( Player ,
Quest const *   
)
inlinevirtual

Reimplemented in SmartGameObjectAI.

57{ return false; }

Referenced by Player::AddQuestAndCheckCompletion().

◆ QuestReward()

virtual bool GameObjectAI::QuestReward ( Player ,
Quest const *  ,
uint32   
)
inlinevirtual

Reimplemented in SmartGameObjectAI.

58{ return false; }

Referenced by WorldSession::HandleQuestgiverChooseRewardOpcode().

◆ Reset()

virtual void GameObjectAI::Reset ( )
inlinevirtual

◆ SetData()

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

Reimplemented in SmartGameObjectAI.

62{}

Referenced by SmartScript::ProcessAction().

◆ SetGUID()

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

◆ SpellHit()

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

Reimplemented in SmartGameObjectAI.

66{}

Referenced by Spell::DoAllEffectOnTarget().

◆ SummonedCreatureDespawn()

virtual void GameObjectAI::SummonedCreatureDespawn ( Creature )
inlinevirtual

Reimplemented in SmartGameObjectAI.

71{}

◆ SummonedCreatureDies()

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

Reimplemented in SmartGameObjectAI.

73{}

◆ SummonedCreatureEvade()

virtual void GameObjectAI::SummonedCreatureEvade ( Creature )
inlinevirtual

Reimplemented in SmartGameObjectAI.

75{}

◆ UpdateAI()

Member Data Documentation

◆ me

GameObject* const GameObjectAI::me
protected

Referenced by go_suppression_device::go_suppression_deviceAI::Activate(), go_suppression_device::go_suppression_deviceAI::Deactivate(), SmartGameObjectAI::Destroyed(), go_ossirian_crystal::go_ossirian_crystalAI::DoAction(), go_brazier_of_madness::GossipHello(), go_ossirian_crystal::go_ossirian_crystalAI::GossipHello(), go_troll_cage::go_troll_cageAI::GossipHello(), SmartGameObjectAI::GossipHello(), go_chromaggus_lever::go_chromaggus_leverAI::GossipHello(), go_gilded_brazier::go_gilded_brazierAI::GossipHello(), go_soulwell::go_soulwellAI::GossipHello(), go_celestial_planetarium_access::go_celestial_planetarium_accessAI::GossipHello(), go_tadpole_cage::go_tadpole_cageAI::GossipHello(), SmartGameObjectAI::GossipSelect(), go_ahune_ice_stone::GossipSelect(), go_troll_cage::go_troll_cageAI::initBlyCrewMember(), SmartGameObjectAI::InitializeAI(), go_firework_show::InitShow(), go_wg_vehicle_teleporter::go_wg_vehicle_teleporterAI::IsFriendly(), go_wg_vehicle_teleporter::go_wg_vehicle_teleporterAI::IsValidVehicle(), go_beacon::go_beaconAI::OnStateChanged(), SmartGameObjectAI::QuestAccept(), SmartGameObjectAI::QuestReward(), go_direbrew_mole_machine::go_direbrew_mole_machineAI::Reset(), go_sand_trap::Reset(), go_ahune_ice_spear::Reset(), go_firework_show::SpawnNextFirework(), go_firework_show::StartShow(), go_firework_show::StopShow(), go_tadpole_cage::go_tadpole_cageAI::SummonTadpoles(), go_bear_trap::go_bear_trapAI::UpdateAI(), go_gilded_brazier::go_gilded_brazierAI::UpdateAI(), go_bells::go_bellsAI::UpdateAI(), go_suppression_device::go_suppression_deviceAI::UpdateAI(), go_celestial_planetarium_access::go_celestial_planetarium_accessAI::UpdateAI(), go_wg_vehicle_teleporter::go_wg_vehicle_teleporterAI::UpdateAI(), go_witherbark_totem_bundle::go_witherbark_totem_bundleAI::UpdateAI(), go_flames::go_flamesAI::UpdateAI(), go_heat::go_heatAI::UpdateAI(), go_l70_etc_music::go_l70_etc_musicAI::UpdateAI(), go_brewfest_music::go_brewfest_musicAI::UpdateAI(), go_pirate_day_music::go_pirate_day_musicAI::UpdateAI(), go_darkmoon_faire_music::go_darkmoon_faire_musicAI::UpdateAI(), go_midsummer_music::go_midsummer_musicAI::UpdateAI(), and go_tadpole_cage::go_tadpole_cageAI::UpdateAI().