mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-20 23:11:56 -04:00
Core/AI: Factory functions cleanup
- Get rid of fugly void pointers - Streamlined AI selection code, using Permissible as it should've been instead of harcoded checks on the selector code - Moved IdleMovementGenerator singleton to factory code
This commit is contained in:
@@ -17,5 +17,12 @@
|
||||
*/
|
||||
|
||||
#include "MovementGenerator.h"
|
||||
#include "IdleMovementGenerator.h"
|
||||
|
||||
MovementGenerator::~MovementGenerator() { }
|
||||
|
||||
MovementGenerator* IdleMovementFactory::Create(Unit* /*object*/) const
|
||||
{
|
||||
static IdleMovementGenerator instance;
|
||||
return &instance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user