#include <C4Sector.h>
Public Member Functions | |
C4LArea () | |
C4LArea (C4LSectors *pSectors, int ix, int iy, int iwdt, int ihgt) | |
C4LArea (C4LSectors *pSectors, const C4Rect &rect) | |
C4LArea (C4LSectors *pSectors, C4Object *pObj) | |
void | Clear () |
bool | operator== (const C4LArea &Area) const |
bool | IsNull () const |
void | Set (C4LSectors *pSectors, const C4Rect &rect) |
void | Set (C4LSectors *pSectors, C4Object *pObj) |
C4LSector * | First () const |
C4LSector * | Next (C4LSector *pPrev) const |
bool | Contains (C4LSector *pSct) const |
C4ObjectList * | FirstObjects (C4LSector **ppSct) |
C4ObjectList * | NextObjects (C4ObjectList *pPrev, C4LSector **ppSct) |
C4ObjectList * | FirstObjectShapes (C4LSector **ppSct) |
C4ObjectList * | NextObjectShapes (C4ObjectList *pPrev, C4LSector **ppSct) |
void | DebugRec (class C4Object *pObj, char cMarker) |
Public Attributes | |
C4LSector * | pFirst |
int | xL |
int | yL |
int | dpitch |
C4LSector * | pOut |
Definition at line 86 of file C4Sector.h.
|
inline |
Definition at line 93 of file C4Sector.h.
References Clear().
|
inline |
Definition at line 94 of file C4Sector.h.
References Set().
|
inline |
Definition at line 96 of file C4Sector.h.
References Set().
|
inline |
Definition at line 99 of file C4Sector.h.
References Set().
|
inline |
Definition at line 102 of file C4Sector.h.
Referenced by C4LArea().
bool C4LArea::Contains | ( | C4LSector * | pSct | ) | const |
Definition at line 291 of file C4Sector.cpp.
References pFirst, pOut, C4LSector::x, xL, C4LSector::y, and yL.
Referenced by C4LSectors::Update().
void C4LArea::DebugRec | ( | class C4Object * | pObj, |
char | cMarker | ||
) |
Definition at line 331 of file C4Sector.cpp.
References AddDbgRec(), C4RCArea::dpitch, dpitch, C4PropListNumbered::Number, C4RCArea::obj, C4RCArea::op, C4RCArea::out, pFirst, pOut, RCT_Area, C4LSector::x, C4RCArea::x1, C4RCArea::xL, xL, C4RCArea::y1, C4RCArea::yL, and yL.
Referenced by C4LSectors::Add(), C4LSectors::Remove(), and C4LSectors::Update().
|
inline |
Definition at line 111 of file C4Sector.h.
References pFirst.
Referenced by C4LSectors::Add(), NextObjects(), NextObjectShapes(), C4LSectors::Remove(), and C4LSectors::Update().
|
inline |
Definition at line 118 of file C4Sector.h.
References NextObjects().
Referenced by C4FindObject::Count(), C4GameObjects::CrossCheck(), C4FindObject::Find(), and C4FindObject::FindMany().
|
inline |
Definition at line 122 of file C4Sector.h.
References NextObjectShapes().
Referenced by C4FindObject::Count(), C4FindObject::Find(), C4Game::FindConstuctionSiteBlock(), C4FindObject::FindMany(), and C4SolidMask::Remove().
|
inline |
Definition at line 106 of file C4Sector.h.
References pFirst.
Referenced by C4LSectors::Update().
Definition at line 276 of file C4Sector.cpp.
References dpitch, pOut, C4LSector::x, xL, C4LSector::y, and yL.
Referenced by C4LSectors::Add(), C4FindObject::Count(), C4FindObject::FindMany(), NextObjects(), NextObjectShapes(), C4LSectors::Remove(), and C4LSectors::Update().
C4ObjectList * C4LArea::NextObjects | ( | C4ObjectList * | pPrev, |
C4LSector ** | ppSct | ||
) |
Definition at line 303 of file C4Sector.cpp.
References First(), and Next().
Referenced by C4FindObject::Count(), C4GameObjects::CrossCheck(), C4FindObject::Find(), C4FindObject::FindMany(), and FirstObjects().
C4ObjectList * C4LArea::NextObjectShapes | ( | C4ObjectList * | pPrev, |
C4LSector ** | ppSct | ||
) |
Definition at line 317 of file C4Sector.cpp.
References First(), and Next().
Referenced by C4FindObject::Count(), C4FindObject::Find(), C4Game::FindConstuctionSiteBlock(), C4FindObject::FindMany(), FirstObjectShapes(), and C4SolidMask::Remove().
bool C4LArea::operator== | ( | const C4LArea & | Area | ) | const |
void C4LArea::Set | ( | C4LSectors * | pSectors, |
C4Object * | pObj | ||
) |
Definition at line 270 of file C4Sector.cpp.
References C4Object::Height(), C4Object::Left(), Set(), C4Object::Top(), and C4Object::Width().
void C4LArea::Set | ( | C4LSectors * | pSectors, |
const C4Rect & | rect | ||
) |
Definition at line 244 of file C4Sector.cpp.
References C4LSectorHgt, C4LSectorWdt, C4Rect::Contains(), dpitch, pFirst, pOut, C4LSectors::PxHgt, C4LSectors::PxWdt, C4LSectors::SectorAt(), C4LSectors::SectorOut, C4LSectors::Wdt, xL, and yL.
Referenced by C4LSectors::Add(), C4LArea(), and Set().
int C4LArea::dpitch |
Definition at line 90 of file C4Sector.h.
Referenced by DebugRec(), Next(), and Set().
C4LSector* C4LArea::pFirst |
Definition at line 89 of file C4Sector.h.
Referenced by Clear(), Contains(), DebugRec(), First(), IsNull(), operator==(), and Set().
C4LSector* C4LArea::pOut |
Definition at line 91 of file C4Sector.h.
Referenced by Clear(), Contains(), DebugRec(), Next(), operator==(), and Set().
int C4LArea::xL |
Definition at line 90 of file C4Sector.h.
Referenced by Contains(), DebugRec(), Next(), operator==(), and Set().
int C4LArea::yL |
Definition at line 90 of file C4Sector.h.
Referenced by Contains(), DebugRec(), Next(), operator==(), and Set().