TrinityCore
MovementGeneratorComparator Struct Reference

#include <MotionMaster.h>

Public Member Functions

bool operator() (MovementGenerator const *a, MovementGenerator const *b) const
 

Detailed Description

Definition at line 76 of file MotionMaster.h.

Member Function Documentation

◆ operator()()

bool MovementGeneratorComparator::operator() ( MovementGenerator const *  a,
MovementGenerator const *  b 
) const

Definition at line 75 of file MotionMaster.cpp.

76{
77 if (a->Mode > b->Mode)
78 return true;
79 else if (a->Mode == b->Mode)
80 return a->Priority > b->Priority;
81
82 return false;
83}

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