#include <C4Sector.h>
Public Member Functions | |
void | Init (int Wdt, int Hgt) |
void | Clear () |
C4LSector * | SectorAt (int ix, int iy) |
void | Add (C4Object *pObj, C4ObjectList *pMainList) |
void | Update (C4Object *pObj, C4ObjectList *pMainList) |
void | Remove (C4Object *pObj) |
void | ClearObjects () |
void | AssertObjectNotInList (C4Object *pObj) |
int | getShapeSum () const |
void | Dump () |
bool | CheckSort () |
Public Attributes | |
C4LSector * | Sectors |
int | PxWdt |
int | PxHgt |
int | Wdt |
int | Hgt |
int | Size |
C4LSector | SectorOut |
Definition at line 58 of file C4Sector.h.
void C4LSectors::Add | ( | C4Object * | pObj, |
C4ObjectList * | pMainList | ||
) |
Definition at line 91 of file C4Sector.cpp.
References C4ObjectList::Add(), C4Object::Area, Config, C4ConfigGeneral::DebugRec, C4LArea::DebugRec(), C4LArea::First(), C4Config::General, C4Object::GetX(), C4Object::GetY(), C4LArea::Next(), C4LSector::Objects, C4LSector::ObjectShapes, C4Object::old_x, C4Object::old_y, SectorAt(), Sectors, C4LArea::Set(), and C4ObjectList::stMain.
Referenced by C4GameObjects::Add(), Update(), and C4GameObjects::UpdatePosResort().
void C4LSectors::AssertObjectNotInList | ( | C4Object * | pObj | ) |
Definition at line 185 of file C4Sector.cpp.
References C4ObjectList::IsContained(), C4LSector::Objects, C4LSector::ObjectShapes, SectorOut, Sectors, and Size.
Referenced by C4Object::~C4Object().
bool C4LSectors::CheckSort | ( | ) |
Definition at line 216 of file C4Sector.cpp.
References C4ObjectList::CheckSort(), Objects, C4LSector::Objects, SectorOut, Sectors, and Size.
void C4LSectors::Clear | ( | ) |
Definition at line 74 of file C4Sector.cpp.
References C4LSector::Clear(), SectorOut, and Sectors.
Referenced by C4GameObjects::Default(), Init(), and C4GameObjects::~C4GameObjects().
void C4LSectors::ClearObjects | ( | ) |
Definition at line 225 of file C4Sector.cpp.
References C4LSector::ClearObjects(), SectorOut, Sectors, and Size.
Referenced by C4GameObjects::DeleteObjects().
void C4LSectors::Dump | ( | ) |
Definition at line 207 of file C4Sector.cpp.
References LogSilent(), mkArrayAdaptMap(), mkNamingAdapt(), mkParAdaptMaker(), Sectors, and Size.
int C4LSectors::getShapeSum | ( | ) | const |
Definition at line 199 of file C4Sector.cpp.
Referenced by C4ControlSyncCheck::Set().
void C4LSectors::Init | ( | int | Wdt, |
int | Hgt | ||
) |
Definition at line 58 of file C4Sector.cpp.
References C4LSectorHgt, C4LSectorWdt, Clear(), Hgt, C4LSector::Init(), PxHgt, PxWdt, SectorOut, Sectors, Size, and Wdt.
Referenced by C4GameObjects::Init().
void C4LSectors::Remove | ( | C4Object * | pObj | ) |
Definition at line 151 of file C4Sector.cpp.
References C4Object::Area, Config, C4ConfigGeneral::DebugRec, C4LArea::DebugRec(), C4LArea::First(), C4Config::General, C4Object::id, LogF(), C4LArea::Next(), C4PropListNumbered::Number, C4LSector::Objects, C4LSector::ObjectShapes, C4Object::old_x, C4Object::old_y, C4ObjectList::Remove(), SectorAt(), SectorOut, Sectors, Size, and C4ID::ToString().
Referenced by C4GameObjects::Remove(), and C4GameObjects::UpdatePosResort().
C4LSector * C4LSectors::SectorAt | ( | int | ix, |
int | iy | ||
) |
Definition at line 82 of file C4Sector.cpp.
References C4LSectorHgt, C4LSectorWdt, PxHgt, PxWdt, SectorOut, Sectors, and Wdt.
Referenced by Add(), Remove(), C4LArea::Set(), and Update().
void C4LSectors::Update | ( | C4Object * | pObj, |
C4ObjectList * | pMainList | ||
) |
Definition at line 109 of file C4Sector.cpp.
References C4ObjectList::Add(), Add(), C4Object::Area, Config, C4LArea::Contains(), C4ConfigGeneral::DebugRec, C4LArea::DebugRec(), C4LArea::First(), C4Config::General, C4Object::GetX(), C4Object::GetY(), C4LArea::IsNull(), C4LArea::Next(), C4LSector::Objects, C4LSector::ObjectShapes, C4Object::old_x, C4Object::old_y, C4ObjectList::Remove(), SectorAt(), Sectors, and C4ObjectList::stMain.
Referenced by C4GameObjects::UpdatePos().
int C4LSectors::Hgt |
Definition at line 63 of file C4Sector.h.
Referenced by Init().
int C4LSectors::PxHgt |
Definition at line 62 of file C4Sector.h.
Referenced by Init(), SectorAt(), and C4LArea::Set().
int C4LSectors::PxWdt |
Definition at line 62 of file C4Sector.h.
Referenced by Init(), SectorAt(), and C4LArea::Set().
C4LSector C4LSectors::SectorOut |
Definition at line 65 of file C4Sector.h.
Referenced by AssertObjectNotInList(), CheckSort(), Clear(), ClearObjects(), Init(), Remove(), SectorAt(), and C4LArea::Set().
C4LSector* C4LSectors::Sectors |
Definition at line 61 of file C4Sector.h.
Referenced by Add(), AssertObjectNotInList(), CheckSort(), Clear(), ClearObjects(), Dump(), getShapeSum(), Init(), Remove(), SectorAt(), and Update().
int C4LSectors::Size |
Definition at line 63 of file C4Sector.h.
Referenced by AssertObjectNotInList(), CheckSort(), ClearObjects(), Dump(), getShapeSum(), Init(), and Remove().
int C4LSectors::Wdt |
Definition at line 63 of file C4Sector.h.
Referenced by Init(), SectorAt(), and C4LArea::Set().