UAbstractInteractor
class UAbstractInteractor : public UObjectAn abstract class objects that can interact with the environment, either by observing or acting.
Inherits from: public UObject
Subclassed by: UAbstractObserver, UActuator
Public Interface
Public Functions:
TryGetOwner
AActor * TryGetOwner() const constTry and Get the Actor this Observer is attached to, may return nullptr.
Returns: the Agent this Observer is attached to in, may return nullptr
Returns: AActor *
Attributes: const
Source: Schola/Source/Schola/Public/Common/AbstractInteractor.h (line 39, column 8)
Implementation: Schola/Source/Schola/Private/Common/AbstractInteractor.cpp (lines 5-57)
GetLabel
FString GetLabel() const constGet an non-unique label of this Interactor, based on the class of the object containing the interactor.
Returns: the collected ID
Returns: FString
Attributes: const
Source: Schola/Source/Schola/Public/Common/AbstractInteractor.h (line 46, column 9)
Implementation: Schola/Source/Schola/Private/Common/AbstractInteractor.cpp (lines 86-107)
GetId
virtual FString GetId() const constGet the label of this Interactor.
Returns: the collected ID
Returns: FString
Attributes: const, virtual
Source: Schola/Source/Schola/Public/Common/AbstractInteractor.h (line 53, column 17)
Implementation: Schola/Source/Schola/Private/Common/AbstractInteractor.cpp (lines 109-120)
GetSanitizedId
virtual FString GetSanitizedId() const constGet the label of this Interactor, sanitized to remove characters that can cause issues (e.g.
’.’
Returns: The ID with invalid characters replaced or removed
Returns: FString
Attributes: const, virtual
Source: Schola/Source/Schola/Public/Common/AbstractInteractor.h (line 60, column 17)
Implementation: Schola/Source/Schola/Private/Common/AbstractInteractor.cpp (lines 122-127)
GetLocation
UObject * GetLocation() const constGet an Outer for this object that is unique w.r.t the agent for getting the ID.
Returns: a UObject ptr to an owning object in the heirarchy
Note: If the UObject is inside a Controller returns the controller. If the UObject is inside a Component return the owner of the component.
Returns: UObject *
Attributes: const
Source: Schola/Source/Schola/Public/Common/AbstractInteractor.h (line 68, column 9)
Implementation: Schola/Source/Schola/Private/Common/AbstractInteractor.cpp (lines 59-84)
Reset
inline virtual void Reset()Internal function called when an episode ends, Does any preparation required for the next episode.
Attributes: inline, virtual
Source: Schola/Source/Schola/Public/Common/AbstractInteractor.h (line 73, column 14)
Public Members:
bool bUseCustomId
bool bUseCustomId = = falseReplace the Autogenerated ID from GenerateID with the String ID here.
Source: Schola/Source/Schola/Public/Common/AbstractInteractor.h (line 28, column 6)
FString CustomId
FString CustomId = = FString()Replace the Autogenerated ID from GenerateID with the String ID here.
Source: Schola/Source/Schola/Public/Common/AbstractInteractor.h (line 32, column 9)
Protected Interface
Protected Functions:
GenerateId
virtual FString GenerateId() const constReturns: FString
Attributes: const, virtual
Source: Schola/Source/Schola/Public/Common/AbstractInteractor.h (line 22, column 17)
Implementation: Schola/Source/Schola/Private/Common/AbstractInteractor.cpp (lines 129-132)
Used By: UAbstractObserver, UActuator
Source: Schola/Source/Schola/Public/Common/AbstractInteractor.h (line 16, column 1)