AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
go_gilded_brazier::go_gilded_brazierAI Struct Reference
Inheritance diagram for go_gilded_brazier::go_gilded_brazierAI:
GameObjectAI

Public Member Functions

 go_gilded_brazierAI (GameObject *go)
 
void Initialize ()
 
bool GossipHello (Player *player, bool reportUse) override
 
void UpdateAI (uint32 const diff) override
 
- Public Member Functions inherited from GameObjectAI
 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 *)
 

Private Attributes

EventMap _events
 
ObjectGuid _playerGUID
 

Additional Inherited Members

- Static Public Member Functions inherited from GameObjectAI
static int32 Permissible (GameObject const *go)
 
- Protected Attributes inherited from GameObjectAI
GameObject *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ go_gilded_brazierAI()

go_gilded_brazier::go_gilded_brazierAI::go_gilded_brazierAI ( GameObject go)
inline
904 : GameObjectAI(go)
905 {
906 Initialize();
907 }
Definition: GameObjectAI.h:33
void Initialize()
Definition: go_scripts.cpp:909

References Initialize().

Member Function Documentation

◆ GossipHello()

bool go_gilded_brazier::go_gilded_brazierAI::GossipHello ( Player player,
bool  reportUse 
)
inlineoverridevirtual

Reimplemented from GameObjectAI.

915 {
916 if (reportUse)
917 return false;
918
920 {
922 {
923 _playerGUID = player->GetGUID();
927 }
928 }
929 return true;
930 }
@ QUEST_THE_FIRST_TRIAL
Definition: go_scripts.cpp:894
@ EVENT_STILLBLADE_SPAWN
Definition: go_scripts.cpp:891
@ GAMEOBJECT_TYPE_GOOBER
Definition: SharedDefines.h:1570
GameObjectFlags
Definition: SharedDefines.h:1602
@ QUEST_STATUS_INCOMPLETE
Definition: QuestDef.h:103
@ GAMEOBJECT_BYTES_1
Definition: UpdateFields.h:404
void ScheduleEvent(uint32 eventId, uint32 time, uint32 group=0, uint32 phase=0)
Definition: EventMap.cpp:56
GameObject *const me
Definition: GameObjectAI.h:35
void SetGameObjectFlag(GameObjectFlags flags)
Definition: GameObject.h:218
GameobjectTypes GetGoType() const
Definition: GameObject.h:203
void RemoveByteFlag(uint16 index, uint8 offset, uint8 newFlag)
Definition: Object.cpp:930
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:112
QuestStatus GetQuestStatus(uint32 quest_id) const
Definition: PlayerQuest.cpp:1429
EventMap _events
Definition: go_scripts.cpp:962
ObjectGuid _playerGUID
Definition: go_scripts.cpp:963

References _events, _playerGUID, EVENT_STILLBLADE_SPAWN, GAMEOBJECT_BYTES_1, GAMEOBJECT_TYPE_GOOBER, GameObject::GetGoType(), Object::GetGUID(), Player::GetQuestStatus(), GameObjectAI::me, QUEST_STATUS_INCOMPLETE, QUEST_THE_FIRST_TRIAL, Object::RemoveByteFlag(), EventMap::ScheduleEvent(), and GameObject::SetGameObjectFlag().

◆ Initialize()

void go_gilded_brazier::go_gilded_brazierAI::Initialize ( )
inline
910 {
912 }
void Clear()
Definition: ObjectGuid.h:138

References _playerGUID, and ObjectGuid::Clear().

Referenced by go_gilded_brazierAI().

◆ UpdateAI()

void go_gilded_brazier::go_gilded_brazierAI::UpdateAI ( uint32 const  diff)
inlineoverridevirtual

Reimplemented from GameObjectAI.

933 {
934 _events.Update(diff);
935
936 while (uint32 eventId = _events.ExecuteEvent())
937 {
938 switch (eventId)
939 {
941 {
943 {
944 player->SummonCreature(NPC_STILLBLADE, 8032.587f, -7524.518f, 149.68073f, 6.161012172698974609f, TEMPSUMMON_DEAD_DESPAWN, 60000);
946 }
947 break;
948 }
950 {
953 break;
954 }
955 default:
956 break;
957 }
958 }
959 }
std::uint32_t uint32
Definition: Define.h:107
@ NPC_STILLBLADE
Definition: go_scripts.cpp:893
@ EVENT_RESET_BRAZIER
Definition: go_scripts.cpp:892
@ TEMPSUMMON_DEAD_DESPAWN
Definition: Object.h:52
Player * GetPlayer(Map const *, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:220
uint32 ExecuteEvent()
Definition: EventMap.cpp:114
void Update(uint32 time)
Definition: EventMap.h:54
void RemoveGameObjectFlag(GameObjectFlags flags)
Definition: GameObject.h:219
void SetByteFlag(uint16 index, uint8 offset, uint8 newFlag)
Definition: Object.cpp:911
Definition: Player.h:1081

References _events, _playerGUID, EVENT_RESET_BRAZIER, EVENT_STILLBLADE_SPAWN, EventMap::ExecuteEvent(), GAMEOBJECT_BYTES_1, ObjectAccessor::GetPlayer(), GameObjectAI::me, NPC_STILLBLADE, GameObject::RemoveGameObjectFlag(), EventMap::ScheduleEvent(), Object::SetByteFlag(), TEMPSUMMON_DEAD_DESPAWN, and EventMap::Update().

Member Data Documentation

◆ _events

EventMap go_gilded_brazier::go_gilded_brazierAI::_events
private

Referenced by GossipHello(), and UpdateAI().

◆ _playerGUID

ObjectGuid go_gilded_brazier::go_gilded_brazierAI::_playerGUID
private

Referenced by GossipHello(), Initialize(), and UpdateAI().