Commit graph

360 commits

Author SHA1 Message Date
Dmitry Kovalenko
175d0a84f5 LuaAI: rewired caching functions to ai.get_*() instead of ai.get_cached_*() 2012-04-11 17:05:09 +00:00
Dmitry Kovalenko
9ddd3d4408 [[lua AI fixes]]
(1) First draft of the caching system for LuaAI. (2) Added validation
variables and setters/getters in the ai contexts, to allow LuaAI cache
check the movemaps for validity
2012-04-08 00:00:14 +00:00
Dmitry Kovalenko
de73faad91 Tweaked the patrol_gen function to return a pair of function: execution and evaluation 2011-07-12 08:39:18 +00:00
Dmitry Kovalenko
cd0450f950 Removed debug outputs 2011-06-30 14:54:08 +00:00
Dmitry Kovalenko
8d65c3b7f7 Added functionality to the [add_ai_behavior] tag.
Not fully working at the moment, but is usable. The usage syntax will
most probably remain, but the internals will be modified.
2011-06-30 14:14:46 +00:00
Nils Kneuper
0723abe7e3 add some (hackish!) attempt to make the po update routines scan .lua files...
...for strings, too

this is done by a) scanning for all .lua files additionally to all
.cfg files in FINDCFG and b) by adding the equivalent of a "commented
out" #textdomain DOMAIN declaration

next step: testing if it really does work as expected this should also
fix bug #15629 since the objectives are now *only* declared via some
lua magic
2010-03-15 20:22:28 +00:00
Guillaume Melquiond
0684992511 Removed never used argument. 2010-02-27 09:18:12 +00:00
Iurii Chernyi
3cbbeeb6e1 continue work related to patch #1432.
Fix issues identified on irc by silene. Fixed 1,2,4,5,6 (not entirely
sure about 1)
2010-02-21 23:11:56 +00:00
Iurii Chernyi
f9b0fdb1f5 Lua AI: redesign, simplified usage, added lua_ai test scenario 2010-02-21 12:24:31 +00:00
Iurii Chernyi
b873f11333 extracted lua ai code into external .lua files 2010-02-17 19:34:35 +00:00