YourCityInvadedByAliens
Documentation for code of the game
Public Member Functions | Private Attributes | List of all members
YRect Class Reference

#include <yrect.h>

Public Member Functions

 YRect ()
 
 YRect (int nXMin, int nXMax, int nYMin, int nYMax)
 
const int & getMinX () const
 
const int & getMaxX () const
 
const int & getMinY () const
 
const int & getMaxY () const
 
bool hasIntersection (const YRect &rect) const
 
bool hasPos (const YPos &other) const
 
YRect operator- (const YPos &other) const
 

Private Attributes

int m_nMinX
 
int m_nMaxX
 
int m_nMinY
 
int m_nMaxY
 

Constructor & Destructor Documentation

◆ YRect() [1/2]

YRect::YRect ( )

◆ YRect() [2/2]

YRect::YRect ( int  nXMin,
int  nXMax,
int  nYMin,
int  nYMax 
)

Member Function Documentation

◆ getMaxX()

const int & YRect::getMaxX ( ) const

◆ getMaxY()

const int & YRect::getMaxY ( ) const

◆ getMinX()

const int & YRect::getMinX ( ) const

◆ getMinY()

const int & YRect::getMinY ( ) const

◆ hasIntersection()

bool YRect::hasIntersection ( const YRect rect) const

◆ hasPos()

bool YRect::hasPos ( const YPos other) const

◆ operator-()

YRect YRect::operator- ( const YPos other) const

Member Data Documentation

◆ m_nMaxX

int YRect::m_nMaxX
private

◆ m_nMaxY

int YRect::m_nMaxY
private

◆ m_nMinX

int YRect::m_nMinX
private

◆ m_nMinY

int YRect::m_nMinY
private

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