Guillaume Melquiond
3295c06b66
Added support for hierarchy of log domains, so that --log-info=gui/* works.
2009-04-25 10:10:54 +00:00
Mark de Wever
2e34d599ab
Log cleanups and minor modifications.
...
Rename all marcos to *_G_* to *_GUI_*. Rename *_GUI to *_GUI_G. Rename
the gui domain to gui/general and all other domains from gui_* to
gui/*. This change is done since silene wants to add wildcard
matching to the log domain names, eg gui/* for all gui domains.
2009-04-25 09:28:05 +00:00
Mark de Wever
cd48bfee81
Add a new generic logging header for gui2.
...
2009-04-24T23:18:31Z!guillaume.melquiond@gmail.com removed the specialized log domains and the macros to
make logging easier. I added them so I don't need to add the same
items to the gui files all the time. The auxiliary directory was
alread longer planned so some file in the widgets directory which are
no widgets can be moved there, this will be done later.
2009-04-25 07:56:49 +00:00
Mark de Wever
e761640021
Fix a compiler error.
...
YogiHH please have a look at this test case.
2009-04-25 06:02:27 +00:00
Mark de Wever
58fe6e826b
Fix a compiler warning.
2009-04-25 05:57:43 +00:00
Mark de Wever
3007cd4459
Fix a compiler error.
2009-04-25 05:57:20 +00:00
Ali El Gariani
5fe5678bb1
Remove compatibility code for 1.6RC1 replay
2009-04-25 03:46:22 +00:00
Guillaume Melquiond
0edc15c2a2
Added missing files.
2009-04-24 23:18:42 +00:00
Guillaume Melquiond
789736ac91
Removed specialized domains from log.hpp,
...
...so that adding a new domain no longer forces to recompile the whole
game.
2009-04-24 23:18:31 +00:00
Jörg Hinrichs
dce2a6c01e
Savegame reorganization Step 1: a simpler interface to saving and loading.
...
Transfer save-game dialog to gui2 and use it within savegame.cpp.
2009-04-24 21:59:53 +00:00
Chris Hopman
ccf75ada55
rewrite find_routes to use djikstra's algorithm rather than dfs.
...
runs, on average, in about 70% of the time as the previous
2009-04-24 20:53:25 +00:00
Iurii Chernyi
101af19730
Added ai_testing logs to log information about the winner,
...
...including information about AI indentifier
2009-04-24 18:38:47 +00:00
Iurii Chernyi
4d8e34290d
Added AI identifiers to AI config files
2009-04-24 18:38:38 +00:00
Iurii Chernyi
281b2076e4
new log category ai_testing
2009-04-24 18:38:18 +00:00
Mark de Wever
1dfe50c6e3
Remove some unused variables.
2009-04-24 17:28:46 +00:00
Chris Hopman
e2d8e85fee
tighten up threshold in case where node is outdated
2009-04-24 16:41:50 +00:00
Guillaume Melquiond
95c0464379
Avoided memory trashing by initializing only visited nodes.
2009-04-24 16:23:26 +00:00
Sergey Popov
0c8e66da18
Committed McShark's projectfiles update.
2009-04-24 11:33:40 +00:00
Eric S. Raymond
7f5299e1ac
wmllint and wmlscope detected some glitches.
2009-04-24 11:26:54 +00:00
Eric S. Raymond
5ed729e205
Wire in new music in appropriate places, note a TODO item.
2009-04-24 11:19:32 +00:00
Eric S. Raymond
7a836ab97b
Add some warning of a moveto trap.
2009-04-24 10:39:13 +00:00
Nils Kneuper
8e3a39a015
updated Czech translation
2009-04-24 10:17:10 +00:00
Eric S. Raymond
840234e65d
Merge first version of second-wave patch for Terror at the Ford.
2009-04-24 09:32:39 +00:00
Nils Kneuper
b1c974d10b
port autotools change for BSD to cmake recipe:
...
Conditionalized sendfile support on the presence of sys/sendfile.h,
since FreeBSD version is slightly different.
2009-04-24 08:41:31 +00:00
Chris Hopman
9c44d69905
[[code cleanup]]
...
- remove some profiling code
- move some stuff to anonymous namespace
- privatize some members of helper objects
2009-04-24 05:08:00 +00:00
Patrick Parker
c1a3bccab9
update the function signature to reflect changes in .hpp file
2009-04-24 01:40:15 +00:00
Sergey Popov
3b600d3a6e
Check for sendfile() only if header sys/sendfile.h is detected.
...
Hopefully there aren't any non-Linux platforms that have
have sys/sendfile.h and incompatible sendfile()
2009-04-23 23:00:59 +00:00
Gunter Labes
f59d1604fd
correct datadir option description...
...
...and also use the datadir when copying the css
2009-04-23 22:32:55 +00:00
Guillaume Melquiond
9535cf7fac
Conditionalized sendfile support...
...
...on the presence of sys/sendfile.h, since FreeBSD version is
slightly different.
2009-04-23 21:43:29 +00:00
Iurii Chernyi
0892b7d631
Fixed issue with autogen.sh not finding lua-5.1 on FreeBSD
2009-04-23 21:32:07 +00:00
Sergey Popov
ba72303717
Fixed compile warning.
2009-04-23 20:23:32 +00:00
Chris Hopman
a13ef96987
-update VC9 and CodeBlocks project files for 2009-04-23T20:10:43Z!cjhopman@gmail.com
2009-04-23 20:22:31 +00:00
Chris Hopman
336121d42b
rewrite a* search
...
- removing the pooled a_star_nodes and making a few optimizations
- runs in as little as 40% of the time of the old implementation
- remove astarnode.hpp and astarnode.cpp
2009-04-23 20:10:43 +00:00
Chris Hopman
7532730389
remove sqrt() from a* search heuristic,
...
...now uses just the squared value as it is significantly faster
2009-04-23 20:06:45 +00:00
Fabian Müller
eb5502d826
Restored the shroud=on again.
...
The missing shroud made the scenario impossible to win.
2009-04-23 19:08:36 +00:00
Fabian Müller
dfc472a77f
More framework for wml meta tags.
2009-04-23 18:29:43 +00:00
Eric S. Raymond
c58a732b08
Some TODo entries have been done.
2009-04-23 16:16:46 +00:00
Iurii Chernyi
9bcac70662
Fix MSVC-specific compilation problems (MSVC feels 'special' again)
2009-04-23 15:06:23 +00:00
Nils Kneuper
245f7f0df4
updated Noy's about entry upon his request
2009-04-23 09:49:44 +00:00
Gregory Shikhman
b63c4d10cf
Added GPL headers and id tag.
2009-04-23 06:42:48 +00:00
Gregory Shikhman
d79d54c4a8
initial commit. code is more or less GSoC prototype.
2009-04-23 06:17:24 +00:00
Ali El Gariani
c478001b90
Fix a slightly overestimated cost for moving through ZoC...
...
...with A* pathfinding. Probably no impact (traversing ZoC is rarely
the shortest path and checking multi-turn move trough ZoC is useless)
2009-04-23 02:51:56 +00:00
Eric S. Raymond
8ffa41056d
Deprecate two redundant macros, and change mainline to use the simpler ones.
2009-04-23 02:26:39 +00:00
Iurii Chernyi
4c18f22a21
AI Refactoring: some more comments of ai_action_result interface
2009-04-22 22:43:41 +00:00
Iurii Chernyi
d85287cdb1
AI Refactoring:
...
...ai_stopunit_result ai action, which allows the ai to concede all
moves and/or attacks of unit
2009-04-22 21:32:32 +00:00
Fabian Müller
235fb7af16
Added a test scenario for the lua interpreter.
2009-04-22 20:33:36 +00:00
Iurii Chernyi
da500bca0f
AI Refactoring:
...
...WIP version of ai_move_result, which provides a way for the AI to
move unit, reusing unit movement routine from ./src/actions.cpp
2009-04-22 20:17:31 +00:00
Fabian Müller
a13632b177
New EML tag wml_action that can define new action wml tags.
2009-04-22 17:57:13 +00:00
Gunter Labes
99679009f3
rewrote ban time parsing
...
* all time modifiers are now case insensitive except months (M) and minutes (m)
and you can also write (part of) them out
* invalid time modifiers cause an error
* permanent has to be explicitely stated as 'permanent' or '0'
2009-04-22 15:44:30 +00:00
Gunter Labes
376d77617b
made it so specific strings in /query commands are case insensitive
2009-04-22 15:44:08 +00:00