68 Commits

Author SHA1 Message Date
Fabian Müller
050cff18a7 patch #3270 Fix for bug #19120 2012-05-19 15:57:33 +00:00
Ignacio R. Morelle
6ca69b2df5 New year copyright update 2012-01-07 02:35:17 +00:00
Mark de Wever
ecbabea838 New year copyright update. 2011-01-01 15:57:50 +00:00
Guillaume Melquiond
eeb047de55 Fixed file headers so that they match the content of the COPYING file. 2010-09-01 21:12:38 +00:00
Guillaume Melquiond
e20aa4a7ee Avoided costly roundtrip through strings. 2010-08-21 07:18:43 +00:00
Mark de Wever
a99c78e0d8 Update doxygen comment.
The filename after the @file comment is optional (spotted by alink).
2010-07-26 21:32:18 +00:00
Guillaume Melquiond
76c34a23d3 Modified WML attributes so that they are stored with...
...smaller effective types when they are not translatable.

This patch considerably reduces the memory footprint of WML and speeds it up.

It should not change any WML behavior, except for a few corner cases
detailled below:

- "off" is no longer a synonym for "no" (it wasn't used anyway),

- _"42" is no longer an integer,

- untranslatable "true" and "false" are stored as booleans, hence
  displayed as "yes" and "no",

- "042" is now understood as octal notation (hence 34) rather than decimal,

- hexadecimal notation "0x42" is now recognized.
2010-05-24 08:01:31 +00:00
Guillaume Melquiond
ab21de1ef1 Added conversions from config::proxy_string to int. 2010-04-05 06:02:01 +00:00
Guillaume Melquiond
01e0010adf Removed hardcoding of boolean names when storing values into config object. 2010-03-27 10:59:17 +00:00
Mark de Wever
92f5f92ce5 New year copyright update. 2010-01-01 13:16:49 +00:00
Guillaume Melquiond
0f42610295 Simplified handling of unit types.
As a side effect, unit animations no longer appear as leaked for Valgrind.
2009-12-23 13:09:53 +00:00
Guillaume Melquiond
e3b2a340c5 Removed unused class statistics::disabler. 2009-08-16 10:08:28 +00:00
Guillaume Melquiond
d10602a789 Added cost of units recruited, recalled, killed, and lost,
...to the statistics window (patch #1190 by lizard).
2009-07-14 17:35:32 +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
Guillaume Melquiond
60808a88ba Got rid of pointers to config objects. Removed code duplication along the way. 2009-04-04 17:51:20 +00:00
Guillaume Melquiond
cf8325c20c Replaced field config::values by function...
...config::attribute_range which returns opaque iterators.
2009-03-20 07:08:43 +00:00
Guillaume Melquiond
1358df56a0 Removed config::child_list. 2009-03-20 07:07:17 +00:00
Guillaume Melquiond
119a2eb594 Reduced truncation error while summing statistics. 2009-03-10 08:37:11 +00:00
Guillaume Melquiond
da28488cc7 Removed the old system for stats. 2009-03-10 08:37:02 +00:00
Guillaume Melquiond
c0e48a5692 Fixed display of negative "expected" values. Cleaned code and fixed typos. 2009-03-09 18:17:10 +00:00
Mark de Wever
973a0a7d5c Remove trailing whitespace. 2009-01-01 10:28:26 +00:00
Mark de Wever
a5d1d2e969 New year copyright update. 2009-01-01 10:27:41 +00:00
Eric S. Raymond
9223460daa Remove unused headers. 2008-11-09 04:35:13 +00:00
Mark de Wever
73d2985ff2 Initialize all members. 2008-11-03 18:49:25 +00:00
Eric S. Raymond
15ae149c71 Fix bug #12322 (Campaign statistics not carried from scenario to scenario) 2008-09-23 13:24:39 +00:00
Mark de Wever
42ba967d5d MSVC 6 cleanup.
Now that MSVC 6 is no longer supported start to remove some helper code
to work around problems in that compiler. The first step is to comment
out the code and replace it with new helper code that uses the standard.
The second step is to remove the helper code and fix all callers.

Patch 3/3 for step 2: Remove push_back and fix it's callers.
2008-08-24 16:12:22 +00:00
Eric S. Raymond
69c4c81fa6 Fix bug #11175 (Strange Statistic Losses).
Statistics are now associated with side ID (team leader description)
rather than team number.
2008-08-21 23:13:07 +00:00
Mark de Wever
60a2b69eec Initialize all members. 2008-07-24 18:51:40 +00:00
Ali El Gariani
5656ab04d0 convert the few true/false used in code to yes/no
(which seems to be the standard and is now faster and smaller)
2008-06-29 20:18:44 +00:00
Pauli Nieminen
431d72afd6 Fixed statitics not add turn data from previus scenarios (bug: #11719) 2008-06-29 12:05:41 +00:00
Mark de Wever
19564039ee Update doxygen comment style. 2008-05-25 10:25:23 +00:00
Pauli Nieminen
6fd213799e Fixed new damage statistics code 2008-05-14 20:48:25 +00:00
Pauli Nieminen
90930ec599 Made new stats visible same time with old for comparision (need testing) 2008-05-14 14:47:24 +00:00
Pauli Nieminen
859958b006 Added possibility to use per fight EV statistics proposed by maboul
Fixed possible cause for client disconnects when having bad connection

Cleaned up game config reading code

minor code cleanups
2008-05-11 19:34:32 +00:00
Eric S. Raymond
f0c31af774 Rename unit::id() to unit::type_id(). 2008-03-12 11:38:42 +00:00
Ignacio R. Morelle
93b26eba79 Most boolean WML attribute probes use the standard util::string_bool() now
[set_variable] accepts string_length=

[variable] accepts boolean_not_equals=

[modify_side] can set a side's AI parameters now, using the [ai]
syntax as side declarations do (patch #984)
2008-03-06 11:14:52 +00:00
Mark de Wever
001af46e6e Updated all headers to 2008. 2008-02-16 08:47:16 +00:00
uso
1a8b179a51 add damage statistics for the current turn...
...and show it in the statistics window
2008-01-11 02:31:03 +00:00
Gunter Labes
ae9e10f260 codeclean run
set svn:eol-style to native where missing
2007-08-31 19:09:40 +00:00
Hans Joachim Gurt
cf12e95a7e doxygen, comments 2007-08-25 23:22:46 +00:00
Mark de Wever
080eb69f60 Updated the headers to state GPL 2+ and a few changelog cleanups. 2007-08-15 13:41:56 +00:00
Mark de Wever
bb01934b85 A rather large update which updates the copyright info
* Wesnoth is distributed under the terms of the GPL version 2, made
  that more explicit

* updated the copyright range to 2007

* updated Dave's email adress
2007-07-21 07:28:04 +00:00
David Philippi
f231fb12e0 merged patch #714 by silene
- removal of dead stuff and static linkage marking for internal functions
2007-04-06 12:26:02 +00:00
David Philippi
24138ab340 reduced inter-header dependencies around unit.hpp 2007-01-04 18:13:49 +00:00
Dominic Bolin
c989fe09b0 Fix ai usage of unit::type() 2006-07-29 19:34:46 +00:00
Rusty Russell
50b7429d0f Push config_writer furthur up auto-save callchain.
Doesn't make any difference yet, but eventually we should be creating
config_writer at top level and passing it around for each subsystem to
write to it, instead of pasting together a config from each subsystem
then writing the whole thing out.
2006-06-18 05:27:27 +00:00
Jérémy Rosen
fc168242bd make recruit undoable when there is no randomness in recruiting 2006-05-08 06:55:40 +00:00
Rusty Russell
8c65520a19 Wean actions.cpp and statistics.cpp off battle_stats:
use battle_context instead.  (Another decker2 cleanup: only AI and
mouse_handler still use evaluate_battle_stats now)
2006-04-27 10:53:31 +00:00
Dominic Bolin
807f6f7d75 All modified source code for the rewrite. 2006-03-20 22:37:59 +00:00
Bruno Wolff III
e4beea352c Change sprintf calls to snprintf in trunk. 2005-11-12 20:25:12 +00:00