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
Mark de Wever
692e5f78bc
Add the autoclose feature for dialogs/windows.
...
This might not be really useful for normal usage, but allows the
unit tests to show a window. (This will be implemented later.)
2009-04-30 20:56:41 +00:00
Mark de Wever
a94e980c38
Add helper class to track all window instances.
...
This will be used to send event to the proper window, this allows
windows to post messages to themselves and let them delay for a certain
amount of time.
2009-04-30 20:56:35 +00:00
Mark de Wever
15e4fa87db
Remove an unused parameter.
2009-04-30 20:56:30 +00:00
Mark de Wever
15dab392d6
Set the retval_ explicitly to NONE.
2009-04-30 20:56:25 +00:00
Mark de Wever
fae501d7c3
Add a new return value.
...
This value is not used, but will be implemented in the future.
2009-04-30 20:56:19 +00:00
Iurii Chernyi
54bbbc1022
Fixed crashes related with undo actions incorrectly treated...
...
...as dismissal undo actions (because of uninitialized member variable
in undo_action). Thanks to Reisiger for investigating that segfault.
2009-04-30 18:56:09 +00:00
Mark de Wever
9195d91b7f
Fix a compiler warning.
2009-04-30 18:19:48 +00:00
Mark de Wever
ccd709fcd0
Fix a compiler warning.
2009-04-30 18:05:32 +00:00
Jörg Hinrichs
4809396dc2
Savegame reorganization Step 1: a simpler interface to saving and loading.
...
Further refactoring savegame.cpp and slightly simplifying the interface.
2009-04-30 18:04:23 +00:00
Iurii Chernyi
84fa740084
Improved ai/testing logging to log per-turn information about gold,
...
...villages, and units
2009-04-30 16:35:04 +00:00
Iurii Chernyi
b045dfeb0d
New helper function team_unit_cost to calculate total cost of units owned by side
2009-04-30 16:34:44 +00:00
Gunter Labes
97582b31f8
Added the 'sub' key to [set_variable] to subtract from the variable.
2009-04-30 15:35:47 +00:00
Gunter Labes
59f2c43f62
Made the number of enemies to defeat depend on the difficulty.
2009-04-30 14:46:11 +00:00
Gunter Labes
5e3a688b41
fixed formatting
2009-04-30 14:46:02 +00:00
Lari Nieminen
1e8e8b1982
Fixed the name-revealing event not triggering...
...
...(at least in 1.6) because of the name= _ "?" filter.
2009-04-30 13:00:59 +00:00
Mark de Wever
4e4007658f
Implement the width reduction for tgrid.
2009-04-30 12:14:58 +00:00
Mark de Wever
f15cad978c
Fix indention.
2009-04-30 12:14:54 +00:00
Mark de Wever
f3e16556bc
Add tscrollbar_container::NEW_request_reduce_width.
2009-04-30 12:14:50 +00:00
Mark de Wever
48d5a20b1a
Forward all layout functions to the grid.
...
The container does nothing regarding resizing so forward everything.
2009-04-30 12:14:45 +00:00
Mark de Wever
395d79dafb
Add NEW_request_reduce_width for tcontrol.
2009-04-30 12:14:41 +00:00
Mark de Wever
23aed788a3
Formatting fix.
2009-04-30 12:14:36 +00:00
Mark de Wever
0ffdd48253
Fix minor formatting issue.
2009-04-30 12:14:32 +00:00
Guillaume Melquiond
7a23892525
Added a pipe to prevent variable substitution from...
...
...creating an invalid UTF8 string. (Bug #13454 )
2009-04-30 06:22:47 +00:00
Mark de Wever
f8473020e4
Move gui/widgets/window_builder* to gui/auxiliary.
2009-04-30 06:22:28 +00:00
Ignacio R. Morelle
28ecafc930
Get rid of the show_intro() stub procedure, replaced with show_storyscreen().
2009-04-30 02:00:48 +00:00
Eric S. Raymond
709ea04e11
The previous attempt to keep from leaking generated journey macros...
...
...into the global macro namespace got a bit overzealous.
2009-04-29 20:59:48 +00:00
Jörg Hinrichs
9678bd35f1
Savegame refactoring: Removes some more references to dialogs.hpp.
2009-04-29 20:08:49 +00:00