Modular Turret C++ Plugin  Version 3
Turret C++ Unreal engine 4 plugin
FMortarSortByDistance Struct Reference

Public Member Functions

 FMortarSortByDistance (const FVector &SourceLocation)
 

Public Attributes

FVector OwnerLocation
 

Related Functions

(Note that these are not member functions.)

bool operator() (const AActor *A, const AActor *B) const
 

Detailed Description

Predicate for Sorting If distance of A with Owner is less than B then A will be choosen

Constructor & Destructor Documentation

◆ FMortarSortByDistance()

FMortarSortByDistance::FMortarSortByDistance ( const FVector &  SourceLocation)
inline

Friends And Related Function Documentation

◆ operator()()

bool operator() ( const AActor *  A,
const AActor *  B 
) const
related

Comparing Distances of both actors From the owner's location and returns true if Actor A's distance from owner is less than B's distance from Owner's location

Member Data Documentation

◆ OwnerLocation

FVector FMortarSortByDistance::OwnerLocation

The Location of Actor


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