Mortar Pro Plugin  Version 2
Modular Turret Plugin
All Classes Namespaces Functions Variables Enumerations Enumerator Pages
FMortarProSortByDistance Struct Reference

#include <MortarProAIController.h>

+ Collaboration diagram for FMortarProSortByDistance:

Public Member Functions

 FMortarProSortByDistance (const FVector &SourceLocation)
 

Public Attributes

FVector OwnerLocation
 

Related Symbols

(Note that these are not member symbols.)

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

◆ FMortarProSortByDistance()

FMortarProSortByDistance::FMortarProSortByDistance ( const FVector &  SourceLocation)
inline

Friends And Related Symbol 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

References OwnerLocation.

Member Data Documentation

◆ OwnerLocation

FVector FMortarProSortByDistance::OwnerLocation

The Location of Actor


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