TrinityCore
MotionMaster::DelayedAction Class Reference

#include <MotionMaster.h>

Public Member Functions

 DelayedAction (DelayedActionDefine &&action, DelayedActionValidator &&validator, MotionMasterDelayedActionType type)
 
 DelayedAction (DelayedActionDefine &&action, MotionMasterDelayedActionType type)
 
 ~DelayedAction ()
 
void Resolve ()
 

Public Attributes

DelayedActionDefine Action
 
DelayedActionValidator Validator
 
uint8 Type
 

Detailed Description

Definition at line 102 of file MotionMaster.h.

Constructor & Destructor Documentation

◆ DelayedAction() [1/2]

MotionMaster::DelayedAction::DelayedAction ( DelayedActionDefine &&  action,
DelayedActionValidator &&  validator,
MotionMasterDelayedActionType  type 
)
inlineexplicit

Definition at line 105 of file MotionMaster.h.

105: Action(std::move(action)), Validator(std::move(validator)), Type(type) { }
DelayedActionValidator Validator
Definition: MotionMaster.h:112
DelayedActionDefine Action
Definition: MotionMaster.h:111

◆ DelayedAction() [2/2]

MotionMaster::DelayedAction::DelayedAction ( DelayedActionDefine &&  action,
MotionMasterDelayedActionType  type 
)
inlineexplicit

Definition at line 106 of file MotionMaster.h.

106: Action(std::move(action)), Validator(EmptyValidator), Type(type) { }
static bool EmptyValidator()
Definition: MotionMaster.h:91

◆ ~DelayedAction()

MotionMaster::DelayedAction::~DelayedAction ( )
inline

Definition at line 107 of file MotionMaster.h.

107{ }

Member Function Documentation

◆ Resolve()

void MotionMaster::DelayedAction::Resolve ( )
inline

Definition at line 109 of file MotionMaster.h.

109{ if (Validator()) Action(); }

Member Data Documentation

◆ Action

DelayedActionDefine MotionMaster::DelayedAction::Action

Definition at line 111 of file MotionMaster.h.

◆ Type

uint8 MotionMaster::DelayedAction::Type

Definition at line 113 of file MotionMaster.h.

◆ Validator

DelayedActionValidator MotionMaster::DelayedAction::Validator

Definition at line 112 of file MotionMaster.h.


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