TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ScriptedCreature.h File Reference
#include "Creature.h"
#include "CreatureAI.h"
#include "CreatureAIImpl.h"
#include "InstanceScript.h"
#include "TaskScheduler.h"
+ Include dependency graph for ScriptedCreature.h:

Go to the source code of this file.

Classes

class  SummonList
 
class  EntryCheckPredicate
 
class  DummyEntryCheckPredicate
 
struct  ScriptedAI
 
class  BossAI
 
class  WorldBossAI
 

Macros

#define CAST_AI(a, b)   (dynamic_cast<a*>(b))
 
#define ENSURE_AI(a, b)   (EnsureAI<a>(b))
 

Functions

template<class T , class U >
T * EnsureAI (U *ai)
 
TC_GAME_API CreatureGetClosestCreatureWithEntry (WorldObject *source, uint32 entry, float maxSearchRange, bool alive=true)
 
TC_GAME_API GameObjectGetClosestGameObjectWithEntry (WorldObject *source, uint32 entry, float maxSearchRange)
 
TC_GAME_API void GetCreatureListWithEntryInGrid (std::list< Creature * > &list, WorldObject *source, uint32 entry, float maxSearchRange)
 
TC_GAME_API void GetGameObjectListWithEntryInGrid (std::list< GameObject * > &list, WorldObject *source, uint32 entry, float maxSearchRange)
 
TC_GAME_API void GetPlayerListInGrid (std::list< Player * > &list, WorldObject *source, float maxSearchRange)
 

Macro Definition Documentation

#define CAST_AI (   a,
 
)    (dynamic_cast<a*>(b))
#define ENSURE_AI (   a,
 
)    (EnsureAI<a>(b))

Function Documentation

template<class T , class U >
T* EnsureAI ( U *  ai)
33 {
34  T* cast_ai = dynamic_cast<T*>(ai);
35  ASSERT(cast_ai);
36  return cast_ai;
37 };
#define ASSERT
Definition: Errors.h:55
TC_GAME_API Creature* GetClosestCreatureWithEntry ( WorldObject source,
uint32  entry,
float  maxSearchRange,
bool  alive = true 
)
612 {
613  return source->FindNearestCreature(entry, maxSearchRange, alive);
614 }
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2443

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TC_GAME_API GameObject* GetClosestGameObjectWithEntry ( WorldObject source,
uint32  entry,
float  maxSearchRange 
)
617 {
618  return source->FindNearestGameObject(entry, maxSearchRange);
619 }
GameObject * FindNearestGameObject(uint32 entry, float range) const
Definition: Object.cpp:2452

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TC_GAME_API void GetCreatureListWithEntryInGrid ( std::list< Creature * > &  list,
WorldObject source,
uint32  entry,
float  maxSearchRange 
)
622 {
623  source->GetCreatureListWithEntryInGrid(list, entry, maxSearchRange);
624 }
void GetCreatureListWithEntryInGrid(std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const
Definition: Object.cpp:2483

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TC_GAME_API void GetGameObjectListWithEntryInGrid ( std::list< GameObject * > &  list,
WorldObject source,
uint32  entry,
float  maxSearchRange 
)
627 {
628  source->GetGameObjectListWithEntryInGrid(list, entry, maxSearchRange);
629 }
void GetGameObjectListWithEntryInGrid(std::list< GameObject * > &lList, uint32 uiEntry, float fMaxSearchRange) const
Definition: Object.cpp:2470

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TC_GAME_API void GetPlayerListInGrid ( std::list< Player * > &  list,
WorldObject source,
float  maxSearchRange 
)
632 {
633  source->GetPlayerListInGrid(list, maxSearchRange);
634 }
void GetPlayerListInGrid(std::list< Player * > &lList, float fMaxSearchRange) const
Definition: Object.cpp:2496

+ Here is the call graph for this function: