TrinityCore
ScriptedCreature.h File Reference
#include "CreatureAI.h"
#include "Creature.h"
#include "DBCEnums.h"
#include "EventMap.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
 

Functions

CreatureGetClosestCreatureWithEntry (WorldObject *source, uint32 entry, float maxSearchRange, bool alive=true)
 
CreatureGetClosestCreatureWithOptions (WorldObject *source, float maxSearchRange, FindCreatureOptions const &options)
 
GameObjectGetClosestGameObjectWithEntry (WorldObject *source, uint32 entry, float maxSearchRange, bool spawnedOnly=true)
 
template<typename Container >
void GetCreatureListWithEntryInGrid (Container &container, WorldObject *source, uint32 entry, float maxSearchRange)
 
template<typename Container >
void GetCreatureListWithOptionsInGrid (Container &container, WorldObject *source, float maxSearchRange, FindCreatureOptions const &options)
 
template<typename Container >
void GetGameObjectListWithEntryInGrid (Container &container, WorldObject *source, uint32 entry, float maxSearchRange)
 
template<typename Container >
void GetPlayerListInGrid (Container &container, WorldObject *source, float maxSearchRange, bool alive=true)
 

Function Documentation

◆ GetClosestCreatureWithEntry()

Creature * GetClosestCreatureWithEntry ( WorldObject source,
uint32  entry,
float  maxSearchRange,
bool  alive = true 
)
inline

Definition at line 389 of file ScriptedCreature.h.

390{
391 return source->FindNearestCreature(entry, maxSearchRange, alive);
392}
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2136
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetClosestCreatureWithOptions()

Creature * GetClosestCreatureWithOptions ( WorldObject source,
float  maxSearchRange,
FindCreatureOptions const &  options 
)
inline

Definition at line 394 of file ScriptedCreature.h.

395{
396 return source->FindNearestCreatureWithOptions(maxSearchRange, options);
397}
Creature * FindNearestCreatureWithOptions(float range, FindCreatureOptions const &options) const
Definition: Object.cpp:2145
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetClosestGameObjectWithEntry()

GameObject * GetClosestGameObjectWithEntry ( WorldObject source,
uint32  entry,
float  maxSearchRange,
bool  spawnedOnly = true 
)
inline

Definition at line 399 of file ScriptedCreature.h.

400{
401 return source->FindNearestGameObject(entry, maxSearchRange, spawnedOnly);
402}
GameObject * FindNearestGameObject(uint32 entry, float range, bool spawnedOnly=true) const
Definition: Object.cpp:2158
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCreatureListWithEntryInGrid()

template<typename Container >
void GetCreatureListWithEntryInGrid ( Container &  container,
WorldObject source,
uint32  entry,
float  maxSearchRange 
)
inline

Definition at line 405 of file ScriptedCreature.h.

406{
407 source->GetCreatureListWithEntryInGrid(container, entry, maxSearchRange);
408}
void GetCreatureListWithEntryInGrid(Container &creatureContainer, uint32 entry, float maxSearchRange=250.0f) const
Definition: Object.cpp:3300
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCreatureListWithOptionsInGrid()

template<typename Container >
void GetCreatureListWithOptionsInGrid ( Container &  container,
WorldObject source,
float  maxSearchRange,
FindCreatureOptions const &  options 
)
inline

Definition at line 411 of file ScriptedCreature.h.

412{
413 source->GetCreatureListWithOptionsInGrid(container, maxSearchRange, options);
414}
void GetCreatureListWithOptionsInGrid(Container &creatureContainer, float maxSearchRange, FindCreatureOptions const &options) const
Definition: Object.cpp:3308
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetGameObjectListWithEntryInGrid()

template<typename Container >
void GetGameObjectListWithEntryInGrid ( Container &  container,
WorldObject source,
uint32  entry,
float  maxSearchRange 
)
inline

Definition at line 417 of file ScriptedCreature.h.

418{
419 source->GetGameObjectListWithEntryInGrid(container, entry, maxSearchRange);
420}
void GetGameObjectListWithEntryInGrid(Container &gameObjectContainer, uint32 entry, float maxSearchRange=250.0f) const
Definition: Object.cpp:3280
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetPlayerListInGrid()

template<typename Container >
void GetPlayerListInGrid ( Container &  container,
WorldObject source,
float  maxSearchRange,
bool  alive = true 
)
inline

Definition at line 423 of file ScriptedCreature.h.

424{
425 source->GetPlayerListInGrid(container, maxSearchRange, alive);
426}
void GetPlayerListInGrid(Container &playerContainer, float maxSearchRange, bool alive=true) const
Definition: Object.cpp:3320
+ Here is the call graph for this function:
+ Here is the caller graph for this function: