Navigation
API > API/Plugins > API/Plugins/LearningAgents
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- ULearningAgentsManagerComponent
- ULearningAgentsController
- ULearningAgentsCritic
- ULearningAgentsInteractor
- ULearningAgentsPolicy
- ULearningAgentsRecorder
- ULearningAgentsTrainer
References
| Module | LearningAgents |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsManagerComponent.h |
| Include | #include "LearningAgentsManagerComponent.h" |
Syntax
UCLASS&40;Abstract, BlueprintType, Blueprintable&41;
class ULearningAgentsManagerComponent : public UActorComponent
Remarks
Base class for components which can be attached to an ALearningAgentsManager.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsSetup | True if this component has been setup. Otherwise, false. | |
| TArray< TObjectPtr< ULearningAgentsHelper > > | HelperObjects | The list of current helper objects. | |
| TObjectPtr< ALearningAgentsManager > | Manager | The associated manager this component is attached to. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
ULearningAgentsManagerComponent
(
const FObjectInitializer& ObjectInitializer |
These constructors/destructors are needed to make forward declarations happy. | ||
ULearningAgentsManagerComponent
(
FVTableHelper& Helper |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddHelper
(
TObjectPtr< ULearningAgentsHelper > Object |
Helpers | |
| void | AgentsAdded
(
const TArray< int32 >& AgentIds |
During this event, any additional logic required for when agents are added can be executed. | |
| void | AgentsRemoved
(
const TArray< int32 >& AgentIds |
During this event, any additional logic required for when agents are removed can be executed. | |
| void | AgentsReset
(
const TArray< int32 >& AgentIds |
During this event, any additional logic required for when agents are reset can be executed. | |
| UObject * | GetAgent
(
const int32 AgentId, |
Blueprint Convenience Functions | |
| const UObject * | GetAgent
(
const int32 AgentId |
Non-blueprint public interface | |
| UObject * | GetAgent
(
const int32 AgentId |
Gets the agent corresponding to the given id. | |
| ALearningAgentsManager * | GetAgentManager
(
const TSubclassOf< ALearningAgentsManager > AgentManagerClass |
Gets the agent manager associated with this component. | |
| ALearningAgentsManager * | Gets the associated agent manager assuming it exists. | ||
| const ALearningAgentsManager * | Gets the associated agent manager assuming it exists. | ||
| void | Gets the agents associated with a set of ids from the manager. | ||
| void | GetAllAgents
(
TArray< UObject* >& OutAgents, |
Gets all added agents from the manager. | |
| bool | HasAgent
(
const int32 AgentId |
Checks if the component has the given agent id | |
| bool | Checks if the component has an agent manager. | ||
| bool | IsSetup () |
Returns true if this component has been setup. Otherwise, false. | |
| void | OnAgentsAdded
(
const TArray< int32 >& AgentIds |
Called whenever agents are added to the parent ALearningAgentsManager object. | |
| void | OnAgentsRemoved
(
const TArray< int32 >& AgentIds |
Called whenever agents are removed from the parent ALearningAgentsManager object. | |
| void | OnAgentsReset
(
const TArray< int32 >& AgentIds |
Called whenever agents are reset on the parent ALearningAgentsManager object. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |