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

#include "AreaBoundary.h"

Inheritance diagram for BoundaryIntersectBoundary:
AreaBoundary

Public Member Functions

 BoundaryIntersectBoundary (AreaBoundary const *b1, AreaBoundary const *b2, 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

virtual ~BoundaryIntersectBoundary ()
 
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

AreaBoundary const *const _b1
 
AreaBoundary const *const _b2
 

Detailed Description

Constructor & Destructor Documentation

◆ BoundaryIntersectBoundary()

BoundaryIntersectBoundary::BoundaryIntersectBoundary ( AreaBoundary const *  b1,
AreaBoundary const *  b2,
bool  isInverted = false 
)
115 :
116 AreaBoundary(isInverted), _b1(b1), _b2(b2)
117{
118 ASSERT(b1 && b2);
119}
#define ASSERT
Definition: Errors.h:68
Definition: AreaBoundary.h:24
AreaBoundary const *const _b2
Definition: AreaBoundary.h:179
AreaBoundary const *const _b1
Definition: AreaBoundary.h:178

References ASSERT.

◆ ~BoundaryIntersectBoundary()

BoundaryIntersectBoundary::~BoundaryIntersectBoundary ( )
protectedvirtual
122{
123 delete _b1;
124 delete _b2;
125}

References _b1, and _b2.

Member Function Documentation

◆ IsWithinBoundaryArea()

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

Implements AreaBoundary.

128{
129 return (_b1->IsWithinBoundary(pos) && _b2->IsWithinBoundary(pos));
130}
bool IsWithinBoundary(Position const *pos) const
Definition: AreaBoundary.h:26

References _b1, _b2, and AreaBoundary::IsWithinBoundary().

Member Data Documentation

◆ _b1

AreaBoundary const* const BoundaryIntersectBoundary::_b1
private

◆ _b2

AreaBoundary const* const BoundaryIntersectBoundary::_b2
private