AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "SmartAI.h"
Public Member Functions | |
SmartGameObjectAI (GameObject *g) | |
~SmartGameObjectAI () override | |
void | UpdateAI (uint32 diff) override |
void | InitializeAI () override |
void | Reset () override |
SmartScript * | GetScript () |
bool | GossipHello (Player *player, bool reportUse) override |
bool | GossipSelect (Player *player, uint32 sender, uint32 action) override |
bool | GossipSelectCode (Player *, uint32, uint32, const char *) override |
bool | QuestAccept (Player *player, Quest const *quest) override |
bool | QuestReward (Player *player, Quest const *quest, uint32 opt) override |
void | Destroyed (Player *player, uint32 eventId) override |
void | SetData (uint32 id, uint32 value) override |
void | SetData (uint32 id, uint32 value, WorldObject *invoker) |
void | SetScript9 (SmartScriptHolder &e, uint32 entry, WorldObject *invoker) |
void | OnGameEvent (bool start, uint16 eventId) override |
void | OnStateChanged (uint32 state, Unit *unit) override |
void | EventInform (uint32 eventId) override |
void | SpellHit (Unit *unit, SpellInfo const *spellInfo) override |
void | JustSummoned (Creature *creature) override |
void | SummonedCreatureDespawn (Creature *unit) override |
void | SummonedCreatureDies (Creature *summon, Unit *killer) override |
void | SummonedCreatureEvade (Creature *summon) 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 *) |
Static Public Member Functions | |
static int32 | Permissible (GameObject const *) |
Static Public Member Functions inherited from GameObjectAI | |
static int32 | Permissible (GameObject const *go) |
Protected Attributes | |
SmartScript | mScript |
Protected Attributes inherited from GameObjectAI | |
GameObject *const | me |
|
inline |
|
inlineoverride |
Reimplemented from GameObjectAI.
References GetScript(), GameObjectAI::me, SmartScript::ProcessEventsFor(), and SMART_EVENT_DEATH.
|
overridevirtual |
Reimplemented from GameObjectAI.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_GO_EVENT_INFORM.
|
inline |
References mScript.
Referenced by Destroyed(), EventInform(), GossipHello(), GossipSelect(), InitializeAI(), JustSummoned(), OnGameEvent(), OnStateChanged(), QuestAccept(), QuestReward(), Reset(), SetData(), SetScript9(), SpellHit(), SummonedCreatureDespawn(), SummonedCreatureDies(), SummonedCreatureEvade(), and UpdateAI().
|
overridevirtual |
Reimplemented from GameObjectAI.
References GetScript(), LOG_DEBUG, GameObjectAI::me, SmartScript::ProcessEventsFor(), and SMART_EVENT_GOSSIP_HELLO.
|
overridevirtual |
Reimplemented from GameObjectAI.
References GetScript(), GameObjectAI::me, SmartScript::ProcessEventsFor(), and SMART_EVENT_GOSSIP_SELECT.
|
overridevirtual |
Reimplemented from GameObjectAI.
|
overridevirtual |
Reimplemented from GameObjectAI.
References GetScript(), GameObject::isSpawned(), GameObjectAI::me, SmartScript::OnInitialize(), SmartScript::ProcessEventsFor(), and SMART_EVENT_RESPAWN.
|
overridevirtual |
Reimplemented from GameObjectAI.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_SUMMONED_UNIT.
|
overridevirtual |
Reimplemented from GameObjectAI.
References GetScript(), SmartScript::ProcessEventsFor(), SMART_EVENT_GAME_EVENT_END, and SMART_EVENT_GAME_EVENT_START.
Reimplemented from GameObjectAI.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_GO_STATE_CHANGED.
|
inlinestatic |
References PERMIT_BASE_NO.
Reimplemented from GameObjectAI.
References Quest::GetQuestId(), GetScript(), GameObjectAI::me, SmartScript::ProcessEventsFor(), and SMART_EVENT_ACCEPTED_QUEST.
|
overridevirtual |
Reimplemented from GameObjectAI.
References Quest::GetQuestId(), GetScript(), GameObjectAI::me, SmartScript::ProcessEventsFor(), and SMART_EVENT_REWARD_QUEST.
|
overridevirtual |
Reimplemented from GameObjectAI.
References GetScript(), SmartScript::OnReset(), SmartScript::ProcessEventsFor(), and SMART_EVENT_RESPAWN.
void SmartGameObjectAI::SetData | ( | uint32 | id, |
uint32 | value, | ||
WorldObject * | invoker | ||
) |
References GetScript(), SmartScript::ProcessEventsFor(), SMART_EVENT_DATA_SET, Object::ToGameObject(), and Object::ToUnit().
void SmartGameObjectAI::SetScript9 | ( | SmartScriptHolder & | e, |
uint32 | entry, | ||
WorldObject * | invoker | ||
) |
References Object::GetGUID(), GetScript(), SmartScript::mLastInvoker, and SmartScript::SetScript9().
Reimplemented from GameObjectAI.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_SPELLHIT.
|
overridevirtual |
Reimplemented from GameObjectAI.
References Object::GetEntry(), GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_SUMMON_DESPAWNED.
Reimplemented from GameObjectAI.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_SUMMONED_UNIT_DIES.
|
overridevirtual |
Reimplemented from GameObjectAI.
References GetScript(), SmartScript::ProcessEventsFor(), and SMART_EVENT_SUMMONED_UNIT_EVADE.
|
overridevirtual |
|
protected |
Referenced by GetScript().