Add mission customization, HQ support and aggression-driven AI
Integrate faction and random settings menus, generated objectives, scouts, convoys, air support, mortar stations and body-intel recovery. Add identified-body aggression, finite hunter UAZ deployment, dedicated objective defence and maximum AI skill with separate reduced aim accuracy. Include policy tests, native probes, evidence and documentation.
This commit is contained in:
@@ -190,14 +190,14 @@ int main(){
|
||||
assert(ledger.Unregister(physical->Id)&&!ledger.FindGroup(&group));
|
||||
assert(!ledger.Register("physical",K::GARRISON,{0,0,0},4));
|
||||
ledger.Clear();assert(ledger.Count()==0&&ledger.m_Sources.Count()==0&&ledger.m_ById.Count()==0);
|
||||
// All 128 formations remain bounded through a simulated hour; stagger only affects snapshot age.
|
||||
// All 256 formations remain bounded through a simulated hour; stagger only affects snapshot age.
|
||||
ERR_ForceLedger hour;ERR_ForceSimulation hourSim(&hour);auto circuit=square(true);
|
||||
for(int i=0;i<128;i++)assert(hour.Register(std::to_string(i),K::PATROL,{0,10,0},4,circuit));
|
||||
for(int i=0;i<256;i++)assert(hour.Register(std::to_string(i),K::PATROL,{0,10,0},4,circuit));
|
||||
assert(!hour.Register("overflow",K::PATROL,{0,0,0},4));
|
||||
assert(!hour.Register("overflow2",K::PATROL,{0,0,0},4)&&logs==1);
|
||||
for(int t=1000;t<=3600000;t+=1000)hourSim.Tick(t);
|
||||
assert(hour.Count()==128&&hour.m_Sources.Count()==128&&hour.m_ById.Count()==128);
|
||||
for(int i=0;i<128;i++){
|
||||
assert(hour.Count()==256&&hour.m_Sources.Count()==256&&hour.m_ById.Count()==256);
|
||||
for(int i=0;i<256;i++){
|
||||
auto r=hour.At(i);assert(!r->Eliminated&&r->Strength==4&&r->Casualties==0);
|
||||
assert(3600000-r->LastSimulatedAt<=1000);
|
||||
float distance=std::fmod(1.4*r->LastSimulatedAt/1000,56);
|
||||
@@ -208,7 +208,7 @@ int main(){
|
||||
else actual=56-r->Position.z;
|
||||
assert(std::min(std::abs(actual-distance),56-std::abs(actual-distance))<.1);
|
||||
}
|
||||
assert(hour.Status()=="128,0,128,0,512,0");
|
||||
assert(hour.Status()=="256,0,256,0,1024,0");
|
||||
assert(hour.Unregister(hour.At(0)->Id));
|
||||
assert(!hour.Register("replacement",K::PATROL,{0,0,0},4)); // retired identity consumes finite pool
|
||||
}
|
||||
@@ -221,4 +221,4 @@ for path in (L,S):
|
||||
assert all(len(line)<120 for line in text.splitlines()),path
|
||||
for signature in ('protected void Route(', 'void Tick('):
|
||||
assert 'new ' not in body(S,signature)
|
||||
print('PASS: actual force ledger, finite casualties/identity/cap, routes/arrival/elevation/overshoot, server and physical guards, staggered 128-record simulated hour without world queries')
|
||||
print('PASS: actual force ledger, finite casualties/identity/cap, routes/arrival/elevation/overshoot, server and physical guards, staggered 256-record simulated hour without world queries')
|
||||
|
||||
Reference in New Issue
Block a user