MapArea Class Reference

#include <mapstructures.h>

List of all members.


Detailed Description

Note:
We assume that position + size is not greater then maximal value of mapel_t.

Public Member Functions

 MapArea ()
 MapArea (mapel_t map_x, mapel_t map_y, mapel_t map_w, mapel_t map_h)
void Clear ()
void Set (mapel_t map_x, mapel_t map_y, mapel_t map_w, mapel_t map_h)
bool operator== (const MapArea &area) const
bool operator!= (const MapArea &area) const
bool IsInArea (const MapPosition2D &position) const
bool IsIntersectingArea (const MapPosition2D &position, const MapSize &size) const

Public Attributes

mapel_t x
mapel_t y
mapel_t width
mapel_t height

Constructor & Destructor Documentation

MapArea::MapArea (  )  [inline]

MapArea::MapArea ( mapel_t  map_x,
mapel_t  map_y,
mapel_t  map_w,
mapel_t  map_h 
) [inline]


Member Function Documentation

void MapArea::Clear (  )  [inline]

void MapArea::Set ( mapel_t  map_x,
mapel_t  map_y,
mapel_t  map_w,
mapel_t  map_h 
) [inline]

bool MapArea::operator== ( const MapArea area  )  const [inline]

bool MapArea::operator!= ( const MapArea area  )  const [inline]

bool MapArea::IsInArea ( const MapPosition2D position  )  const [inline]

bool MapArea::IsIntersectingArea ( const MapPosition2D position,
const MapSize size 
) const [inline]


Member Data Documentation

mapel_t MapArea::x

mapel_t MapArea::y

mapel_t MapArea::width

mapel_t MapArea::height


The documentation for this class was generated from the following file:
Generated on Sat Oct 20 14:47:32 2007 for Dark Oberon by  doxygen 1.5.3