TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
npc_voljin_zulaman::npc_voljin_zulamanAI Struct Reference

Public Member Functions

 npc_voljin_zulamanAI (Creature *creature)
 
void Reset () override
 
void sGossipSelect (Player *player, uint32 menuId, uint32 gossipListId) override
 
void DoAction (int32 action) override
 
void UpdateAI (uint32 diff) override
 
void MovementInform (uint32 movementType, uint32 pointId) override
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
virtual ~ScriptedAI ()
 
void AttackStartNoMove (Unit *target)
 
void DamageTaken (Unit *, uint32 &) override
 
void JustDied (Unit *) override
 
void KilledUnit (Unit *) override
 
void JustSummoned (Creature *) override
 
void SummonedCreatureDespawn (Creature *) override
 
void SpellHit (Unit *, SpellInfo const *) override
 
void SpellHitTarget (Unit *, SpellInfo const *) override
 
void OnPossess (bool)
 
void EnterCombat (Unit *) override
 
void AttackStart (Unit *) override
 
void DoStartMovement (Unit *target, float distance=0.0f, float angle=0.0f)
 
void DoStartNoMovement (Unit *target)
 
void DoStopAttack ()
 
void DoCastSpell (Unit *target, SpellInfo const *spellInfo, bool triggered=false)
 
void DoPlaySoundToSet (WorldObject *source, uint32 soundId)
 
void DoResetThreat ()
 
float DoGetThreat (Unit *unit)
 
void DoModifyThreatPercent (Unit *unit, int32 pct)
 
void DoTeleportTo (float x, float y, float z, uint32 time=0)
 
void DoTeleportTo (float const pos[4])
 
void DoTeleportPlayer (Unit *unit, float x, float y, float z, float o)
 
void DoTeleportAll (float x, float y, float z, float o)
 
UnitDoSelectLowestHpFriendly (float range, uint32 minHPDiff=1)
 
std::list< Creature * > DoFindFriendlyCC (float range)
 
std::list< Creature * > DoFindFriendlyMissingBuff (float range, uint32 spellId)
 
PlayerGetPlayerAtMinimumRange (float minRange)
 
CreatureDoSpawnCreature (uint32 entry, float offsetX, float offsetY, float offsetZ, float angle, uint32 type, uint32 despawntime)
 
bool HealthBelowPct (uint32 pct) const
 
bool HealthAbovePct (uint32 pct) const
 
SpellInfo constSelectSpell (Unit *target, uint32 school, uint32 mechanic, SelectTargetType targets, float rangeMin, float rangeMax, SelectEffect effect)
 
void SetEquipmentSlots (bool loadDefault, int32 mainHand=EQUIP_NO_CHANGE, int32 offHand=EQUIP_NO_CHANGE, int32 ranged=EQUIP_NO_CHANGE)
 
void SetCombatMovement (bool allowMovement)
 
bool IsCombatMovementAllowed () const
 
bool IsHeroic () const
 
Difficulty GetDifficulty () const
 
bool Is25ManRaid () const
 
template<class T >
const T & DUNGEON_MODE (const T &normal5, const T &heroic10) const
 
template<class T >
const T & RAID_MODE (const T &normal10, const T &normal25) const
 
template<class T >
const T & RAID_MODE (const T &normal10, const T &normal25, const T &heroic10, const T &heroic25) const
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr)
 
 CreatureAI (Creature *creature)
 
virtual ~CreatureAI ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At ================================= More...
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
virtual void IsSummonedBy (Unit *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted () const
 
virtual void JustRespawned ()
 
void OnCharmed (bool apply) override
 
virtual void JustReachedHome ()
 
void DoZoneInCombat (Creature *creature=NULL, float maxRangeToNearestTarget=50.0f)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *)
 
virtual void OwnerAttacked (Unit *)
 
virtual void CorpseRemoved (uint32 &)
 == Triggered Actions Requested ================== More...
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields ======================================= More...
 
virtual void OnSpellClick (Unit *, bool &)
 
virtual bool CanSeeAlways (WorldObject const *)
 
int32 VisualizeBoundary (uint32 duration, Unit *owner=nullptr, bool fill=false) const
 
virtual bool CheckInRoom ()
 
CreatureBoundary constGetBoundary () const
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual bool CanAIAttack (Unit const *) const
 
virtual void InitializeAI ()
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
UnitSelectTarget (SelectAggroTarget targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectAggroTarget targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectAggroTarget targetType, float dist=0.0f, bool playerOnly=false, int32 aura=0)
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, PREDICATE const &predicate, uint32 maxTargets, SelectAggroTarget targetType)
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 
virtual void HealReceived (Unit *, uint32 &)
 
virtual void HealDone (Unit *, uint32 &)
 
virtual void SpellInterrupted (uint32, uint32)
 
void AttackStartCaster (Unit *victim, float dist)
 
void DoCast (uint32 spellId)
 
void DoCast (Unit *victim, uint32 spellId, bool triggered=false)
 
void DoCastVictim (uint32 spellId, bool triggered=false)
 
void DoCastAOE (uint32 spellId, bool triggered=false)
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spellId)
 
virtual void sGossipHello (Player *)
 
virtual void sGossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual void sQuestAccept (Player *, Quest const *)
 
virtual void sQuestSelect (Player *, Quest const *)
 
virtual void sQuestReward (Player *, Quest const *, uint32)
 
virtual bool sOnDummyEffect (Unit *, uint32, SpellEffIndex)
 
virtual void sOnGameEvent (bool, uint16)
 

Private Attributes

InstanceScript_instance
 
EventMap _events
 
uint8 _gongCount = 0
 

Additional Inherited Members

- Public Types inherited from CreatureAI
enum  EvadeReason { EVADE_REASON_NO_HOSTILES, EVADE_REASON_BOUNDARY, EVADE_REASON_SEQUENCE_BREAK, EVADE_REASON_OTHER }
 
- Static Public Member Functions inherited from UnitAI
static void FillAISpellInfo ()
 
- Public Attributes inherited from ScriptedAI
bool IsFleeing
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
 
- Protected Member Functions inherited from CreatureAI
bool UpdateVictim ()
 
bool UpdateVictimWithGaze ()
 
void SetGazeOn (Unit *target)
 
CreatureDoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
bool CheckBoundary (Position const *who=nullptr) const
 
void SetBoundary (CreatureBoundary const *boundary)
 
virtual void MoveInLineOfSight (Unit *)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
CreatureBoundary const_boundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Constructor & Destructor Documentation

npc_voljin_zulaman::npc_voljin_zulamanAI::npc_voljin_zulamanAI ( Creature creature)
inline
88  : ScriptedAI(creature), _instance(creature->GetInstanceScript())
89  {
93  }
Definition: Unit.h:735
ScriptedAI(Creature *creature)
Definition: ScriptedCreature.cpp:100
Definition: zulaman.h:42
InstanceScript * GetInstanceScript()
Definition: Object.cpp:1540
virtual uint32 GetData(uint32) const
Definition: ZoneScript.h:51
void SetFlag(uint16 index, uint32 newFlag)
Definition: Object.cpp:1199
Creature *const me
Definition: CreatureAI.h:71
CreatureTemplate const * GetCreatureTemplate() const
Definition: Creature.h:558
Definition: InstanceScript.h:58
uint32 Modelid1
Definition: Creature.h:84
void SetDisplayId(uint32 modelId) override
Definition: Creature.cpp:2664
Definition: UpdateFields.h:135
InstanceScript * _instance
Definition: zulaman.cpp:210

+ Here is the call graph for this function:

Member Function Documentation

void npc_voljin_zulaman::npc_voljin_zulamanAI::DoAction ( int32  action)
inlineoverridevirtual

Reimplemented from UnitAI.

118  {
119  if (action == ACTION_START_ZULAMAN)
120  {
121  if (++_gongCount == 10)
123  }
124  }
uint8 _gongCount
Definition: zulaman.cpp:212
Definition: zulaman.h:72
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
EventMap _events
Definition: zulaman.cpp:211
Definition: zulaman.cpp:51

+ Here is the call graph for this function:

void npc_voljin_zulaman::npc_voljin_zulamanAI::MovementInform ( uint32  movementType,
uint32  pointId 
)
inlineoverridevirtual

Reimplemented from CreatureAI.

188  {
189  if (movementType != POINT_MOTION_TYPE)
190  return;
191 
192  switch (pointId)
193  {
194  case POINT_STRANGE_GONG:
196  me->SetFacingToObject(strangeGong); // setInFront
197  break;
199  me->SetFacingTo(4.747295f);
201  Talk(SAY_INTRO_3);
203  break;
204  default:
205  break;
206  }
207  }
Definition: zulaman.cpp:54
MotionMaster * GetMotionMaster()
Definition: Unit.h:2101
Definition: zulaman.cpp:63
Definition: zulaman.cpp:65
Creature *const me
Definition: CreatureAI.h:71
void MovePoint(uint32 id, Position const &pos, bool generatePath=true)
Definition: MotionMaster.h:172
void SetFacingToObject(WorldObject const *object)
Definition: Unit.cpp:15787
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
Definition: zulaman.cpp:31
Definition: GameObject.h:880
void SetFacingTo(float ori)
Definition: Unit.cpp:15777
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
Definition: zulaman.cpp:64
TC_GAME_API GameObject * GetGameObject(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:143
EventMap _events
Definition: zulaman.cpp:211
Definition: zulaman.h:38
InstanceScript * _instance
Definition: zulaman.cpp:210
Definition: MotionMaster.h:46
Position const VoljinIntroWaypoint[4]
Definition: zulaman.cpp:73

+ Here is the call graph for this function:

void npc_voljin_zulaman::npc_voljin_zulamanAI::Reset ( )
inlineoverridevirtual

Reimplemented from ScriptedAI.

96  {
97  _gongCount = 0;
98  }
uint8 _gongCount
Definition: zulaman.cpp:212
void npc_voljin_zulaman::npc_voljin_zulamanAI::sGossipSelect ( Player player,
uint32  menuId,
uint32  gossipListId 
)
inlineoverridevirtual

Reimplemented from UnitAI.

101  {
103  return;
104 
105  if (me->GetCreatureTemplate()->GossipMenuId == menuId && !gossipListId)
106  {
107  _events.Reset();
112  Talk(SAY_INTRO_1, player);
113  me->SetWalk(true);
114  }
115  }
Definition: Unit.h:735
Definition: zulaman.cpp:29
void Reset()
Definition: EventMap.cpp:20
Definition: zulaman.h:42
virtual uint32 GetData(uint32) const
Definition: ZoneScript.h:51
void SetUInt32Value(uint16 index, uint32 value)
Definition: Object.cpp:996
uint32 GossipMenuId
Definition: Creature.h:92
Creature *const me
Definition: CreatureAI.h:71
CreatureTemplate const * GetCreatureTemplate() const
Definition: Creature.h:558
Definition: InstanceScript.h:58
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
void RemoveFlag(uint16 index, uint32 oldFlag)
Definition: Object.cpp:1214
bool SetWalk(bool enable)
Definition: Unit.cpp:15800
EventMap _events
Definition: zulaman.cpp:211
Definition: UpdateFields.h:135
Definition: UpdateFields.h:30
InstanceScript * _instance
Definition: zulaman.cpp:210
Definition: UpdateFields.h:119
Definition: zulaman.cpp:47
Definition: SharedDefines.h:4199

+ Here is the call graph for this function:

void npc_voljin_zulaman::npc_voljin_zulamanAI::UpdateAI ( uint32  diff)
inlineoverridevirtual

Reimplemented from ScriptedAI.

127  {
128  _events.Update(diff);
129  while (uint32 eventId = _events.ExecuteEvent())
130  {
131  switch (eventId)
132  {
136  break;
140  break;
142  Talk(SAY_INTRO_2);
144  break;
148  strangeGong->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_NOT_SELECTABLE);
150  break;
154  break;
156  me->SetVirtualItem(0, uint32(0));
158  strangeGong->SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_NOT_SELECTABLE);
160  break;
163  break;
167  masiveGate->SetGoState(GO_STATE_ACTIVE);
169  break;
171  Talk(SAY_INTRO_4);
173  break;
176  break;
180  break;
181  default:
182  break;
183  }
184  }
185  }
Definition: zulaman.cpp:55
Definition: zulaman.cpp:54
void SetVirtualItem(uint32 slot, uint32 itemId, uint16 appearanceModId=0)
Definition: Unit.cpp:16427
Definition: zulaman.cpp:56
Definition: zulaman.cpp:57
Definition: SharedDefines.h:2125
Definition: zulaman.h:42
Definition: zulaman.cpp:70
MotionMaster * GetMotionMaster()
Definition: Unit.h:2101
Definition: zulaman.cpp:63
Definition: Creature.h:467
Definition: zulaman.cpp:42
void RemoveAura(AuraApplicationMap::iterator &i, AuraRemoveMode mode=AURA_REMOVE_BY_DEFAULT)
Definition: Unit.cpp:3442
Definition: zulaman.h:39
Definition: CreatureTextMgr.h:34
Creature *const me
Definition: CreatureAI.h:71
void MovePoint(uint32 id, Position const &pos, bool generatePath=true)
Definition: MotionMaster.h:172
virtual ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:93
Definition: zulaman.cpp:36
Definition: zulaman.h:36
Definition: InstanceScript.h:59
virtual void SetData(uint32, uint32)
Definition: ZoneScript.h:52
Definition: zulaman.cpp:50
Definition: zulaman.cpp:53
#define sCreatureTextMgr
Definition: CreatureTextMgr.h:113
uint32_t uint32
Definition: Define.h:150
Definition: zulaman.cpp:52
void DoCast(uint32 spellId)
Definition: UnitAI.cpp:101
Definition: GameObject.h:880
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
Definition: CreatureAI.cpp:42
void ScheduleEvent(uint32 eventId, Milliseconds const &time, uint32 group=0, uint8 phase=0)
Definition: EventMap.h:123
Definition: UpdateFields.h:319
TC_GAME_API Creature * GetCreature(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:174
Definition: zulaman.cpp:64
Definition: GameObject.h:822
void Update(uint32 time)
Definition: EventMap.h:54
Definition: zulaman.cpp:49
Definition: zulaman.cpp:32
Definition: zulaman.cpp:30
Definition: SharedDefines.h:4230
uint32 ExecuteEvent()
Definition: EventMap.cpp:46
TC_GAME_API GameObject * GetGameObject(WorldObject const &u, ObjectGuid const &guid)
Definition: ObjectAccessor.cpp:143
EventMap _events
Definition: zulaman.cpp:211
Definition: zulaman.cpp:51
Definition: zulaman.h:38
uint32_t uint32
Definition: g3dmath.h:168
Definition: zulaman.cpp:48
InstanceScript * _instance
Definition: zulaman.cpp:210
Definition: zulaman.cpp:47
Position const VoljinIntroWaypoint[4]
Definition: zulaman.cpp:73
Definition: zulaman.cpp:62
Definition: SharedDefines.h:985

+ Here is the call graph for this function:

Member Data Documentation

EventMap npc_voljin_zulaman::npc_voljin_zulamanAI::_events
private
uint8 npc_voljin_zulaman::npc_voljin_zulamanAI::_gongCount = 0
private
InstanceScript* npc_voljin_zulaman::npc_voljin_zulamanAI::_instance
private

The documentation for this struct was generated from the following file: