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
905 : GameObjectAI(go)
906 {
907 Initialize();
908 }
Definition: GameObjectAI.h:34
void Initialize()
Definition: go_scripts.cpp:910

References Initialize().

Member Function Documentation

◆ GossipHello()

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

Reimplemented from GameObjectAI.

916 {
917 if (reportUse)
918 return false;
919
921 {
923 {
924 _playerGUID = player->GetGUID();
928 }
929 }
930 return true;
931 }
@ QUEST_STATUS_INCOMPLETE
Definition: QuestDef.h:103
@ GAMEOBJECT_BYTES_1
Definition: UpdateFields.h:404
@ QUEST_THE_FIRST_TRIAL
Definition: go_scripts.cpp:895
@ EVENT_STILLBLADE_SPAWN
Definition: go_scripts.cpp:892
@ GAMEOBJECT_TYPE_GOOBER
Definition: SharedDefines.h:1570
GameObjectFlags
Definition: SharedDefines.h:1602
void ScheduleEvent(uint32 eventId, uint32 time, uint32 group=0, uint32 phase=0)
Definition: EventMap.cpp:56
GameObject *const me
Definition: GameObjectAI.h:36
void SetGameObjectFlag(GameObjectFlags flags)
Definition: GameObject.h:219
GameobjectTypes GetGoType() const
Definition: GameObject.h:204
void RemoveByteFlag(uint16 index, uint8 offset, uint8 newFlag)
Definition: Object.cpp:930
static ObjectGuid GetGUID(Object const *o)
Definition: Object.h:109
QuestStatus GetQuestStatus(uint32 quest_id) const
Definition: PlayerQuest.cpp:1424
EventMap _events
Definition: go_scripts.cpp:963
ObjectGuid _playerGUID
Definition: go_scripts.cpp:964

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
911 {
913 }
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.

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

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