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
9ea490ff53
moved fai to namespace ai::, partially
2009-08-02 21:24:37 +00:00
Iurii Chernyi
09223f03cc
new AI configuration syntax. Note: boost 1.35 required for compilation
2009-08-01 14:17:15 +00:00
Guillaume Melquiond
392ca2adaf
Removed redundant fields from battle_context.
2009-07-18 12:06:10 +00:00
Bartek Waresiak
1595f2776e
Formula AI code cleanup/refractoring
2009-07-18 00:44:46 +00:00
Bartek Waresiak
c505991e75
Accept list of orders from safe_call backup formula
2009-07-12 16:20:47 +00:00
Bartek Waresiak
2d32ba9b79
Members initialization
2009-07-12 09:48:18 +00:00
Bartek Waresiak
15054a3c14
Initialize members in constuctor, added prepare_move to safe call 'if'
2009-07-11 11:10:05 +00:00
Bartek Waresiak
9c6ae546a2
Ooops forgot to reset one counter
2009-07-11 10:40:51 +00:00
Bartek Waresiak
3bb651f0f4
Added safe_call() formula function...
...
...that allows execution of 'backup formula' in case of failure, made
formula check for action result and return appriopriate error number
in case of error. It's still a bit WIP, but it should be good enough
for now
2009-07-11 10:27:12 +00:00
Iurii Chernyi
67be89d54f
changed formula_ai recruitment to use execute_recruit_action
2009-07-06 20:34:11 +00:00
Karol Nowak
2bf8938bf1
Readability improvments.
2009-07-05 22:59:55 +00:00
Bartek Waresiak
64d1ad97cf
Made recruitment= formula work in a loop like move= formula
2009-07-05 09:40:58 +00:00
Bartek Waresiak
a88ddd0a3c
Made formula_callable use ENUM type
2009-07-05 09:09:26 +00:00
Bartek Waresiak
e3669c7eca
Another fix for a fix #36594
2009-07-05 00:04:35 +00:00
Bartek Waresiak
9887ef9b81
New formula function: debug_label
2009-07-04 22:12:01 +00:00
Bartek Waresiak
84f6a19582
New formula function: locations_in_radius
2009-07-04 22:00:41 +00:00
Bartek Waresiak
e87d9ecd4e
made do_compare work for two different classes derived from formula_callable
2009-07-04 21:47:23 +00:00
Bartek Waresiak
cf2757fb13
Fixed bug that (under certain conditions)...
...
...made units not standing next to each other being considered as ones
that do stand next to each other
2009-07-04 21:31:49 +00:00
Tomasz Śniatowski
f476e3cd0c
extract chat_handler into it's own separate header...
...
...and make chat_handler not depend on game_display. This makes it
possible to include chat_handler without including half the game's
headers for no reason
2009-07-04 10:38:28 +01:00
Iurii Chernyi
b623903881
ai_composite: engine_fai: added wrapper of fai candidate actions...
...
...to standard ai_composite interface
2009-07-01 21:47:29 +00:00
Iurii Chernyi
105ff24bc0
AI Composite: WIP on engine_fai : candidate actions parsing by formula_ai
2009-07-01 20:23:59 +00:00
Bartek Waresiak
03bac721d0
Rewritten RCA evaluation code, changed how RCA filters work
2009-06-30 18:37:56 +00:00
Bartek Waresiak
9e1e2e242f
Commited patch #1170 with some addictional modifications
2009-06-24 13:29:17 +00:00
Eugen Jiresch
c0c779968b
removed gamestatus parameters from class battle_context
2009-06-22 08:15:02 +00:00
Iurii Chernyi
14381bbc29
AI Refactoring: moved struct attack_analysis out of ai_default
2009-06-18 20:39:37 +00:00
Iurii Chernyi
3cc9edcd15
AI Refactoring: moved ai_default into ai namespace
2009-06-18 20:39:11 +00:00
Eugen Jiresch
fd7a06c832
replaced gamestatus argument by tod_manager in combat_modifier()
2009-06-16 13:54:38 +00:00
Eugen Jiresch
ae8725eebb
added a tod_manager member to classes battle_context,
...
...attack and mouse_handler (in preparation of gamestatus removal)
2009-06-15 13:33:42 +00:00
Iurii Chernyi
acb6f7b734
removed gamestatus usage, where it is not needed
2009-06-10 14:22:40 +00:00
Iurii Chernyi
fff0d9b9f9
file renames in src/ai
2009-06-09 13:00:46 +00:00