ADynamicScholaEnvironment
class ADynamicScholaEnvironment : public AAbstractScholaEnvironment
Dependencies: AAbstractScholaEnvironment, FDynamicAgentStruct, FTrainerAgentPair
Inherits from: public AAbstractScholaEnvironment
Subclassed by: ABlueprintDynamicScholaEnvironment
Public Interface
Public Functions:
InternalRegisterAgents
virtual void InternalRegisterAgents(TArray<FTrainerAgentPair> &OutAgentTrainerPairs)
Register a list of agents with the environment, from a list of pawns with associated agents.
Called after the environment is initialized.
Parameters:
OutAgentTrainerPairs
(TArray<FTrainerAgentPair> &
) – [out] An array of Trainers and their controlled Pawns, representing all agents in the environment.
Attributes: virtual
Source: Schola/Source/Schola/Public/Environment/DynamicEnvironment.h
(line 41, column 14)
Implementation: Schola/Source/Schola/Private/Environment/DynamicEnvironment.cpp
(lines 5-14)
RegisterAgents
inline virtual void RegisterAgents(TArray<FDynamicAgentStruct> &OutAgentSpawnStructs)
Parameters:
Name | Type | Default |
---|---|---|
OutAgentSpawnStructs | TArray<FDynamicAgentStruct> & | “ |
Attributes: inline
, virtual
Source: Schola/Source/Schola/Public/Environment/DynamicEnvironment.h
(line 44, column 14)
SpawnAgent
APawn * SpawnAgent(int AgentId, FTransform InAgentPosition)
Parameters:
Name | Type | Default |
---|---|---|
AgentId | int | “ |
InAgentPosition | FTransform | “ |
Returns: APawn *
Source: Schola/Source/Schola/Public/Environment/DynamicEnvironment.h
(line 47, column 7)
Implementation: Schola/Source/Schola/Private/Environment/DynamicEnvironment.cpp
(lines 16-23)
Used By: ABlueprintDynamicScholaEnvironment
Source: Schola/Source/Schola/Public/Environment/DynamicEnvironment.h
(line 34, column 1)