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

#include "AreaBoundary.h"

Inheritance diagram for BoundaryUnionBoundary:
AreaBoundary

Public Member Functions

 BoundaryUnionBoundary (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 ~BoundaryUnionBoundary ()
 
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

◆ BoundaryUnionBoundary()

BoundaryUnionBoundary::BoundaryUnionBoundary ( AreaBoundary const *  b1,
AreaBoundary const *  b2,
bool  isInverted = false 
)
97 :
98 AreaBoundary(isInverted), _b1(b1), _b2(b2)
99{
100 ASSERT(b1 && b2);
101}
#define ASSERT
Definition: Errors.h:68
Definition: AreaBoundary.h:24
AreaBoundary const *const _b1
Definition: AreaBoundary.h:164
AreaBoundary const *const _b2
Definition: AreaBoundary.h:165

References ASSERT.

◆ ~BoundaryUnionBoundary()

BoundaryUnionBoundary::~BoundaryUnionBoundary ( )
protectedvirtual
104{
105 delete _b1;
106 delete _b2;
107}

References _b1, and _b2.

Member Function Documentation

◆ IsWithinBoundaryArea()

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

Implements AreaBoundary.

110{
111 return (_b1->IsWithinBoundary(pos) || _b2->IsWithinBoundary(pos));
112}
bool IsWithinBoundary(Position const *pos) const
Definition: AreaBoundary.h:26

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

Member Data Documentation

◆ _b1

AreaBoundary const* const BoundaryUnionBoundary::_b1
private

◆ _b2

AreaBoundary const* const BoundaryUnionBoundary::_b2
private