Commit graph

391 commits

Author SHA1 Message Date
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
mattsc
b13a9d98d9 All Guardian MAIs: switch to using external CAs 2013-10-24 21:00:38 -07:00
mattsc
fd66563c90 All Guardian MAIs: change from behavior CAs to side-wide CAs
Only side-wide CAs can use the external CAs, and there are some other
changes we want to make as well that require this.
2013-10-24 21:00:38 -07:00
mattsc
851ea73cc9 Patrol MAI: switch to using external CAs
Also need to disable the zone guardian in the scenario for the time
being, until the guardian MAIs have also been converted.
2013-10-24 19:52:53 -07:00
mattsc
909d33ca77 Patrol MAI: change from behavior CA to side-wide CA
Only side-wide CAs can use the external CAs, and there are some other
changes we want to make as well that require this.
2013-10-24 19:41:43 -07:00
mattsc
ea99f746c9 Simple Attack MAI: switch to using external CAs 2013-10-24 19:38:56 -07:00
mattsc
68e8f8e610 Hang Out MAI: switch to using external CAs 2013-10-24 19:38:56 -07:00
mattsc
d7e3b87584 Messenger MAI: switch to using external CAs 2013-10-24 13:33:09 -07:00
mattsc
ff2ead45bf Goto MAI: switch to using external CAs 2013-10-24 12:28:28 -07:00
mattsc
79e28544a0 Lurkers MAI: switch to using external CAs 2013-10-24 08:07:16 -07:00
mattsc
1e8fe60b3a [micro_ai] tag: add code for using external CAs
This means that we can get rid of the engine definition macros once all
MAIs have been switched to external CAs.
2013-10-24 08:05:14 -07:00
mattsc
e9fd0d51d8 Guardian MAI test scenario: switch to new guardian MAI syntax 2013-10-22 13:11:55 -07:00
mattsc
a11e296808 Patrols MAI test scenario: switch to new guardian MAI syntax
There is a guardian unit in the Patrols scenario
2013-10-22 13:04:36 -07:00
mattsc
e57d0945f0 Guardian MAIs: rename internal engine functions and CAs
This shouldn't affect anything else, it is simply done for consistency
(to reflect the recent syntax changes).
2013-10-22 12:52:52 -07:00
mattsc
23e4dda2e8 Guardian MAIs: add syntax translation and deprecation message
So that the ai_type=guardian_unit guardian_type=... syntax still works
for the time being.
2013-10-22 12:52:51 -07:00
mattsc
276e1b8709 Guardian MAIs: get rid of guardian_type= key
The previous value of guardian_type= now goes directly into ai_type=
2013-10-22 12:52:51 -07:00
mattsc
d2ecec4db1 Micro AIs: split up Guardian MAI engine file
... into a separate file for each animal AI. This is a first step
toward separating the guardian MAIs, as keeping them together is not
needed any more.
2013-10-22 12:52:50 -07:00
mattsc
227527ee61 Animals MAIs: rename internal engine functions and CAs
This shouldn't affect anything else, it is simply done for consistency
(to reflect the recent syntax changes).
2013-10-22 09:36:10 -07:00
mattsc
51f1546c40 Wolves MAI engine: don't load unused library file 2013-10-22 09:33:46 -07:00
mattsc
a862f928ec Big Animals MAI engine: don't load two unused libraries 2013-10-22 09:32:10 -07:00
mattsc
fc0fe9ef3f Wolves MAI test scenario: switch to new animals MAI syntax 2013-10-22 09:05:05 -07:00
mattsc
35e9f62185 Dragon MAI test scenario: switch to new animals MAI syntax 2013-10-22 09:04:51 -07:00
mattsc
ced903bd3a Animals MAI test scenario: switch to new animals MAI syntax 2013-10-22 09:04:41 -07:00
mattsc
ecc7fc94fe Swarm MAI test scenario: switch to new animals MAI syntax 2013-10-22 09:04:11 -07:00
mattsc
da9512bb49 Animals MAIs: add syntax translation and deprecation message
So that the ai_type=animals animal_type=... syntax still works for the
time being.
2013-10-22 08:01:24 -07:00
mattsc
7388dbbee5 Animals MAIs: get rid of animal_type= key
The previous value of animal_type= now goes directly into ai_type=
2013-10-22 07:48:32 -07:00
mattsc
361e56c6a1 Micro AIs: split up Animals MAI engine file
... into a separate file for each animal AI.  This is a first step
toward separating the animal MAIs, as keeping them together is not
needed any more.
2013-10-21 20:15:09 -07:00
mattsc
1010a790b1 Messenger MAI: deal with case when path is entirely blocked by enemies
This is different from the case when there's an enemy on the next
waypoint, which was already taken care of.
2013-09-01 17:43:34 -07:00
mattsc
cc6831f9e6 New Simple Attack Micro AI and test scenario 2013-09-01 07:34:30 -07:00
mattsc
87a9c2b9f6 [micro_ai] tag: fix bug that prevented removal of sticky behavior CAs 2013-08-29 17:32:03 -07:00
mattsc
500ccde573 Messenger MAI: minor bug fix to messenger attack behavior
The syntax of the waypoint_x/y parameter was changed recently, without
adapting its treatment here.  As a result, the messenger did "unsafe"
attacks whenever it ended up next to an enemy and not only on the last
waypoint as it is supposed to.
2013-08-29 11:11:23 -07:00
mattsc
14570a0a96 Messenger MAI bug fix: don't try to attack with escort unit without weapon
This one was a much more serious bug than the previous one, as it could
throw Wesnoth into an infinite loop.
2013-08-29 08:36:58 -07:00
mattsc
2f56734d4e Messenger MAI bug fix: don't try to attack with messenger without weapon 2013-08-29 08:03:07 -07:00
Adrián Chaves Fernández (Gallaecio)
71c75e43c1 Removed double spaces from a couple of internationalized strings. 2013-08-18 11:49:36 +02:00
Alexander van Gessel
38b224c1ff Revert "Revert "Merge branch 'master' of github.com:wesnoth/wesnoth-old""
This reverts commit 23b72d6956.
2013-08-09 00:13:46 +02:00
Thibault Févry
23b72d6956 Revert "Merge branch 'master' of github.com:wesnoth/wesnoth-old"
This reverts commit 5fa5c03411, reversing
changes made to 06374c64ba.
2013-08-08 18:50:46 +02:00
Alexander van Gessel
08d1c949f1 wmlindent workarounds for some micro_ai scenarios 2013-08-05 00:15:58 +02:00
Alexander van Gessel
0738a4e59c make reindent minus some wmlindent issues 2013-08-04 23:22:56 +02:00
mattsc
45611d8fa6 Messenger Micro AI: move duplicate code into a function 2013-07-25 16:30:23 -07:00
mattsc
7e0a05ed6e Experimental AI: consistently use underscores in AI ids and file names
This is the last step of making everything use consistent syntax.
2013-07-10 20:37:30 -07:00