Navigation
API > API/Developer > API/Developer/FunctionalTesting
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.
| Name | AFunctionalAITestBase |
| Type | class |
| Header File | /Engine/Source/Developer/FunctionalTesting/Classes/FunctionalAITest.h |
| Include Path | #include "FunctionalAITest.h" |
Syntax
UCLASS (MinimalAPI, Abstract, BlueprintType)
class AFunctionalAITestBase : public AFunctionalTest
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → AActor → AFunctionalTest → AFunctionalAITestBase
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
AFunctionalAITestBase
(
const FObjectInitializer& ObjectInitializer |
FunctionalAITest.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddSpawnedPawn
(
APawn& SpawnedPawn |
FunctionalAITest.h | ||
virtual void ForEachSpawnSet
(
TFunctionRef< void(FAITestSpawnSetBase&)> Predicate |
Iterate through the list of spawn sets and execute Predicate on each. | FunctionalAITest.h | |
virtual void ForEachSpawnSet
(
TFunctionRef< void(const FAITestSpawnSetBase&)> Predicate |
Iterate through the list of spawn sets and execute Predicate on each in a const-correct way. | FunctionalAITest.h | |
FVector GetRandomizedLocation
(
const FVector& Location |
FunctionalAITest.h | ||
FAITestSpawnInfoBase * GetSpawnInfo
(
const int32 SpawnSetIndex, |
Return the SpawnInfo at SpawnInfoIndexof the SpawnSet at SpawnSetIndex. | FunctionalAITest.h | |
const FAITestSpawnInfoBase * GetSpawnInfo
(
const int32 SpawnSetIndex, |
Return the SpawnInfo at SpawnInfoIndexof the SpawnSet at SpawnSetIndex. Const-correct version. | FunctionalAITest.h | |
virtual const FAITestSpawnSetBase * GetSpawnSet
(
const int32 SpawnSetIndex |
Return the SpawnSet at this index of the SpawnSets array. Const-correct version. | FunctionalAITest.h | |
virtual FAITestSpawnSetBase * GetSpawnSet
(
const int32 SpawnSetIndex |
Return the SpawnSet at this index of the SpawnSets array. | FunctionalAITest.h | |
virtual bool IsOneOfSpawnedPawns
(
AActor* Actor |
FunctionalAITest.h |
|
|
virtual bool IsValidSpawnSetIndex
(
const int32 Index |
Return whether the index is valid in the SpawnSets array. | FunctionalAITest.h | |
virtual void RemoveSpawnSetIfPredicate
(
TFunctionRef< bool(FAITestSpawnSetBase&)> Predicate |
Iterate through the list of spawn sets and remove the spawn set if Predicate returns true. | FunctionalAITest.h | |
bool Spawn
(
const int32 SpawnSetIndex, |
Spawn this AI at this SpawnInfoIndex of the SpawnSetIndex spawn set. | FunctionalAITest.h |
Overridden from AFunctionalTest
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CleanUp () |
Called to clean up when tests is removed from the list of active tests after finishing execution. | FunctionalAITest.h | |
virtual void GatherRelevantActors
(
TArray< AActor* >& OutActors |
FunctionalAITest.h | ||
virtual FString GetAdditionalTestFinishedMessage
(
EFunctionalTestResult TestResult |
FunctionalAITest.h | ||
virtual FString GetReproString() |
FunctionalAITest.h | ||
virtual bool IsReady_Implementation() |
FunctionalAITest.h | ||
virtual void OnTimeout() |
FunctionalAITest.h | ||
virtual bool RunTest
(
const TArray< FString >& Params |
FunctionalAITest.h | ||
virtual void StartTest () |
Called once the IsReady() check for the test returns true. | FunctionalAITest.h | |
virtual void Tick
(
float DeltaSeconds |
FunctionalAITest.h | ||
virtual bool WantsToRunAgain() |
FunctionalAITest.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginPlay() |
FunctionalAITest.h | ||
void ClearPendingDelayedSpawns() |
FunctionalAITest.h | ||
bool IsNavMeshReady() |
FunctionalAITest.h | ||
void KillOffSpawnedPawns() |
FunctionalAITest.h | ||
void OnSpawningFailure() |
FunctionalAITest.h | ||
void StartSpawning() |
FunctionalAITest.h |