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

#include "GameObjectAI.h"

Inheritance diagram for GameObjectAI:
NullGameObjectAI SmartGameObjectAI 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_flames::go_flamesAI go_gilded_brazier::go_gilded_brazierAI go_heat::go_heatAI 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 SummonedCreatureDies (Creature *, Unit *)
 

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:122

References ObjectGuid::Empty.

◆ GossipHello()

◆ GossipSelect()

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

Reimplemented in SmartGameObjectAI, and go_wind_stone::go_wind_stoneAI.

55{ return false; }

Referenced by WorldSession::HandleGossipSelectOptionOpcode().

◆ 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().

◆ 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:230

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{}

◆ 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().

◆ SummonedCreatureDies()

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

Reimplemented in SmartGameObjectAI.

69{ }

◆ 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(), 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_troll_cage::go_troll_cageAI::initBlyCrewMember(), SmartGameObjectAI::InitializeAI(), go_wg_vehicle_teleporter::go_wg_vehicle_teleporterAI::IsFriendly(), go_wg_vehicle_teleporter::go_wg_vehicle_teleporterAI::IsValidVehicle(), SmartGameObjectAI::QuestAccept(), SmartGameObjectAI::QuestReward(), go_direbrew_mole_machine::go_direbrew_mole_machineAI::Reset(), go_sand_trap::Reset(), 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_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().