This commit is contained in:
2025-03-05 20:32:40 +03:30
parent 94341f9ad5
commit 32deb20560
2 changed files with 125 additions and 30 deletions
@@ -400,11 +400,11 @@ class XCX121SMCXWZSignalDetector : public XCBase
hasWaitingZones = workingZone.DetectZone(
drawer,
analysePoiEvents,
consolidationPoiEvents,
consolidationPoiEvents,
consolidationState,
decisionPoiEvents,
analysePoiEvents,
analyseState,
consolidationState //
decisionState,
analyseState //
);
//
@@ -468,8 +468,9 @@ class XCX121SMCXWZSignalDetector : public XCBase
// Detect Signal Box ...
hasSignalBox = hasWorkingZone &&
hasWaitingZones &&
workingZone.IsZoneRejected(
workingZone.IsZoneOBRejected(
activatedZone,
decisionXConditions,
zIndex //
);
if (hasSignalBox)
@@ -484,27 +485,27 @@ class XCX121SMCXWZSignalDetector : public XCBase
signalBoxDir = signalBox.dir;
provider = X121SMC_XWZ_PROVIDER_ACTIVATED_ZONE;
// //
// int idx = FindIndex(
// activatedZone,
// workingZone.waitingZones //
// );
// bool has = IsValidIndex(idx);
// if (has)
// {
// //
// ArrayRemove(
// workingZone.waitingZones,
// idx,
// 1 //
// );
//
int idx = FindIndex(
activatedZone,
workingZone.waitingZones //
);
bool has = IsValidIndex(idx);
if (has)
{
//
ArrayRemove(
workingZone.waitingZones,
idx,
1 //
);
// //
// AddRef(
// activatedZone,
// workingZone.unavailableZones //
// );
// }
//
AddRef(
activatedZone,
workingZone.unavailableZones //
);
}
}
}
@@ -914,8 +915,7 @@ class XCX121SMCXWZSignalDetector : public XCBase
//
// Summarize Results ...
result = false &&
hasPriority &&
result = hasPriority &&
hasSignalBox &&
hasRewardAmount;
@@ -962,10 +962,12 @@ class XCX121SMCXWZSignalDetector : public XCBase
true // Draw Waiting Zones Box Area ...
//
);
//
if (hasSignalBox) {
Print("Has Signal Box ...");
if (hasSignalBox)
{
//
Print("Has Signal Box ...");
}
}