TrinityCore
MovementForces Class Reference

#include <MovementInfo.h>

Public Types

using Container = std::vector< MovementForce >
 

Public Member Functions

Container const * GetForces () const
 
bool Add (MovementForce const &newForce)
 
bool Remove (ObjectGuid id)
 
float GetModMagnitude () const
 
void SetModMagnitude (float modMagnitude)
 
bool IsEmpty () const
 

Private Member Functions

Container::iterator FindMovementForce (ObjectGuid id)
 

Private Attributes

Container _forces
 
float _modMagnitude = 1.0f
 

Detailed Description

Definition at line 159 of file MovementInfo.h.

Member Typedef Documentation

◆ Container

Definition at line 162 of file MovementInfo.h.

Member Function Documentation

◆ Add()

bool MovementForces::Add ( MovementForce const &  newForce)
inline

Definition at line 165 of file MovementInfo.h.

+ Here is the call graph for this function:

◆ FindMovementForce()

Container::iterator MovementForces::FindMovementForce ( ObjectGuid  id)
inlineprivate

Definition at line 195 of file MovementInfo.h.

+ Here is the caller graph for this function:

◆ GetForces()

Container const * MovementForces::GetForces ( ) const
inline

Definition at line 164 of file MovementInfo.h.

◆ GetModMagnitude()

float MovementForces::GetModMagnitude ( ) const
inline

Definition at line 189 of file MovementInfo.h.

◆ IsEmpty()

bool MovementForces::IsEmpty ( ) const
inline

Definition at line 192 of file MovementInfo.h.

◆ Remove()

bool MovementForces::Remove ( ObjectGuid  id)
inline

Definition at line 177 of file MovementInfo.h.

+ Here is the call graph for this function:

◆ SetModMagnitude()

void MovementForces::SetModMagnitude ( float  modMagnitude)
inline

Definition at line 190 of file MovementInfo.h.

Member Data Documentation

◆ _forces

Container MovementForces::_forces
private

Definition at line 200 of file MovementInfo.h.

◆ _modMagnitude

float MovementForces::_modMagnitude = 1.0f
private

Definition at line 201 of file MovementInfo.h.


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