KarmaEngine
Game Engine for practical learning and research purposes
|
Actor iterator. More...
#include <ActorIterator.h>
Public Member Functions | |
FActorIterator (const UWorld *InWorld, const EActorIteratorFlags InFlags=EActorIteratorFlags(OnlyActiveLevels|SkipPendingKill)) | |
A Constructor. | |
FActorIterator (const UWorld *InWorld, const TSubclassOf< AActor > InClass, const EActorIteratorFlags InFlags=EActorIteratorFlags(OnlyActiveLevels|SkipPendingKill)) | |
A Constructor. | |
![]() | |
void | operator++ () |
Iterates to next suitable actor. | |
FORCEINLINE AActor * | operator* () const |
Returns the current suitable actor pointed at by the Iterator. | |
FORCEINLINE AActor * | operator-> () const |
Returns the current suitable actor pointed at by the Iterator. | |
FORCEINLINE | operator bool () const |
Returns whether the iterator has reached the end and no longer points to a suitable actor. | |
void | ClearCurrent () |
Clears the current Actor in the array (setting it to NULL). | |
int32 | GetProgressNumerator () const |
Returns the number of actors considered thus far. Can be used in combination with GetProgressDenominator to gauge progress iterating over all actors. | |
FORCEINLINE bool | CanIterateLevel (const ULevel *Level) const |
Used to examine whether this level is valid for iteration or not. This function should be redefined (thus hiding this one) in a derived class if it wants special level filtering. | |
FORCEINLINE bool | IsActorSuitable (const AActor *Actor) const |
Determines whether this is a valid actor or not. This function should be redefined (thus hiding this one) in a derived class if it wants special actor filtering. | |
void | operator++ () |
Iterates to next suitable actor. | |
FORCEINLINE AActor * | operator* () const |
Returns the current suitable actor pointed at by the Iterator. | |
FORCEINLINE AActor * | operator-> () const |
Returns the current suitable actor pointed at by the Iterator. | |
FORCEINLINE | operator bool () const |
Returns whether the iterator has reached the end and no longer points to a suitable actor. | |
void | ClearCurrent () |
Clears the current Actor in the array (setting it to NULL). | |
int32 | GetProgressNumerator () const |
Returns the number of actors considered thus far. Can be used in combination with GetProgressDenominator to gauge progress iterating over all actors. | |
FORCEINLINE bool | CanIterateLevel (const ULevel *Level) const |
Used to examine whether this level is valid for iteration or not. This function should be redefined (thus hiding this one) in a derived class if it wants special level filtering. | |
FORCEINLINE bool | IsActorSuitable (const AActor *Actor) const |
Determines whether this is a valid actor or not. This function should be redefined (thus hiding this one) in a derived class if it wants special actor filtering. | |
Friends | |
class | TActorIteratorBase< FActorIterator > |
Maybe for use in future. | |
Additional Inherited Members | |
![]() | |
TActorIteratorBase (EActorIteratorType) | |
A constructor. | |
TActorIteratorBase (const UWorld *InWorld, TSubclassOf< AActor > InClass, const EActorIteratorFlags InFlags) | |
Constructor for setting m_State (FActorIteratorState) with the supplied InWorld and InClass. | |
TActorIteratorBase (EActorIteratorType) | |
A constructor. | |
TActorIteratorBase (const UWorld *InWorld, TSubclassOf< AActor > InClass, const EActorIteratorFlags InFlags) | |
Constructor for setting m_State (FActorIteratorState) with the supplied InWorld and InClass. | |
Actor iterator.
|
inlineexplicit |
A Constructor.
InWorld | The world whose actors are to be iterated over. |
InFlags | Iteration flags indicating which types of levels and actors should be iterated |
|
inlineexplicit |
A Constructor.
InWorld | The world whose actors are to be iterated over. |
InClass | The type of actors to be iterated over. |
InFlags | Iteration flags indicating which types of levels and actors should be iterated |
|
friend |
Maybe for use in future.