Skip to content

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:

NameTypeDefault
OutAgentSpawnStructsTArray<FDynamicAgentStruct> &

Attributes: inline, virtual

Source: Schola/Source/Schola/Public/Environment/DynamicEnvironment.h (line 44, column 14)

SpawnAgent

APawn * SpawnAgent(int AgentId, FTransform InAgentPosition)

Parameters:

NameTypeDefault
AgentIdint
InAgentPositionFTransform

Returns: APawn &#42;

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)