1
0
forked from 0ad/0ad
Commit Graph

19 Commits

Author SHA1 Message Date
8383f35eb8 Added queued as an optional parameter so that AI's can set waypoints
This was SVN commit r10653.
2011-12-02 00:25:20 +00:00
fc325991a0 Added visionRange function to read this value from the templates for the AI to use.
This was SVN commit r10553.
2011-11-18 21:11:15 +00:00
97d3f1cfc9 Added a squared vector function for A^2 + B^2 without the rooting, in case massively large nos of vector calculations are needed.
This was SVN commit r10528.
2011-11-13 15:56:37 +00:00
a41b0e30fe Changes AI entity destroy events to maintain some data about the entity, based on patch by quantumstate. Fixes #983.
This was SVN commit r10413.
2011-10-18 22:51:04 +00:00
686ffa9758 Fixes error in AI entity. Fixes #991.
This was SVN commit r10412.
2011-10-16 17:21:37 +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
c73c0870f1 Adds attackTimes to AI entity templates. Fixes #991.
This was SVN commit r10407.
2011-10-15 23:38:58 +00:00
b28ae93dc8 Adds armour and attack strengths to AI entity template, based on patch by infyquest. Fixes #991.
This was SVN commit r10393.
2011-10-11 20:02:21 +00:00
e0255741d8 Adds BuildRestrictions accessors to AI's EntityTemplate (important for proper territory support).
This was SVN commit r10340.
2011-09-28 19:51:40 +00:00
c3bb3ec57e Adds event data to BaseAI (so that AIs can handle being attacked, defeated, etc) based on patch from quantumstate. Fixes 972.
This was SVN commit r10306.
2011-09-23 22:02:04 +00:00
cdbd347466 Fix inconsistent function prototype (fixes #897)
This was SVN commit r9888.
2011-07-20 19:44:31 +00:00
871d321050 Fix undefined property warning
This was SVN commit r9778.
2011-07-07 22:14:37 +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
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
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
f39f279132 Add AI script code to provide a cleaner API around the engine interface.
Handle AIProxy entirely through scripts.
Support structured clones of script values.
Improve performance.
Support multiple script contexts sharing a runtime.
Use a separate context per AI player.

This was SVN commit r8866.
2011-01-15 23:35:20 +00:00