1
0
forked from 0ad/0ad
Commit Graph

16 Commits

Author SHA1 Message Date
f3a52dd440 Fixes incorrect and inconsistent tests for undefined.
Removes unused buggy GUI script.
Corrects some inconsistent formatting.

This was SVN commit r11241.
2012-03-04 22:59:14 +00:00
887b6633c2 Adds per-player BuildLimits data to GUIInterface.
Adds BuildLimits accessors to GameState for JuBot and Testbot.

This was SVN commit r10415.
2011-10-20 23:35:52 +00:00
1c081135ad Adds territory map to AI GameState, based on patch from quantumstate. Fixes #969.
Updates testbot and Jubot to support basic build restrictions.

This was SVN commit r10408.
2011-10-16 02:55:58 +00:00
2a39ba2f91 Changes new AI GameState functions to accept Entity objects instead of raw entities.
This was SVN commit r10394.
2011-10-12 00:33:07 +00:00
b40ba972c1 Adds diplomacy functions to Jubot and Testbot gamestate (eventually replace e.g. Entity.isEnemy() with these).
This was SVN commit r10339.
2011-09-28 19:40:50 +00:00
c3075c8e5b Fixes AI building angles to face bottom right corner of the map.
Cleans up the same concept in random maps.

This was SVN commit r10275.
2011-09-13 22:51:43 +00:00
daad510013 fix bug where AI would only train one unit type
This was SVN commit r9126.
2011-03-26 22:22:22 +00:00
8a0cbe009a Stop the AI wasting time chasing after any animals except chickens.
Make the AI behave better when it can't find any viable food sources.

This was SVN commit r9046.
2011-03-08 01:40:44 +00:00
08d5e7bf66 Sort AI list by name, and rename Test Bot so it's a bit clearer and is listed first
This was SVN commit r9031.
2011-03-05 16:55:58 +00:00
09cbe4f341 Disable debug messages when instantiating AIs
This was SVN commit r9014.
2011-03-04 21:50:30 +00:00
3e7731e8ca Stop units wasting their lives chasing animals they'll never be able to catch.
Let AI players collect treasures.

This was SVN commit r9012.
2011-03-04 21:42:39 +00:00
16a4eb36dd Various minor optimisations.
Enable SpiderMonkey method JIT in Release mode.
Add Engine.ProfileStart/Engine.ProfileStop functions for scripts.
Fix AI to clone initial entity data and shared metadata.

This was SVN commit r9003.
2011-03-03 00:16:14 +00:00
cb0e322a61 # Minor AI fixes.
Avoid script errors on Miletus.
Use pre-existing female citizens as workers.
Fix autostart.

This was SVN commit r8999.
2011-02-27 19:20:36 +00:00
0be515280b Memoize some common entity lists in AI scripts.
This was SVN commit r8963.
2011-02-21 02:14:45 +00:00
b8925fbbc9 # Support AI construction of buildings.
Pass terrain passability data to AI scripts.
Expand pathfinder passability data to 16 bits per tile, to allow more
classes.
Support 16-bit ints in serializer.
Partially support JS typed arrays.
Allow foundations to be placed on top of units (fixes #499).
Stop farms and fishes blocking movement (fixes #534).
Add obstruction flags to allow finer control over what they block.
Associate entity IDs with obstruction shapes, to allow finding colliding
entities.
Support moving to the edge of a target entity with inactive obstruction.
Support foundation entities in AI.
Support playing as non-hele civs.

This was SVN commit r8899.
2011-02-10 16:06:28 +00:00
57e5bb878a Initial terrible AI player scripts.
This was SVN commit r8891.
2011-02-05 20:35:34 +00:00