Public Member Functions | |
C4PathFinderRay () | |
~C4PathFinderRay () | |
void | Clear () |
void | Default () |
Protected Member Functions | |
void | SetCompletePath () |
void | TurnAttach (int32_t &rAttach, int32_t iDirection) |
void | CrawlToAttach (int32_t &rX, int32_t &rY, int32_t iAttach) |
void | CrawlByAttach (int32_t &rX, int32_t &rY, int32_t iAttach, int32_t iDirection) |
void | Draw (C4TargetFacet &cgo) |
int32_t | FindCrawlAttachDiagonal (int32_t iX, int32_t iY, int32_t iDirection) |
int32_t | FindCrawlAttach (int32_t iX, int32_t iY) |
bool | IsCrawlAttach (int32_t iX, int32_t iY, int32_t iAttach) |
bool | CheckBackRayShorten () |
bool | Execute () |
bool | CrawlTargetFree (int32_t iX, int32_t iY, int32_t iAttach, int32_t iDirection) |
bool | PointFree (int32_t iX, int32_t iY) |
bool | Crawl () |
bool | PathFree (int32_t &rX, int32_t &rY, int32_t iToX, int32_t iToY, C4TransferZone **ppZone=nullptr) |
Protected Attributes | |
int32_t | Status |
int32_t | X |
int32_t | Y |
int32_t | X2 |
int32_t | Y2 |
int32_t | TargetX |
int32_t | TargetY |
int32_t | CrawlStartX |
int32_t | CrawlStartY |
int32_t | CrawlAttach |
int32_t | CrawlLength |
int32_t | CrawlStartAttach |
int32_t | Direction |
int32_t | Depth |
C4TransferZone * | UseZone |
C4PathFinderRay * | From |
C4PathFinderRay * | Next |
C4PathFinder * | pPathFinder |
Friends | |
class | C4PathFinder |
Definition at line 74 of file C4PathFinder.cpp.
C4PathFinderRay::C4PathFinderRay | ( | ) |
Definition at line 109 of file C4PathFinder.cpp.
References Default().
C4PathFinderRay::~C4PathFinderRay | ( | ) |
Definition at line 114 of file C4PathFinder.cpp.
References Clear().
|
protected |
Definition at line 508 of file C4PathFinder.cpp.
References C4PF_Ray_Deleted, From, PathFree(), Status, UseZone, X, X2, Y, and Y2.
Referenced by SetCompletePath().
void C4PathFinderRay::Clear | ( | ) |
Definition at line 132 of file C4PathFinder.cpp.
Referenced by ~C4PathFinderRay().
|
protected |
Definition at line 366 of file C4PathFinder.cpp.
References CrawlAttach, CrawlByAttach(), CrawlLength, CrawlTargetFree(), CrawlToAttach(), Direction, IsCrawlAttach(), TurnAttach(), X2, and Y2.
Referenced by Execute().
|
protected |
Definition at line 435 of file C4PathFinder.cpp.
References C4PF_Crawl_Bottom, C4PF_Crawl_Left, C4PF_Crawl_Right, and C4PF_Crawl_Top.
Referenced by Crawl(), and CrawlTargetFree().
|
protected |
Definition at line 429 of file C4PathFinder.cpp.
References CrawlByAttach(), and PointFree().
Referenced by Crawl().
|
protected |
Definition at line 462 of file C4PathFinder.cpp.
References C4PF_Crawl_Bottom, C4PF_Crawl_Left, C4PF_Crawl_Right, and C4PF_Crawl_Top.
Referenced by Crawl(), Draw(), and IsCrawlAttach().
void C4PathFinderRay::Default | ( | ) |
Definition at line 119 of file C4PathFinder.cpp.
References C4PF_Ray_Launch, CrawlAttach, CrawlStartX, CrawlStartY, Depth, Direction, From, Next, pPathFinder, Status, TargetX, TargetY, UseZone, X, X2, Y, and Y2.
Referenced by C4PathFinderRay().
|
protected |
Definition at line 273 of file C4PathFinder.cpp.
References C4PF_Direction_Left, C4PF_Ray_Crawl, C4PF_Ray_Deleted, C4PF_Ray_Failure, C4PF_Ray_Still, C4RGB, CrawlAttach, CrawlToAttach(), Direction, C4Draw::DrawFrameDw(), C4Draw::DrawLineDw(), pDraw, Status, C4Facet::Surface, C4TargetFacet::TargetX, TargetX, C4TargetFacet::TargetY, TargetY, UseZone, C4Facet::X, X, X2, C4Facet::Y, Y, and Y2.
|
protected |
Definition at line 137 of file C4PathFinder.cpp.
References C4TransferZone::At(), C4PF_Direction_Left, C4PF_Direction_Right, C4PF_MaxCrawl, C4PF_Ray_Crawl, C4PF_Ray_Deleted, C4PF_Ray_Failure, C4PF_Ray_Launch, C4PF_Ray_Still, C4PF_Threshold, Crawl(), CrawlAttach, CrawlLength, CrawlStartAttach, CrawlStartX, CrawlStartY, Depth, Direction, Distance(), C4TransferZones::Find(), FindCrawlAttach(), FindCrawlAttachDiagonal(), C4TransferZone::GetEntryPoint(), PathFree(), pPathFinder, SetCompletePath(), Status, TargetX, TargetY, C4TransferZone::Used, UseZone, X, X2, Y, and Y2.
|
protected |
Definition at line 453 of file C4PathFinder.cpp.
References C4PF_Crawl_Bottom, C4PF_Crawl_Left, C4PF_Crawl_NoAttach, C4PF_Crawl_Right, C4PF_Crawl_Top, and PointFree().
Referenced by Execute().
|
protected |
Definition at line 479 of file C4PathFinder.cpp.
References C4PF_Crawl_Bottom, C4PF_Crawl_Left, C4PF_Crawl_NoAttach, C4PF_Crawl_Right, C4PF_Crawl_Top, C4PF_Direction_Left, C4PF_Direction_Right, and PointFree().
Referenced by Execute().
|
protected |
Definition at line 473 of file C4PathFinder.cpp.
References CrawlToAttach(), and PointFree().
Referenced by Crawl().
|
protected |
Definition at line 315 of file C4PathFinder.cpp.
References Abs(), C4TransferZones::Find(), PointFree(), and pPathFinder.
Referenced by CheckBackRayShorten(), and Execute().
|
protected |
Definition at line 424 of file C4PathFinder.cpp.
References pPathFinder.
Referenced by CrawlTargetFree(), FindCrawlAttach(), FindCrawlAttachDiagonal(), IsCrawlAttach(), and PathFree().
|
protected |
Definition at line 406 of file C4PathFinder.cpp.
References CheckBackRayShorten(), From, C4TransferZone::Object, pPathFinder, UseZone, X2, and Y2.
Referenced by Execute().
|
protected |
Definition at line 446 of file C4PathFinder.cpp.
References C4PF_Crawl_Left, and C4PF_Crawl_Top.
Referenced by Crawl().
|
friend |
Definition at line 76 of file C4PathFinder.cpp.
|
protected |
|
protected |
Definition at line 86 of file C4PathFinder.cpp.
|
protected |
Definition at line 86 of file C4PathFinder.cpp.
Referenced by Execute().
|
protected |
Definition at line 86 of file C4PathFinder.cpp.
|
protected |
Definition at line 86 of file C4PathFinder.cpp.
|
protected |
Definition at line 87 of file C4PathFinder.cpp.
|
protected |
|
protected |
Definition at line 89 of file C4PathFinder.cpp.
Referenced by CheckBackRayShorten(), Default(), and SetCompletePath().
|
protected |
Definition at line 90 of file C4PathFinder.cpp.
Referenced by C4PathFinder::Clear(), Default(), and C4PathFinder::Draw().
|
protected |
Definition at line 91 of file C4PathFinder.cpp.
Referenced by Default(), Execute(), PathFree(), PointFree(), and SetCompletePath().
|
protected |
Definition at line 84 of file C4PathFinder.cpp.
Referenced by CheckBackRayShorten(), Default(), Draw(), and Execute().
|
protected |
Definition at line 85 of file C4PathFinder.cpp.
|
protected |
Definition at line 85 of file C4PathFinder.cpp.
|
protected |
Definition at line 88 of file C4PathFinder.cpp.
Referenced by CheckBackRayShorten(), Default(), Draw(), Execute(), and SetCompletePath().
|
protected |
Definition at line 85 of file C4PathFinder.cpp.
Referenced by CheckBackRayShorten(), Default(), Draw(), and Execute().
|
protected |
Definition at line 85 of file C4PathFinder.cpp.
Referenced by CheckBackRayShorten(), Crawl(), Default(), Draw(), Execute(), and SetCompletePath().
|
protected |
Definition at line 85 of file C4PathFinder.cpp.
Referenced by CheckBackRayShorten(), Default(), Draw(), and Execute().
|
protected |
Definition at line 85 of file C4PathFinder.cpp.
Referenced by CheckBackRayShorten(), Crawl(), Default(), Draw(), Execute(), and SetCompletePath().