FItemIterator

Windows
MacOS
Linux

Inheritance Hierarchy

FEnvQueryInstance::FConstItemIterator

FEnvQueryInstance::FItemIterator

References

Module

AIModule

Header

/Engine/Source/Runtime/AIModule/Classes/EnvironmentQuery/EnvQueryTypes.h

Include

#include "EnvironmentQuery/EnvQueryTypes.h"

Syntax

struct FItemIterator : public FEnvQueryInstance::FConstItemIterator

Variables

Name Description

Protected variable

uint8: 1

 

bForced

Protected variable

uint8: 1

 

bIsFiltering

Protected variable

uint8: 1

 

bPassed

Protected variable

uint8

 

CachedFilterOp

Protected variable

uint8

 

CachedScoreOp

Protected variable

double

 

Deadline

Protected variable

float

 

ItemScore

Protected variable

int16

 

NumPassedForItem

Protected variable

int16

 

NumTestsForItem

Constructors

Name Description

Public function

FItemIterator

(
    const UEnvQueryTest* QueryTest,
    FEnvQueryInstance& QueryInstance,
    int32 StartingItemIndex
)

Destructors

Name Description

Public function

~FItemIterator()

Functions

Name Description

Protected function

void

 

CheckItemPassed()

Public function

void

 

ForceItemState

(
    const EEnvItemStatus::Type InStatus,
    const float Score
)

Force state and score of item Any following SetScore calls for current item will be ignored

Protected function

void

 

HandleFailedTestResult()

Public function

FItemIterato...

 

IgnoreTimeLimit()

Disables time slicing for this iterator, use with caution!

Protected function

void

 

InitItemScore()

Public function

void

 

SetScore

(
    EEnvTestPurpose::Type TestPurpose,
    EEnvTestFilterType::Type FilterType,
    bool bScore,
    bool bExpected
)

Filter and score an item - used by tests working on bool values (can be called multiple times for single item when processing contexts with multiple entries)

Public function

void

 

SetScore

(
    EEnvTestPurpose::Type TestPurpose,
    EEnvTestFilterType::Type FilterType,
    float Score,
    float FilterMin,
    float FilterMax
)

Filter and score an item - used by tests working on float values (can be called multiple times for single item when processing contexts with multiple entries) NOTE: The Score is the raw score, before clamping, normalizing, and multiplying by weight.

Protected function

void

 

SetScoreInternal

(
    float Score
)

Protected function

void

 

StoreTestResult()

Operators

Name Description

Public function Const

 

operator bool()

Public function

void

 

operator++()

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss