QuestWeaver
A procedural quest generator
weave::WorldModelAction Class Reference

Contains change information for a WorldModel entity. More...

#include <WorldModelAction.h>

Public Member Functions

 WorldModelAction ()
 Creates an invalid default action. More...
 
 WorldModelAction (const WorldActionType &actionType, const std::shared_ptr< WorldEntity > entity)
 
 WorldModelAction (const WorldActionType &actionType, const std::shared_ptr< WorldEntity > entity, const MetaData metaData)
 
WorldActionType GetActionType () const noexcept
 Returns the type of change produced by this action. More...
 
std::shared_ptr< WorldEntityGetEntity () const noexcept
 Returns the entity being changed in the world model. More...
 
MetaData GetMetaData () const noexcept
 Returns the new metadata for the given entity. More...
 

Detailed Description

Contains change information for a WorldModel entity.

Definition at line 33 of file WorldModelAction.h.

Constructor & Destructor Documentation

weave::WorldModelAction::WorldModelAction ( )
inline

Creates an invalid default action.

Definition at line 39 of file WorldModelAction.h.

weave::WorldModelAction::WorldModelAction ( const WorldActionType actionType,
const std::shared_ptr< WorldEntity entity 
)
inline
Parameters
actionTypeThe type of change produced by this action
entityThe entity being changed in the world model

Definition at line 46 of file WorldModelAction.h.

weave::WorldModelAction::WorldModelAction ( const WorldActionType actionType,
const std::shared_ptr< WorldEntity entity,
const MetaData  metaData 
)
inline
Parameters
actionTypeThe type of change produced by this action
entityThe entity being changed in the world model
metaDataThe new metadata for the given entity. If the actionType is KEEP or DELETE, then this data is not used by the world model.

Definition at line 56 of file WorldModelAction.h.

Member Function Documentation

WorldActionType weave::WorldModelAction::GetActionType ( ) const
noexcept

Returns the type of change produced by this action.

std::shared_ptr<WorldEntity> weave::WorldModelAction::GetEntity ( ) const
noexcept

Returns the entity being changed in the world model.

MetaData weave::WorldModelAction::GetMetaData ( ) const
noexcept

Returns the new metadata for the given entity.

If the actionType is KEEP or DELETE, then this data is not used by the world model.


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