TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
AreaBoundary Class Referenceabstract

#include <AreaBoundary.h>

Classes

struct  DoublePosition
 

Public Types

enum  BoundaryType {
  BOUNDARY_RECTANGLE, BOUNDARY_CIRCLE, BOUNDARY_ELLIPSE, BOUNDARY_TRIANGLE,
  BOUNDARY_PARALLELOGRAM, BOUNDARY_Z_RANGE
}
 

Public Member Functions

virtual ~AreaBoundary ()
 
BoundaryType GetBoundaryType () const
 
bool IsWithinBoundary (const Position *pos) const
 

Protected Member Functions

 AreaBoundary (BoundaryType bType, bool isInverted)
 
virtual bool IsWithinBoundaryArea (const Position *pos) const =0
 

Protected Attributes

const BoundaryType m_boundaryType
 
bool m_isInvertedBoundary
 

Member Enumeration Documentation

Enumerator
BOUNDARY_RECTANGLE 
BOUNDARY_CIRCLE 
BOUNDARY_ELLIPSE 
BOUNDARY_TRIANGLE 
BOUNDARY_PARALLELOGRAM 
BOUNDARY_Z_RANGE 
27  {
28  BOUNDARY_RECTANGLE, // Rectangle aligned with the coordinate axis
34  };
Definition: AreaBoundary.h:28
Definition: AreaBoundary.h:33
Definition: AreaBoundary.h:32
Definition: AreaBoundary.h:30
Definition: AreaBoundary.h:31
Definition: AreaBoundary.h:29

Constructor & Destructor Documentation

virtual AreaBoundary::~AreaBoundary ( )
inlinevirtual
35 { }
AreaBoundary::AreaBoundary ( BoundaryType  bType,
bool  isInverted 
)
inlineprotected
63 : m_boundaryType(bType), m_isInvertedBoundary(isInverted) { }
bool m_isInvertedBoundary
Definition: AreaBoundary.h:66
const BoundaryType m_boundaryType
Definition: AreaBoundary.h:65

Member Function Documentation

BoundaryType AreaBoundary::GetBoundaryType ( ) const
inline
36 { return m_boundaryType; }
const BoundaryType m_boundaryType
Definition: AreaBoundary.h:65
bool AreaBoundary::IsWithinBoundary ( const Position pos) const
inline
37 { return (IsWithinBoundaryArea(pos) != m_isInvertedBoundary); }
bool m_isInvertedBoundary
Definition: AreaBoundary.h:66
virtual bool IsWithinBoundaryArea(const Position *pos) const =0
virtual bool AreaBoundary::IsWithinBoundaryArea ( const Position pos) const
protectedpure virtual

Member Data Documentation

const BoundaryType AreaBoundary::m_boundaryType
protected
bool AreaBoundary::m_isInvertedBoundary
protected

The documentation for this class was generated from the following file: