33088 Commits

Author SHA1 Message Date
Guillaume Melquiond
e1770c4d20 Added precise preallocation for Dijkstra solution. 2009-05-02 13:18:45 +00:00
Mark de Wever
e6543fbfa7 Fix a compiler warning. 2009-05-02 12:41:48 +00:00
Guillaume Melquiond
2632d77ea6 Reduced memory consumption of Dijkstra's solution...
...from quadratic to linear with respect to movement points.
2009-05-02 12:22:28 +00:00
Guillaume Melquiond
89842480b5 Separated A* routes from Dijkstra routes.
Renamed move_left to move_cost along the way.
2009-05-02 12:22:20 +00:00
Mark de Wever
c07c237b35 Disable more savegame testcases.
Now the cases no longer return a failure due to the partial disabling before.
2009-05-02 11:32:35 +00:00
Guillaume Melquiond
a2a3959303 Oops, previous commit missed the cleaning part. 2009-05-02 08:58:42 +00:00
Guillaume Melquiond
7c610b5d41 Removed waypoints from routes, as they are not used there. 2009-05-02 08:46:16 +00:00
Patrick Parker
4da9564531 log_domain must be declared in each .cpp file 2009-05-02 02:21:56 +00:00
Iurii Chernyi
ad14528e49 Swapped places of ai_interface and ai_readwrite_context...
...in ai superclass hierarchy. This will allow to make the ai module
interface more independent from the ai module implementation and
reduce compile times. For now, only ai/ai_manager.hpp (class managing
the ai lifecycle), ai/ai_interface.hpp (individual ai contract)
ai/game_info.hpp (information about the game state passed to the ai),
ai/testing.hpp (ai/testing log domain) are exposed to the rest of the
game, taking transitive includes into account )
2009-05-02 01:04:19 +00:00
Tomasz Śniatowski
a84b04ff90 fix some msvc warnings 2009-05-01 23:30:21 +01:00
Tomasz Śniatowski
1286b73f2e fix some harmless vc9 warnings 2009-05-01 23:29:56 +01:00
Tomasz Śniatowski
204c2017d0 make the code call the proper vconfig ctor
- config*,config* instead of config&,bool
2009-05-01 23:29:09 +01:00
Mark de Wever
2e09eb2f78 Revert accidental commit. 2009-05-01 21:54:55 +00:00
Mark de Wever
5e0d0c8fd9 Fix a compiler warning. 2009-05-01 21:52:00 +00:00
Mark de Wever
1b7c2acac0 Initial commit of the lexical_cast test.
Copied from the svn version.
2009-05-01 21:51:51 +00:00
Nils Kneuper
aad97e4630 updated Slovak translation 2009-05-01 20:21:13 +00:00
Jörg Hinrichs
f8279e0cbf Remove an unnecessary assignment. 2009-05-01 19:50:11 +00:00
Mark de Wever
7033196d67 Replace the layout algorithm.
The new algorithm seems to be at par with the old algorithm so make the
new one the algorithm used. The algorithm still needs some polishing but
the big problem is the old algorithm which doesn't know about the new
scrollbar mode. So once this algorithm gets a bit more testing in trunk
the old algorithm can be removed and this one can get polished.
2009-05-01 19:42:23 +00:00
Mark de Wever
3fc7353c75 Add linked widgets in the new layout algorithm. 2009-05-01 19:42:11 +00:00
Lari Nieminen
a441c6e88a Re-fix bug #13462 simply by putting him on side 2 instead. 2009-05-01 18:41:03 +00:00
Tomasz Śniatowski
e97b8d3876 vc9 project file update from Reisiger 2009-05-01 19:40:09 +01:00
Lari Nieminen
7eab2413aa Ported 2009-05-01T18:17:47Z!lari.nieminen@iki.fi to trunk. 2009-05-01 18:19:26 +00:00
Mark de Wever
1d2b2e0316 Window code cleanups.
Since the last commit the return value of NEW_layout was no longer used. Moved
the file to a new separate header so it's easier to add new private functions
without the need to recompile the universe.
2009-05-01 17:52:16 +00:00
Mark de Wever
e09bd39005 Change the new layout algorithm to use exceptions.
Like the current algorithm it now throws an WML exception if the dialog
doesn't fit on the screen.
2009-05-01 17:25:48 +00:00
Mark de Wever
59c57745f6 Some minimap improvements.
Draw on the background again and integrate the drawing with the helper
routine.
2009-05-01 17:25:43 +00:00
Mark de Wever
4f1b9315c4 Disable an assert which gets triggered.
This assert shouldn't be triggered, but adding a workaround fixes the
issue. (The problem was discovered by YogiHH).
2009-05-01 17:25:32 +00:00
Guillaume Melquiond
2a22468420 Typo. 2009-05-01 16:58:11 +00:00
Guillaume Melquiond
14abb2f0f4 The dependency graph of Wesnoth is plain idiotic.
As if pathfind.cpp needed to depend on font.hpp...
2009-05-01 16:14:33 +00:00
Mark de Wever
2f314e9098 Add a new unit test for gui2.
Not all dialogs have been implemented yet, but they'll follow later.
2009-05-01 15:27:25 +00:00
Mark de Wever
97b3183ec9 Fix the POTFILES.in with a recent movement. 2009-05-01 15:25:55 +00:00
Guillaume Melquiond
a75261b893 Improved the pathfinder by making it touch only the visited nodes.
Should noticeably speed up the AI.
2009-05-01 15:19:22 +00:00
Mark de Wever
4542a96f4a Initialize all members. 2009-05-01 15:10:58 +00:00
Mark de Wever
a6cade6da8 Initialize all members. 2009-05-01 15:10:53 +00:00
Mark de Wever
dade64443b Initialize all members. 2009-05-01 15:10:48 +00:00
Mark de Wever
5b03edf54a Initialize all members. 2009-05-01 15:10:44 +00:00
Mark de Wever
0adb47b8d4 Initialize all members. 2009-05-01 15:10:39 +00:00
Mark de Wever
612ffe0747 Initialize all members. 2009-05-01 15:10:35 +00:00
Mark de Wever
9746875155 Initialize all members. 2009-05-01 15:10:31 +00:00
Mark de Wever
053ac56abb Initialize all members. 2009-05-01 15:10:27 +00:00
Mark de Wever
251491d8df Initialize all members. 2009-05-01 15:10:23 +00:00
Mark de Wever
9bf9ccfd16 Initialize all members. 2009-05-01 15:10:18 +00:00
Mark de Wever
d0abab3d40 Initialize all members. 2009-05-01 15:10:06 +00:00
Mark de Wever
995fe3e5c4 Change the way the editor files are added in cmake.
The new way is the same as scons and automake. This will fix some issues
I had with the not yet committed new unittests.
2009-05-01 15:02:03 +00:00
Guillaume Melquiond
7cc77aef1e Made the code readable. 2009-05-01 14:04:03 +00:00
Eric S. Raymond
d1a97f189f Address bug #13462. 2009-05-01 11:45:35 +00:00
Jörg Hinrichs
8000a95c34 Savegame reorganization Step 1: a simpler interface to saving and loading.
Makes the interface more consistent by clearly separating between
automatic and interactive saves.
2009-05-01 10:04:19 +00:00
Iurii Chernyi
75f6779ee8 AI refactoring: split ai_interface into three parts:
1) ai_interface - interface between the ai and the game

2) ai_game_info - information about the game for the AI (former
ai_interface::info)

3) ai_readwrite_context - interface between the ai
and ai components. 

Removed ai_interface code from ai/ai.cpp (this removed ~20% from
ai/ai.cpp, and, accidentally, left ai/ai.cpp exactly 2000 lines long)
2009-04-30 23:33:56 +00:00
Jörg Hinrichs
74e1e20612 Restore drawing of the minimap.
Mordante, please check if this code is ok. Not sure if draw_background
is really needed.
2009-04-30 21:22:52 +00:00
Mark de Wever
bbcb2b40cd Add parameter for the fake screen.
In order to make unit testing with different screen sizes possible it's
required to allow the setting of these values. Decided against doing it
in the constructor since I want to test on different screen sizes so
will rerun the function to get a different size. (Unit test code will be
committed later.)
2009-04-30 20:56:49 +00:00
Mark de Wever
a926991e5f Add doxygen comment. 2009-04-30 20:56:45 +00:00