35961 Commits

Author SHA1 Message Date
Guillaume Melquiond
fd19056bb5 Added a test for standard unit filters written in Lua. Updated changelog. 2009-09-20 18:10:28 +00:00
Guillaume Melquiond
e18641718b Added a way to invoke Lua functions from standard unit filters. 2009-09-20 18:10:19 +00:00
Mark de Wever
ec09452524 Fix a typo which called the wrong function. 2009-09-20 18:07:53 +00:00
Mark de Wever
58f7b7db78 Update changelog. 2009-09-20 18:07:48 +00:00
Mark de Wever
28313b48e2 Initialize all members. 2009-09-20 18:07:32 +00:00
Guillaume Melquiond
ea755029e6 Added test for pathfinder. 2009-09-20 16:36:18 +00:00
Guillaume Melquiond
ebda62b6d5 Fixed off-by-one locations. 2009-09-20 16:36:15 +00:00
Guillaume Melquiond
ffa00a21c9 Taught Lua pathfinder about teleporting units. 2009-09-20 16:36:12 +00:00
Guillaume Melquiond
9b31bac213 Optimized a bit non-teleporting units. 2009-09-20 16:36:09 +00:00
Guillaume Melquiond
269257b45b Factored teleport code for pathfinder. 2009-09-20 16:36:05 +00:00
Guillaume Melquiond
89c68c9e22 Removed annoying parameters. 2009-09-20 16:36:01 +00:00
Eric S. Raymond
6a60c523a3 Cope better with attributes at toplevel. 2009-09-20 16:22:18 +00:00
Eric S. Raymond
ae20489ec0 Croak more gracefully on a file with no element structure. 2009-09-20 15:40:28 +00:00
Mark de Wever
e7ed48bff1 Strip trailing whitespace. 2009-09-20 15:36:32 +00:00
Mark de Wever
e9334cb661 Initialize the new event handler.
Since the handler doesn't do much yet the change should not change any
behaviour.
2009-09-20 15:23:43 +00:00
Mark de Wever
445a3ef7cd Add the tdispatcher as a base class for a widget.
This doesn't break anything since the class doesn't do a thing yet.
Still not entirely sure whether the widget or the control should be the
base class, but let it be the widget for now.
2009-09-20 15:23:40 +00:00
Mark de Wever
53ef7b2033 Add initial code for the new event handling.
The code is still proof-of-concept and hasn't been wired in anywhere, but its
base structure is ready.
2009-09-20 14:42:40 +00:00
Mark de Wever
be51c842f5 Add a new helper for find_widget.
The minor advantage is avoiding some code duplication, but the larger
goal is to prepare for the new event handling code.
2009-09-20 14:34:25 +00:00
Guillaume Melquiond
bf3b79e245 Fixed incorrect setting. 2009-09-20 14:19:58 +00:00
Guillaume Melquiond
fd3c52c3a0 Avoid overriding user flags. 2009-09-20 14:19:06 +00:00
Nils Kneuper
3234dac11e pot-update...
(all textdomains beside wesnoth-units *should* be ready for translations)

regenerated doc files (no changes here...)
2009-09-20 14:03:04 +00:00
Nils Kneuper
64abf3e200 add a default textdomain declaration...
...(using "./utils/change-textdomain -t data/")
2009-09-20 13:53:46 +00:00
Eric S. Raymond
54f53b9710 Final LoW prose polishing. 2009-09-20 13:18:50 +00:00
Guillaume Melquiond
0d92ce900b Removed code/data duplication of end_level...
...handling between actions.cpp and play_controller.cpp. (Fix for bug
#14160.)
2009-09-20 12:54:05 +00:00
Phil Barber
073a02a1c5 Add and wire new Shadow portrait, update changelogs, portrait credits. 2009-09-20 11:22:03 +00:00
Phil Barber
41d52119ff Add and wire new Spectre portrait, update changelogs, portrait credits. 2009-09-20 11:19:47 +00:00
Nils Kneuper
83ca17b5b5 updated German translation 2009-09-20 11:17:42 +00:00
Phil Barber
deaec451b7 Add and wire new Nightgaunt portrait, update changelogs, portrait credits. 2009-09-20 11:16:16 +00:00
Mark de Wever
84344b3261 Let the window loop directly call events::pump.
This makes it easier to add the transition to the new event system.
2009-09-20 06:33:39 +00:00
Alexander van Gessel
f197d36536 Add 'reduce()' formula function 2009-09-20 02:37:06 +01:00
Iurii Chernyi
aee65c442e new features for gamestate_inspector 2009-09-19 22:03:41 +00:00
Guillaume Melquiond
3d66a37386 Allowed custom cost functions for Lua pathfinder. 2009-09-19 21:51:46 +00:00
Guillaume Melquiond
5e6f8bfd4b Added parameters to Lua pathfinder. 2009-09-19 21:51:42 +00:00
Guillaume Melquiond
4292565a0f Added a shortest path finder to Lua. 2009-09-19 21:51:38 +00:00
Iurii Chernyi
c8da727c37 refactored previous commit 2009-09-19 19:45:38 +00:00
Iurii Chernyi
2ffa516eba fix a bug with weight being set to 0 incorrectly...
...in case of considering wounded units during recruitment and
recall. thanks to silene for spotting this.
2009-09-19 19:38:29 +00:00
Iurii Chernyi
0d261f3770 tribute to changelogs 2009-09-19 19:09:27 +00:00
Iurii Chernyi
4848a57604 improved default ai recruitment and recall...
...make it consider enemy potential recruits as potential opponents, as
well. this fixes some 1st turn recall/recruit issues
2009-09-19 18:54:03 +00:00
Iurii Chernyi
8a9263e80e make AI consider 'unit cost vs recall cost' when recalling 2009-09-19 18:53:54 +00:00
Alexander van Gessel
eb21c0fcba Move side 1 starting location in Lintanir following mapchange 2009-09-19 16:14:18 +01:00
Iurii Chernyi
236e627462 make AI consider units's XP and potential advancements when recalling 2009-09-19 12:21:13 +00:00
Nils Kneuper
c115668630 updated Dutch translation 2009-09-19 09:33:52 +00:00
Iurii Chernyi
0e8e19c293 teach default ai recruitment to recall good units 2009-09-19 09:23:44 +00:00
Alexander van Gessel
160000a40a Remove support for some deprecated WML and old drake names 2009-09-19 01:53:16 +01:00
Eric S. Raymond
50e5349eea Konrad II must survive, so give him a hero crown to nark the fact. 2009-09-19 00:46:38 +00:00
Alexander van Gessel
28c1211828 Give the Fire Dragon 100% fire resistance 2009-09-19 00:57:26 +01:00
Alexander van Gessel
e6503d086d Re-add Fire/Inferno drake fire resistances that got lost in frame updates 2009-09-19 00:08:37 +01:00
Lari Nieminen
304bdc6c9f Possible hack fix for bug #14341. 2009-09-18 21:18:54 +00:00
Mark de Wever
78b01446e3 Remove an unneeded include. 2009-09-18 18:17:14 +00:00
Nils Kneuper
e3375c79bf updated German translation 2009-09-18 18:12:34 +00:00