All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
go_toy_train_set::go_toy_train_setAI Struct Reference

Public Member Functions

 go_toy_train_setAI (GameObject *go)
void UpdateAI (uint32 diff) override
void DoAction (int32) override
- Public Member Functions inherited from GameObjectAI
 GameObjectAI (GameObject *g)
virtual ~GameObjectAI ()
virtual void InitializeAI ()
virtual void Reset ()
virtual void SetGUID (uint64, int32)
virtual uint64 GetGUID (int32) const
virtual bool GossipHello (Player *)
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 SetData64 (uint32, uint64)
virtual uint64 GetData64 (uint32) const
virtual void SetData (uint32, uint32)
virtual void OnGameEvent (bool, uint16)
virtual void OnStateChanged (uint32, Unit *)
virtual void EventInform (uint32)

Private Attributes

uint32 _pulseTimer

Additional Inherited Members

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

Constructor & Destructor Documentation

go_toy_train_set::go_toy_train_setAI::go_toy_train_setAI ( GameObject go)
GameObjectAI(GameObject *g)
Definition: GameObjectAI.h:34
uint32 _pulseTimer
Definition: go_scripts.cpp:1162
Definition: Common.h:103

Member Function Documentation

void go_toy_train_set::go_toy_train_setAI::DoAction ( int32  )

Reimplemented from GameObjectAI.

1157  {
1158  go->Delete();
1159  }
GameObject *const go
Definition: GameObjectAI.h:32
void Delete()
Definition: GameObject.cpp:726

+ Here is the call graph for this function:

void go_toy_train_set::go_toy_train_setAI::UpdateAI ( uint32  diff)

Reimplemented from GameObjectAI.

1145  {
1146  if (diff < _pulseTimer)
1147  _pulseTimer -= diff;
1148  else
1149  {
1150  go->CastSpell(nullptr, SPELL_TOY_TRAIN_PULSE, true);
1152  }
1153  }
Definition: go_scripts.cpp:1132
uint32 _pulseTimer
Definition: go_scripts.cpp:1162
void CastSpell(Unit *target, uint32 spell, bool triggered=true)
Definition: GameObject.cpp:1833
Definition: Common.h:103
GameObject *const go
Definition: GameObjectAI.h:32

+ Here is the call graph for this function:

Member Data Documentation

uint32 go_toy_train_set::go_toy_train_setAI::_pulseTimer

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