#include <C4FindObject.h>
Definition at line 459 of file C4FindObject.h.
◆ C4SortObjectReverse()
C4SortObjectReverse::C4SortObjectReverse |
( |
C4SortObject * |
pSort | ) |
|
|
inline |
◆ ~C4SortObjectReverse()
C4SortObjectReverse::~C4SortObjectReverse |
( |
| ) |
|
|
override |
◆ Compare()
◆ CompareCache()
int32_t C4SortObjectReverse::CompareCache |
( |
int32_t |
iObj1, |
|
|
int32_t |
iObj2, |
|
|
C4Object * |
pObj1, |
|
|
C4Object * |
pObj2 |
|
) |
| |
|
overrideprotectedvirtual |
Reimplemented from C4SortObject.
Definition at line 1003 of file C4FindObject.cpp.
1005 return pSort->
CompareCache(iObj2, iObj1, pObj2, pObj1);
virtual int32_t CompareCache(int32_t iObj1, int32_t iObj2, C4Object *pObj1, C4Object *pObj2)
◆ CreateByValue() [1/2]
◆ CreateByValue() [2/2]
Definition at line 863 of file C4FindObject.cpp.
References C4SO_Distance, C4SO_Func, C4SO_Mass, C4SO_Multiple, C4SO_Random, C4SO_Reverse, C4SO_Speed, C4SO_Value, C4SortObject::CreateByValue(), C4ValueArray::GetSize(), C4Object::GetX(), C4Object::GetY(), iSize, and C4SortObjectFunc::SetPar().
871 if (!pChildSort)
return nullptr;
886 for (i = 0; i < Data.
GetSize() - 1; i++)
892 for (i = 0; i < Data.
GetSize() - 1; i++)
895 ppSorts[iSize-1] = ppSorts[i];
902 int32_t x = Data[1].getInt();
903 int32_t y = Data[2].getInt();
906 x += context->
GetX();
907 y += context->
GetY();
928 if (!pStr)
return nullptr;
932 for (
int i = 2; i < Data.
GetSize(); i++)
933 pSO->
SetPar(i - 2, Data[i]);
static C4SortObject * CreateByValue(const C4Value &Data, const C4Object *context=nullptr)
void SetPar(int i, const C4Value &val)
◆ PrepareCache()
bool C4SortObjectReverse::PrepareCache |
( |
const C4ValueArray * |
pObjs | ) |
|
|
overrideprotectedvirtual |
◆ SortObjects()
The documentation for this class was generated from the following files: