Navigation
API > API/Plugins > API/Plugins/LearningAgents
Base class for objects which can be added to a ULearningAgentsManager to receive callbacks whenever agents are added, remove or reset.
| Name | ULearningAgentsManagerListener |
| Type | class |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgents/Public/LearningAgentsManagerListener.h |
| Include Path | #include "LearningAgentsManagerListener.h" |
Syntax
UCLASS (MinimalAPI, Abstract, BlueprintType, Blueprintable)
class ULearningAgentsManagerListener : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → ULearningAgentsManagerListener
Derived Classes
ULearningAgentsManagerListener derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ULearningAgentsManagerListener
(
const FObjectInitializer& ObjectInitializer |
These constructors/destructors are needed to make forward declarations happy. | LearningAgentsManagerListener.h | |
ULearningAgentsManagerListener
(
FVTableHelper& Helper |
LearningAgentsManagerListener.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~ULearningAgentsManagerListener() |
LearningAgentsManagerListener.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Gets the agent corresponding to the given id. | LearningAgentsManagerListener.h | ||
| -- Non-blueprint public interface -- | LearningAgentsManagerListener.h | ||
const ULearningAgentsVisualLoggerObject * GetOrAddVisualLoggerObject
(
const FName Name |
Either gets or adds a visual logger object for the given name | LearningAgentsManagerListener.h | |
bool HasAgent
(
const int32 AgentId |
Checks if the manager has an agent with the given agent id | LearningAgentsManagerListener.h | |
bool HasAgentManager() |
Checks if the object has an associated agent manager. | LearningAgentsManagerListener.h | |
bool IsSetup() |
Returns true if this object has been setup. Otherwise, false. | LearningAgentsManagerListener.h |
|
void OnAgentsAdded
(
const TArray< int32 >& AgentIds |
Called whenever agents are added to the manager. | LearningAgentsManagerListener.h |
|
void OnAgentsManagerTick
(
const TArray< int32 >& AgentIds, |
Called whenever the manager object is ticked. | LearningAgentsManagerListener.h |
|
void OnAgentsRemoved
(
const TArray< int32 >& AgentIds |
Called whenever agents are removed from the manager. | LearningAgentsManagerListener.h |
|
void OnAgentsReset
(
const TArray< int32 >& AgentIds |
Called whenever agents are reset on the manager. | LearningAgentsManagerListener.h |
|
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UObject * GetAgent
(
const int32 AgentId, |
-- Blueprint Convenience Functions -- | LearningAgentsManagerListener.h |
|
ULearningAgentsManager * GetAgentManager() |
Gets the agent manager associated with this object. | LearningAgentsManagerListener.h |
|
| Gets the agents associated with a set of ids from the manager. | LearningAgentsManagerListener.h |
|
|
void GetAllAgents
(
TArray< UObject* >& OutAgents, |
Gets all added agents from the manager. | LearningAgentsManagerListener.h |
|