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

#include "AreaBoundary.h"

Inheritance diagram for ZRangeBoundary:
AreaBoundary

Public Member Functions

 ZRangeBoundary (float minZ, float maxZ, bool isInverted=false)
 
- Public Member Functions inherited from AreaBoundary
bool IsWithinBoundary (Position const *pos) const
 
bool IsWithinBoundary (Position const &pos) const
 
virtual ~AreaBoundary ()
 

Protected Member Functions

bool IsWithinBoundaryArea (Position const *pos) const override
 
- Protected Member Functions inherited from AreaBoundary
 AreaBoundary (bool isInverted)
 
virtual bool IsWithinBoundaryArea (Position const *pos) const =0
 

Private Attributes

float const _minZ
 
float const _maxZ
 

Detailed Description

Constructor & Destructor Documentation

◆ ZRangeBoundary()

ZRangeBoundary::ZRangeBoundary ( float  minZ,
float  maxZ,
bool  isInverted = false 
)
89 :
90 AreaBoundary(isInverted), _minZ(minZ), _maxZ(maxZ) { }
Definition: AreaBoundary.h:24
float const _maxZ
Definition: AreaBoundary.h:151
float const _minZ
Definition: AreaBoundary.h:151

Member Function Documentation

◆ IsWithinBoundaryArea()

bool ZRangeBoundary::IsWithinBoundaryArea ( Position const *  pos) const
overrideprotectedvirtual

Implements AreaBoundary.

92{
93 return (_minZ <= pos->GetPositionZ() && pos->GetPositionZ() <= _maxZ);
94}

References _maxZ, and Position::GetPositionZ().

Member Data Documentation

◆ _maxZ

float const ZRangeBoundary::_maxZ
private

Referenced by IsWithinBoundaryArea().

◆ _minZ

float const ZRangeBoundary::_minZ
private