FilliFilli / S44-Learning-AI

Release and issue-tracking page for the Spring 1944 Learning AI enhancement module
0 stars 0 forks source link

Orders for Mk1 #15

Open FilliFilli opened 6 years ago

FilliFilli commented 6 years ago

Every Squad must have some sort of "Orders" data list.

Each order is an object with:

Each Team has it too (to store your all-squads objectives) Intermediate levels could be implemented (ex. companies of squads, acting similarly to ctrl+num groups)

Orders have:

Order ideas:

FilliFilli commented 6 years ago

Attack and defend order implemented (hardcoded). They don't have an objective yet, but makes a squad (=unit members) attracted by enemy or ally flags when processing movement. Changes fire mode too. Still no proper "executor" function written thou.

Moreover, i made squads in high potential status attracted by enemy flags, while low potential ones are attracted by ally flags. This way they shouldn't "try to capture at all costs" (and die trying) toward enemy flags, even when outnumbered.