Raymond Maarloeve
Loading...
Searching...
No Matches
CurrentEnvironment Class Reference

Represents a single current environment option of an NPC, including the decision to be made and the associated game object. More...

Public Member Functions

 CurrentEnvironment (IDecision decision, GameObject associatedGameObject)
 Initializes a new instance of the CurrentEnvironment class.
 
CurrentEnvironmentDTO ToDTO (NPC npc)
 Converts the current environment to a CurrentEnvironmentDTO DTO representation. /// This DTO includes the decision's pretty name and the distance to the associated game object from the NPC's position. The distance is calculated as the Euclidean distance between the NPC's position and the associated game object's position. If the associated game object is null, the distance is set to 0.
 

Public Attributes

IDecision decision
 The decision to be made in this action.
 
GameObject associatedGameObject
 The game object associated with this environment option. This could be an object that the NPC interacts with or observes, such as a door, item, or another character.
 

Detailed Description

Represents a single current environment option of an NPC, including the decision to be made and the associated game object.

Constructor & Destructor Documentation

◆ CurrentEnvironment()

CurrentEnvironment.CurrentEnvironment ( IDecision  decision,
GameObject  associatedGameObject 
)

Initializes a new instance of the CurrentEnvironment class.

Parameters
decision
associatedGameObject

Member Function Documentation

◆ ToDTO()

CurrentEnvironmentDTO CurrentEnvironment.ToDTO ( NPC  npc)

Converts the current environment to a CurrentEnvironmentDTO DTO representation. /// This DTO includes the decision's pretty name and the distance to the associated game object from the NPC's position. The distance is calculated as the Euclidean distance between the NPC's position and the associated game object's position. If the associated game object is null, the distance is set to 0.

Parameters
npcOwner of this object
Returns
CurrentEnvironmentDTO object

Member Data Documentation

◆ associatedGameObject

GameObject CurrentEnvironment.associatedGameObject

The game object associated with this environment option. This could be an object that the NPC interacts with or observes, such as a door, item, or another character.

◆ decision

IDecision CurrentEnvironment.decision

The decision to be made in this action.


The documentation for this class was generated from the following file: