Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UBlueprintFunctionLibrary
- ULearningAgentsCompletions
References
| Module | LearningAgentsTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsCompletions.h |
| Include | #include "LearningAgentsCompletions.h" |
Syntax
UCLASS (BlueprintType)
class ULearningAgentsCompletions : public UBlueprintFunctionLibrary
Functions
| Type | Name | Description | |
|---|---|---|---|
| ELearningAgentsCompletion | Returns a termination if both inputs are a termination, otherwise a truncation if both inputs are either a truncation or termination, otherwise returns running. | ||
| ELearningAgentsCompletion | CompletionNot
(
ELearningAgentsCompletion A, |
Returns running if the input A is either a termination or truncation, otherwise returns the completion specified by NotRunningType | |
| ELearningAgentsCompletion | Returns a termination if either input is a termination, otherwise a truncation if either input is a truncation, otherwise returns running. | ||
| bool | IsCompletionCompleted
(
const ELearningAgentsCompletion Completion |
Returns true if a completion is either truncated or terminated, otherwise false. | |
| bool | IsCompletionRunning
(
const ELearningAgentsCompletion Completion |
Returns true if a completion is running, otherwise false. | |
| bool | IsCompletionTermination
(
const ELearningAgentsCompletion Completion |
Returns true if a completion is terminated, otherwise false. | |
| bool | IsCompletionTruncation
(
const ELearningAgentsCompletion Completion |
Returns true if a completion is truncated, otherwise false. | |
| ELearningAgentsCompletion | MakeCompletion
(
const ELearningAgentsCompletion CompletionType, |
Make a completion. | |
| ELearningAgentsCompletion | MakeCompletionOnCondition
(
const bool bCondition, |
Make a completion based on some condition. | |
| ELearningAgentsCompletion | MakeCompletionOnEpisodeStepsRecorded
(
const int32 EpisodeSteps, |
Make a completion when the number of episode steps recorded exceeds some threshold. | |
| ELearningAgentsCompletion | MakeCompletionOnLocationDifferenceAboveThreshold
(
const FVector LocationA, |
Make a completion when the distance between two locations is above some threshold. | |
| ELearningAgentsCompletion | MakeCompletionOnLocationDifferenceBelowThreshold
(
const FVector LocationA, |
Make a completion when the distance between two locations is below some threshold. | |
| ELearningAgentsCompletion | MakeCompletionOnLocationOutsideBounds
(
const FVector Location, |
Make a completion when a location moves outside of sound bounds. | |
| ELearningAgentsCompletion | MakeCompletionOnTimeElapsed
(
const float Time, |
Make a completion when a time goes above a threshold. |