18645 Commits

Author SHA1 Message Date
mattsc
a45cf2ac58 ExpAI: capture more villages if we can't recruit any more this turn 2013-11-01 09:27:38 -07:00
mattsc
241fd529e0 ExpAI: ignore unreachable enemy leaders when selecting keep 2013-11-01 09:24:05 -07:00
mattsc
d8c35a75c8 ExpAI: capture villages with injured units if no enemy can reach 2013-11-01 09:19:54 -07:00
mattsc
948147550a ExpAI: Encourage forward advancement when capturing villages 2013-11-01 09:14:55 -07:00
mattsc
9c86a71ef7 ExpAI retreat code: also return enemy attack map 2013-11-01 08:51:21 -07:00
mattsc
1fa06a6811 Exp AI retreat code: make function min_hp() externally accessible 2013-11-01 08:51:21 -07:00
mattsc
938b2e6520 ExpAI retreat: count amount of hp healed when choosing retreat location 2013-11-01 08:51:21 -07:00
mattsc
456f60a9ee ExpAI: make sure injured regenerating units are not stranded if ...
... no non-regenerating units can get to safe locations.
2013-11-01 08:51:20 -07:00
mattsc
76e22a3d6a Experimental AI: add a simple move to enemy CA
Set up to run if nothing else is available.
In a separate file for use as a stand-alone CA in an AI
2013-10-31 21:19:44 -07:00
mattsc
4cdedc11ee Remove () for wesnoth.require for consistency with surrounding lines 2013-10-31 21:08:13 -07:00
mattsc
3e6e7caa74 Put 'done_eval_messages()' behind 'if print_eval()' condition
... so that they only get printed when this sort of debug output is
selected.
2013-10-31 20:54:00 -07:00
mattsc
96d17690bd Clean up time stamps and debug output code 2013-10-31 20:40:18 -07:00
mattsc
d355adbacb Clean up time stamps and debug output code 2013-10-31 20:31:37 -07:00
Alarantalara
c859d0d17b Keep villages unreachable by recruited unit
If the recruited unit cannot reach the target village, try again later
2013-10-31 23:14:36 -04:00
Alarantalara
33c1e493b2 Handle more damage specials for Lua recruiting 2013-10-31 23:14:35 -04:00
mattsc
46bf12a523 Old AIs in ai/dev/: change descriptions displayed in MP selection menu
These are the AIs that are only visible in debug mode.  They were very
ambiguous and two of them were even exactly the same.
2013-10-31 15:32:21 -07:00
mattsc
9b553b86b5 Fix the old 'Default AI with poisoning formula' development AI
None of the RCA AI CAs were included, which means this was effectively
an idle AI.
2013-10-31 14:46:53 -07:00
mattsc
554a95749a battle_calcs.best_defense_map(): add parameter ignore_these_units
This is a table of enemy units whose ZoC is to be ignored for route
finding.  It is useful for determing where the enemy can move while
ignoring own units (enemies of the enemy) that have not moved yet.
2013-10-31 08:22:15 -07:00
mattsc
526debf3e9 battle_calcs.lua: remove some debug code 2013-10-31 08:17:47 -07:00
mattsc
8689543d9a Lua dummy engine: do not load debug_ai functions
Besides them being unnecessary, a warning message is otherwise also
displayed when external CAs are used and the game is not in debug mode.
2013-10-30 18:23:48 -07:00
mattsc
e18378369b ai_helper: remove unused function ai_helper.got_1_11() 2013-10-30 13:02:09 -07:00
mattsc
1d488a2c35 Rename ai/micro_ais/ais/ to ai/micro_ais/engines/
... in order to distinguish between AI files containing full engines
and those containing individual CA eval/exec functions
2013-10-30 12:55:08 -07:00
mattsc
e469df1d50 Move and rename [micro_ai] tag setup file
... to a more logical location given the recent reorganization.
2013-10-30 12:55:08 -07:00
mattsc
3989b4e140 Experimental AI: make Healer Placement CA work with new external CAs
Healer Placement is a Micro AI whose syntax was changed in the switch
to using external AIs.  This change adapts how this CA is called in the
Experimental AI (gerneric rush AI) to these changes.
2013-10-30 09:51:10 -07:00
mattsc
4e68b4eaa2 Recruiting MAI test scenario: add Rush Recruitment MAI for Side 2 2013-10-30 09:47:41 -07:00
mattsc
b826e5ead5 Micro AIs: make recruit_rushers work with new external CA method
The previous code did not allow to get the ai table to the execution
function.
2013-10-30 09:42:41 -07:00
mattsc
3a30675d2f Micro AIs: remove all references to AI-demos add-on 2013-10-28 17:27:14 -07:00
mattsc
c4c0c553ec Remove RCA_STAGE macro
The transport engine code in SotBE S6 was the last place to use this
macro.  Not needed any more now that external CAs are available.
2013-10-27 17:02:39 -07:00
mattsc
f4007fdbdf SotBE S6: change transport AI to use external CAs
That means that no engine definition is needed any more.
2013-10-27 16:58:56 -07:00
JaMiT
d17b926b9e Clean up the messsages testing WMI hotkeys. 2013-10-27 12:13:46 -05:00
JaMiT
ddd0bc34e9 Convert 8-space indents to 4-space indents for consistency. 2013-10-27 12:13:46 -05:00
Andrius Silinskas
4fe25ad320 Added "force_lock_settings" attribute to LoW.
"force_use_map_settings" was removed since it's replaced by the
attribute mentioned above.
2013-10-27 09:13:14 +00:00
Andrius Silinskas
da65ff655b Revert "Added "controller_lock=no" for multiplayer maps."
Reverting since "controller_lock" will be set to "no" by default.

This reverts commit 6e337de3780870ef024348425cca611f3981c8ac.
2013-10-27 09:13:14 +00:00
mattsc
afa9235fa1 MAI engine deprecation macro: add side=1 to dummy unit
This will be ignored since the [unit] tag is used inside a [side[ tag,
but this way wmllint is happy.
2013-10-26 19:18:46 -07:00
mattsc
fd29559daa Fix some indenting in AI recruiting functions 2013-10-26 19:13:35 -07:00
mattsc
354fb361d4 Micro AIs: remove all the MAI engine macros
They are not needed any more now that all MAIs were switched to using
external CAs.  For the time being, we keep the macros in place, but
they now only display deprecation messages and have no actual
functionality.
2013-10-26 18:57:08 -07:00
mattsc
6ad899cbf5 [micro_ai] tag: remove now unneeded code and comment 2013-10-26 18:33:26 -07:00
mattsc
ed10e8e8a8 [micro_ai] tag: remove code for old-style CA syntax
All Micro AIs have now been converted to using external CAs.
2013-10-26 18:31:11 -07:00
mattsc
436f36c80a Recruiting MAIs: get rid of recruiting_type= key
The previous value of recruiting_type= now goes directly into ai_type=.
 Also add syntax translation and deprecation message.
2013-10-26 18:23:55 -07:00
mattsc
6fb7c46dbe Both Recruiting MAIs: switch to using external CAs
This includes disabling the rush recruiter for the time being, as the
engine files it uses do not yet use the external CAs.  It will be
re-enabled once those have been converted as well.
2013-10-26 17:26:37 -07:00
mattsc
323595623b Protect Unit MAI: switch to using external CAs
Also remove the code for the parameter selection dialog.  It hasn't
been used in a long time and we can always get it back from the git
history, if needed.
2013-10-26 13:15:18 -07:00
mattsc
cb6c1cd9e6 Bottleneck Defense MAI: switch to using external CAs 2013-10-26 12:27:01 -07:00
mattsc
fe16335132 Healer Support MAI: switch to using external CAs 2013-10-26 11:56:42 -07:00
mattsc
4d92a3068e All Remaining Animal MAIs: switch to using external CAs 2013-10-26 10:03:07 -07:00
mattsc
d486c093ac Swarm MAI: switch to using external CAs 2013-10-25 22:22:11 -07:00
mattsc
f308a26dcb Hunter MAI: switch to using external CAs 2013-10-25 16:41:38 -07:00
mattsc
02aa84e304 Patrol MAI: use 'patrol' instead of 'patrol_unit' for ai_type
... since this is not a behavior CA any more now.  Also add syntax
translation and deprecation message.
2013-10-25 16:06:46 -07:00
mattsc
c6e8f69d57 Hunter MAI: add syntax translation and deprecation message
So that the ai_type=hunter_unit syntax still works for the time being.
2013-10-25 16:03:11 -07:00
mattsc
d6db87f7c0 [micro_ai] tag setup: remove all behavior (sticky) CA related code
BCAs don't work with the external CA mechanism and are therefore not
used any more in the Micro AIs.
2013-10-25 07:09:49 -07:00
mattsc
84f9548510 Hunter MAI: change from behavior CAs to side-wide CAs
This also involves renaming it from hunter_unit to hunter.
2013-10-25 07:09:49 -07:00