AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
MMapTargetData Class Reference

#include "UnitUtils.h"

Public Member Functions

 MMapTargetData ()=default
 
 MMapTargetData (uint32 endTime, const Position *o, const Position *t)
 
 MMapTargetData (const MMapTargetData &c)
 
 MMapTargetData (MMapTargetData &&)=default
 
MMapTargetDataoperator= (const MMapTargetData &)=default
 
MMapTargetDataoperator= (MMapTargetData &&)=default
 
bool PosChanged (const Position &o, const Position &t) const
 

Public Attributes

uint32 _endTime
 
Position _posOwner
 
Position _posTarget
 

Detailed Description

Constructor & Destructor Documentation

◆ MMapTargetData() [1/4]

MMapTargetData::MMapTargetData ( )
default

◆ MMapTargetData() [2/4]

MMapTargetData::MMapTargetData ( uint32  endTime,
const Position o,
const Position t 
)
inline
23 {
24 _endTime = endTime;
27 }
void Relocate(float x, float y)
Definition: Position.h:72
uint32 _endTime
Definition: UnitUtils.h:41
Position _posTarget
Definition: UnitUtils.h:43
Position _posOwner
Definition: UnitUtils.h:42

References _endTime, _posOwner, _posTarget, and Position::Relocate().

◆ MMapTargetData() [3/4]

MMapTargetData::MMapTargetData ( const MMapTargetData c)
inline

◆ MMapTargetData() [4/4]

MMapTargetData::MMapTargetData ( MMapTargetData &&  )
default

Member Function Documentation

◆ operator=() [1/2]

MMapTargetData & MMapTargetData::operator= ( const MMapTargetData )
default

◆ operator=() [2/2]

MMapTargetData & MMapTargetData::operator= ( MMapTargetData &&  )
default

◆ PosChanged()

bool MMapTargetData::PosChanged ( const Position o,
const Position t 
) const
inline
38 {
39 return _posOwner.GetExactDistSq(&o) > 0.5f * 0.5f || _posTarget.GetExactDistSq(&t) > 0.5f * 0.5f;
40 }
float GetExactDistSq(float x, float y, float z) const
Definition: Position.h:169

References _posOwner, _posTarget, and Position::GetExactDistSq().

Member Data Documentation

◆ _endTime

uint32 MMapTargetData::_endTime

Referenced by MMapTargetData().

◆ _posOwner

Position MMapTargetData::_posOwner

Referenced by MMapTargetData(), and PosChanged().

◆ _posTarget

Position MMapTargetData::_posTarget

Referenced by MMapTargetData(), and PosChanged().