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

#include "Unit.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
1249 {
1250 _endTime = endTime;
1253 }
void Relocate(float x, float y)
Definition: Position.h:73
uint32 _endTime
Definition: Unit.h:1267
Position _posTarget
Definition: Unit.h:1269
Position _posOwner
Definition: Unit.h:1268

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
1264 {
1265 return _posOwner.GetExactDistSq(&o) > 0.5f * 0.5f || _posTarget.GetExactDistSq(&t) > 0.5f * 0.5f;
1266 }
float GetExactDistSq(float x, float y, float z) const
Definition: Position.h:170

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().