Reorganise AI base building logic.

- Now obeys defined structure percentages and limits.
- Faster.
- More readable and maintainable code.
This commit is contained in:
Paul Chote
2014-07-06 11:05:06 +12:00
parent c8bd8336f7
commit a46baeaf2b
5 changed files with 296 additions and 213 deletions

View File

@@ -6,7 +6,9 @@ Player:
ConstructionYard: conyarda,conyardh,conyardo
Refinery: refa,refh,refo
Power: pwra,pwrh,pwro
Barracks: barra,barrh,barro
VehiclesFactory: lighta,lighth,lighto,heavya,heavyh,heavyo
Production: lighta,lighth,lighto,heavya,heavyh,heavyo,barra,barrh,barro
Silo: siloa, siloh, siloo
UnitsCommonNames:
Mcv: mcva,mcvh,mcvo
@@ -100,6 +102,7 @@ Player:
combath: 100%
combato: 100%
SquadSize: 8
MaxBaseRadius: 40
HackyAI@Vidius:
Name: Vidious
UnitQueues: Infantry, Vehicle, Armor, Starport
@@ -107,7 +110,9 @@ Player:
ConstructionYard: conyarda,conyardh,conyardo
Refinery: refa,refh,refo
Power: pwra,pwrh,pwro
Barracks: barra,barrh,barro
VehiclesFactory: lighta,lighth,lighto,heavya,heavyh,heavyo
Production: lighta,lighth,lighto,heavya,heavyh,heavyo,barra,barrh,barro
Silo: siloa, siloh, siloo
UnitsCommonNames:
Mcv: mcva,mcvh,mcvo
@@ -202,6 +207,7 @@ Player:
combath: 100%
combato: 100%
SquadSize: 6
MaxBaseRadius: 40
HackyAI@Gladius:
Name: Gladius
UnitQueues: Infantry, Vehicle, Armor, Starport
@@ -209,7 +215,9 @@ Player:
ConstructionYard: conyarda,conyardh,conyardo
Refinery: refa,refh,refo
Power: pwra,pwrh,pwro
Barracks: barra,barrh,barro
VehiclesFactory: lighta,lighth,lighto,heavya,heavyh,heavyo
Production: lighta,lighth,lighto,heavya,heavyh,heavyo,barra,barrh,barro
Silo: siloa, siloh, siloo
UnitsCommonNames:
Mcv: mcva,mcvh,mcvo
@@ -300,4 +308,4 @@ Player:
combath: 100%
combato: 100%
SquadSize: 10
MaxBaseRadius: 40