Alexander van Gessel
15459fca86
Rename utils::paranthetical_split()...
...
...to utils::parenthetical_split(). Patch by Espreon
2010-05-24 02:45:45 +01:00
Iurii Chernyi
ebbe53ae9d
remove default_ai, to avoid code duplication...
...
...(as default_ai is ported to rca ai candidate actions. remove ai2 stub.
2010-04-29 21:25:03 +00:00
Iurii Chernyi
98587d5d48
reduce ai header dependencies
2010-04-28 23:42:43 +00:00
Iurii Chernyi
a4380539de
implement espreon's FR about making modify_ai in [side]...
...
...work without side= attribute
2010-04-11 14:56:38 +00:00
Iurii Chernyi
5fc4765bb5
fix bug #15390 :
...
...add a try_delete action to modify_ai which has 'delete if exists,
don't complain if not exists' semantics
2010-03-09 19:39:15 +00:00
Mark de Wever
92f5f92ce5
New year copyright update.
2010-01-01 13:16:49 +00:00
Iurii Chernyi
3da97843d4
reschedule todo items, mark todo items important before 1.8 release
2009-12-25 12:15:43 +00:00
Iurii Chernyi
1462573062
refactoring of ai component model to a more object-oriented approach.
...
[modify_ai] now works fully and uniformly, with less code
duplication. added the ability to see all ai components from
gamestate_inspector.
2009-12-24 22:38:59 +00:00
Guillaume Melquiond
2ec549bdd5
Removed unused functions:
...
ai::manager::add_sync_network_observer & delete_sync_network_observer.
2009-12-06 09:57:26 +00:00
Guillaume Melquiond
cae719510b
Removed unused functions:
...
ai::manager::add_user_interact_observer & remove_user_interact_observer.
2009-12-06 09:57:22 +00:00
Guillaume Melquiond
b884d4f1d9
Inlined ai::comand_history_item.
2009-12-06 09:57:19 +00:00
Guillaume Melquiond
abad9f00be
Removed unused functions ai::command_history_item::set_number/set_command.
2009-12-06 09:57:15 +00:00
Iurii Chernyi
08ac3d103d
various tweaks of ai handling of map changes
...
solve some problems which might arise if map changes in the middle of
the turn thanks to WML events
2009-12-02 23:53:49 +00:00
Iurii Chernyi
f916c2bf55
fix bug #14768 : made AI observe changes in allowed recruits,
...
...thus, fixing the issue with AI not recruiting when some of its
recruits are removed by outside sources (such as by WML
[disallow_recruit]) and fixing some related issues.
2009-11-15 20:56:58 +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
Guillaume Melquiond
72f21dfe68
Removed unused class ai::manager.
2009-10-03 08:59:22 +00:00
Iurii Chernyi
1c3cf65e62
temp. disabled code
2009-09-23 00:29:36 +00:00
Iurii Chernyi
aee65c442e
new features for gamestate_inspector
2009-09-19 22:03:41 +00:00
Guillaume Melquiond
99a3190fca
Removed AI that has been obsolete and broken for several years.
2009-09-12 08:35:31 +00:00
Iurii Chernyi
afcb29c338
reworked AI macros, added support for moving leader to goal...
...
...as a candidate action, fixed some bugs, changed modify_ai syntax to
make it more resilient to bugs and to allow reuse of subtags
2009-09-03 23:23:37 +00:00
Iurii Chernyi
29f14e2950
better logging - ai/mod logdomain to log effect of [modify_ai] tags
2009-08-25 00:19:38 +00:00
Iurii Chernyi
688e39d5de
fixed a segfault in mthe handling of [modify_ai] tag during replay.
...
This is a temporary but safe fix.
2009-08-24 18:09:01 +00:00
Iurii Chernyi
23b656317a
added side number to --log-debug=ai/config info
2009-08-23 22:03:58 +00:00
Iurii Chernyi
a392384be9
[modify_ai]: add facets of aspects
2009-08-23 19:30:50 +00:00
Iurii Chernyi
d2ef421454
Added component class interface, which is needed to support [modify_ai]
2009-08-23 19:30:38 +00:00
Iurii Chernyi
02d46b4419
remove some opportunities for ai infinite loops;...
...
...fix a bug with 'ai turn' event being called at the wrong time;
definitly fixes bug #14157 and bug #14161 , and might fix bug #14167
(this one might had been fixed earlier); might cause the AI to stop
its turns prematurely - report this, if it happens
2009-08-22 18:19:35 +00:00
Iurii Chernyi
e1bc649114
simplified ai usage of generic_event's
2009-08-16 10:29:28 +00:00
Iurii Chernyi
d1bd4ff404
removed console AI - as formula_ai console is now served by each individual AI
2009-08-13 19:22:51 +00:00
Iurii Chernyi
54ddcc51ba
Added config serialization of various ai contexts.
2009-08-13 18:02:19 +00:00
Iurii Chernyi
3e3080abb5
fix a bad merge
2009-08-13 14:47:59 +00:00
Iurii Chernyi
f65ca86bff
reenabled most of ai modifications via [modify_side]...
...
...(all aspects, such as recruitment pattern and aggression, can be changed)
2009-08-13 14:27:40 +00:00
Mark de Wever
e1f0122ef9
Fix a compiler warning.
2009-08-12 21:27:28 +00:00
Iurii Chernyi
5efa22b029
wip on ai aspect modification via [modify_side],
...
...plus fix of one of the assertion failures after recruitment on
choose-your-recruits era
2009-08-12 15:49:08 +00:00
Iurii Chernyi
13a103f640
recruitment as aspect
2009-08-12 11:19:17 +00:00
Iurii Chernyi
640594d6cc
fixed issue with having only one formula_ai per...
...
...'all human players in case of local game' - now there is one
formula_ai per side
2009-08-09 20:10:12 +00:00
Iurii Chernyi
0abf93d7f3
removed prepare_move from formula_ai, it is not needed now
2009-08-08 18:25:46 +00:00
Iurii Chernyi
5e0e72324e
Properly initialized command-line ai config.
...
formula_ai console should be now fully operational.
2009-08-08 12:02:35 +00:00
Iurii Chernyi
15abe931ea
refactoring of attack support code to pull up attack_analysis
2009-08-03 22:02:53 +00:00
Iurii Chernyi
09223f03cc
new AI configuration syntax. Note: boost 1.35 required for compilation
2009-08-01 14:17:15 +00:00
Tomasz Śniatowski
f82f8b49fd
add a sync network event to ai manager
2009-07-19 22:09:09 +01:00
Iurii Chernyi
1e7d83429b
small refactoring of ai::manager #include directives...
...
...to reduce dependencies, plus cleanup of side_number usage
2009-07-03 09:39:47 +00:00
Iurii Chernyi
4df9f65d02
AI Refactoring: reworked event system...
...
...to allow cheap invalidation and on-demand initialization of move
maps after gamestate changes
2009-07-01 00:13:28 +00:00
Iurii Chernyi
5652b111c0
optional new-style AI configs...
...
...and generation of AI lists in multiplayer from files
2009-06-28 13:01:41 +00:00
Iurii Chernyi
7a270d527c
ai_composite: new candidate action: testing_ai_default::combat_phase
2009-06-21 19:49:34 +00:00
Iurii Chernyi
fff0d9b9f9
file renames in src/ai
2009-06-09 13:00:46 +00:00