Interesting link on RTS computer controlled enemies ("AI") programming:
http://webdocs.cs.ualberta.ca/~cdavid/s ... 2015.shtml
Interesting by the way that there is an external API that might also be implemented into other similar RTS engines (Megaglest?):
http://bwapi.github.io/