![]() |
TrinityCore
|
Classes | |
| struct | PermissibleOrderPred |
Functions | |
| template<class T , class Value > | |
| int32 | GetPermitFor (T const *obj, Value const &value) |
| template<class AI , class T > | |
| FactoryHolder< AI, T > const * | SelectFactory (T *obj) |
| CreatureAI * | SelectAI (Creature *creature) |
| MovementGenerator * | SelectMovementGenerator (Unit *unit) |
| GameObjectAI * | SelectGameObjectAI (GameObject *go) |
|
inline |
Definition at line 34 of file CreatureAISelector.cpp.
References ASSERT_NOTNULL, and Permissible< T >::Permit().
Referenced by FactorySelector::PermissibleOrderPred< T >::operator()(), and SelectFactory().
| TC_GAME_API CreatureAI * FactorySelector::SelectAI | ( | Creature * | creature | ) |
Definition at line 81 of file CreatureAISelector.cpp.
References ASSERT_NOTNULL, Object::GetEntry(), Creature::GetScriptName(), Unit::IsPet(), sCreatureAIRegistry, sScriptMgr, TC_LOG_ERROR, and InvalidAIException::what().
Referenced by Creature::AIM_Create().
|
inline |
Definition at line 57 of file CreatureAISelector.cpp.
References ABORT, GetPermitFor(), and ObjectRegistry< T, Key >::GetRegistryItem().
| TC_GAME_API GameObjectAI * FactorySelector::SelectGameObjectAI | ( | GameObject * | go | ) |
Definition at line 113 of file CreatureAISelector.cpp.
References sScriptMgr.
Referenced by GameObject::AIM_Initialize().
| TC_GAME_API MovementGenerator * FactorySelector::SelectMovementGenerator | ( | Unit * | unit | ) |
Definition at line 102 of file CreatureAISelector.cpp.
References ASSERT_NOTNULL, FactoryHolder< T, O, Key >::Create(), Unit::GetDefaultMovementType(), sMovementGeneratorRegistry, and Object::ToCreature().
Referenced by MotionMaster::InitializeDefault().