13 Commits

Author SHA1 Message Date
flix/Felix Bauer
29e8584738 Add new aspect 'advancements'
As part of a GSoC proposal I added a new aspect so a scenario editor can control advancements in two ways:
1. Define a aspect with a string-value like "Swordsman, Knight", so the units of interesst will always advance to this
2. Use the LUA-Engine and return a function of the form advance(x, y) which will itself return a string-value
    like "Swordsman, Knight". Everytime a ai-unit advances advance(x, y) will be called.
The corresponding wikipage (http://wiki.wesnoth.org/AiWML) is going to be updated soon.
2013-06-01 17:21:12 +03:00
Matthias Schoeck
40c7046b5a Add new AI aspect leader_ignores_keep.
If set, AI leaders do not move to the closest keep at the beginning of
the turn.  Instead, they participate in the move_to_targets candidate
action (and all other CAs in which they already participated anyway,
of course).  The default value is 'no', which leaves the default
behavior unchanged.
2013-01-20 04:07:08 +00:00
Alexander van Gessel
f4ab3722dc Apply patch #3570 by mattsc 2012-11-26 23:50:17 +01:00
Iurii Chernyi
fb9fa4bd91 stabilize RCA AI configuration for 1.8,
...extract candidate actions to separate macroses
2009-12-24 23:41:15 +00:00
Eric S. Raymond
0aa99781cf Reindent mainline. 2009-11-23 14:39:03 +00:00
Mark de Wever
467b3feae6 Fix alignment. 2009-10-20 18:44:01 +00:00
Iurii Chernyi
27d6b0f59b new aspect, leader_aggression, to control the aggression of the leader...
...separately. Default value is -4.0 - that's old implicit default
2009-10-08 00:01:17 +00:00
Nils Kneuper
64abf3e200 add a default textdomain declaration...
...(using "./utils/change-textdomain -t data/")
2009-09-20 13:53:46 +00:00
Iurii Chernyi
40eb5c2a3b removed unnecessary ai_algorithm from default config 2009-08-28 22:19:02 +00:00
Iurii Chernyi
13a103f640 recruitment as aspect 2009-08-12 11:19:17 +00:00
Iurii Chernyi
39633ab2f8 examples of new-style ai configurations 2009-08-04 21:02:29 +00:00
Iurii Chernyi
ba6a7aa2c4 used 'attacks' aspect to keep a cache of attacks...
...shared between ai_default/formula_ai/composite_ai code
2009-08-03 22:03:13 +00:00
Iurii Chernyi
09223f03cc new AI configuration syntax. Note: boost 1.35 required for compilation 2009-08-01 14:17:15 +00:00