Skip to content

Struct FEnvironmentState

Struct FEnvironmentState

  • Defined in File EnvironmentState.h
struct FEnvironmentState

Source: Source/Schola/Training/Public/TrainingDataTypes/EnvironmentState.h

Dependencies: FAgentState

Environment state during training.

Contains states for all agents and the overall environment status.


Public Functions

SymbolDetails
MarkActiveMark the environment as active.
MarkCompletedMark the environment as completed.
IsEnvironmentActiveCheck if the environment is currently active.
IsEnvironmentCompletedCheck if the environment has completed.
FEnvironmentStateDefault constructor.

MarkActive

inline void MarkActive()

Mark the environment as active.

Attributes: inline

Source: Source/Schola/Training/Public/TrainingDataTypes/EnvironmentState.h

MarkCompleted

inline void MarkCompleted()

Mark the environment as completed.

Attributes: inline

Source: Source/Schola/Training/Public/TrainingDataTypes/EnvironmentState.h

IsEnvironmentActive

inline bool IsEnvironmentActive()

Check if the environment is currently active.

Returns:

True if the environment is active.

Attributes: inline

Source: Source/Schola/Training/Public/TrainingDataTypes/EnvironmentState.h

IsEnvironmentCompleted

inline bool IsEnvironmentCompleted()

Check if the environment has completed.

Returns:

True if the environment is completed.

Attributes: inline

Source: Source/Schola/Training/Public/TrainingDataTypes/EnvironmentState.h

FEnvironmentState

inline FEnvironmentState()

Default constructor.

Attributes: inline

Source: Source/Schola/Training/Public/TrainingDataTypes/EnvironmentState.h


Public Members

SymbolDetails
AgentStatesMap of agent IDs to their current states.
EnvironmentStatusThe current status of the environment (e.g.

AgentStates

TMap<FString, FAgentState> AgentStates

Map of agent IDs to their current states.


EnvironmentStatus

EEnvironmentStatus EnvironmentStatus = EEnvironmentStatus::Active

The current status of the environment (e.g.

Active or Completed).