Navigation
Unreal Engine C++ API Reference > Developer > FunctionalTesting
Inheritance Hierarchy
References
Module | FunctionalTesting |
Header | /Engine/Source/Developer/FunctionalTesting/Classes/FunctionalAITest.h |
Include | #include "FunctionalAITest.h" |
Syntax
class AFunctionalAITestBase : public [AFunctionalTest](API\Developer\FunctionalTesting\AFunctionalTest)
Remarks
Base abstract class defining a Functional AI Test. You can derive from this base class to create a test with a different type of SpawnSets.
Variables
Type | Name | Description |
---|---|---|
uint32: 1 | bDebugNavMeshOnTimeout | If set, ftest will postpone start until navmesh is fully generated |
uint32: 1 | bSingleSetRun | |
uint32: 1 | bWaitForNavMesh | If set, ftest will postpone start until navmesh is fully generated |
int32 | CurrentSpawnSetIndex | |
FString | CurrentSpawnSetName | |
FVector | NavMeshDebugExtent | Navmesh debug: extent around NavMeshDebugOrigin |
FVector | NavMeshDebugOrigin | Navmesh debug: log navoctree modifiers around this point |
FTimerHandle | NavmeshDelayTimer | |
FFunctionalTest... | OnAISpawned | Called when a single AI finished spawning |
FFunctionalTest... | OnAllAISPawned | Called when a all AI finished spawning |
TArray< FPendin... | PendingDelayedSpawns | |
TArray< TObject... | SpawnedPawns | |
float | SpawnLocationRandomizationRange |
Constructors
Type | Name | Description |
---|---|---|
AFunctionalAITestBase ( const FObjectInitializer& ObjectIn... ) |
Functions
Type | Name | Description |
---|---|---|
void | AddSpawnedPawn ( APawn& SpawnedPawn ) | |
void | ClearPendingDelayedSpawns () | |
void | ForEachSpawnSet ( TFunctionRef< void(FAITestSpawnSetB... ) | Iterate through the list of spawn sets and execute Predicate on each. |
void | ForEachSpawnSet ( TFunctionRef< void(const FAITestSpa... ) | Iterate through the list of spawn sets and execute Predicate on each in a const-correct way. |
FVector | GetRandomizedLocation ( const FVector& Location ) | |
FAITestSpawn... | GetSpawnInfo ( const int32 SpawnSetIndex, const int32 SpawnInfoIndex ) | Return the SpawnInfo at SpawnInfoIndexof the SpawnSet at SpawnSetIndex. |
const FAITes... | GetSpawnInfo ( const int32 SpawnSetIndex, const int32 SpawnInfoIndex ) | Return the SpawnInfo at SpawnInfoIndexof the SpawnSet at SpawnSetIndex. Const-correct version. |
const FAITes... | GetSpawnSet ( const int32 SpawnSetIndex ) | Return the SpawnSet at this index of the SpawnSets array. Const-correct version. |
FAITestSpawn... | GetSpawnSet ( const int32 SpawnSetIndex ) | Return the SpawnSet at this index of the SpawnSets array. |
bool | IsNavMeshReady () | |
bool | IsOneOfSpawnedPawns ( AActor* Actor ) | |
bool | IsValidSpawnSetIndex ( const int32 Index ) | Return whether the index is valid in the SpawnSets array. |
void | KillOffSpawnedPawns () | |
void | OnSpawningFailure () | |
void | RemoveSpawnSetIfPredicate ( TFunctionRef< bool(FAITestSpawnSetB... ) | Iterate through the list of spawn sets and remove the spawn set if Predicate returns true. |
bool | Spawn ( const int32 SpawnSetIndex, const int32 SpawnInfoIndex ) | Spawn this AI at this SpawnInfoIndex of the SpawnSetIndex spawn set. |
void | StartSpawning () |
Overridden from AFunctionalTest
Type | Name | Description |
---|---|---|
void | CleanUp () | Called to clean up when tests is removed from the list of active tests after finishing execution. |
void | GatherRelevantActors ( TArray< AActor* >& OutActors ) | |
FString | GetAdditionalTestFinishedMessage ( EFunctionalTestResult TestResult ) | |
FString | GetReproString () | |
bool | IsReady_Implementation () | |
void | OnTimeout () | |
bool | RunTest ( const TArray< FString >& Params ) | |
void | StartTest () | Called once the IsReady() check for the test returns true. |
bool | WantsToRunAgain () |