Commit graph

57 commits

Author SHA1 Message Date
Martin Hrubý (hrubymar10)
bc4d22dc72 Migrate links to https if available - Fwd c18537edc0 2018-07-16 19:07:08 +11:00
Charles Dang
e270a7c665 Formatting cleanup: > > to '>>`
Allowed since C++11. Might as well use it everywhere.
2018-02-21 12:11:21 +11:00
Gregory A Lundberg
b5f76eff79
Bump copyright to 2018 2018-01-19 00:02:20 -06:00
Charles Dang
2101353d36 Convert include guards to the shorter #pragma once
Turns out I mistook @celticminstrel's opinion that we should use include guards over pragma (737916e).
Since all major compilers support `#pragma once`, there's no reason not to use it.

For future mergability reasons, this excludes src/spirit_po and src/xBRZ. It also excludes src/boost-patched.
2017-05-09 19:41:37 +11:00
Celtic Minstrel
b4dc11ce36 Belated 2017 copyright update 2017-03-19 10:05:38 -04:00
Celtic Minstrel
3ac7f8d970 NULL -> nullptr
A few cases of NULL were missed, since changing them led to errors
(Mainly instances where it was passed to a boost::function)
2016-03-31 00:42:38 -04:00
Chris Beck
ba51524f6e update copyright to year 2016
using this shell script:

find src -type f -print0 | xargs -0 sed -i "s|Copyright (C) \([[:digit:]]*\)\([ ]*\)-\([ ]*\)2015|Copyright (C) \1\2-\32016|g"
2016-01-02 23:59:31 -05:00
Ignacio R. Morelle
57ae45387a New Year copyright update 2015-01-01 19:07:35 -03:00
Aishiko
c6d11a5f5e Implement unit instance recall costs.
Actually allows for the unit instance recall costs to be used. Proper
taking of the gold and undoing the cost for each unit is implemented
and works.  At advancement if the unit's current recall matches their
unit_type's recall_cost then it takes the new unit_type's recall_cost
otherwise it keeps whatever value it currently has until it fails this
check.  Recall costs are also now persistant and will carry over from
one scenario into the next as well.

If a cost is not set, it will continue to use the team/side/default
costs, these changes should not affect the current workings when
dealing with unaltered scenarios, and unit config files.  I repeat This
will not affect or change the currently way things work UNLESS a user
alters a file or includes the new recall_cost (as in copies and
modifies a unit in the scenario unit files) for a unit instance in
their scenario file(s).
2014-03-17 17:49:15 -04:00
Ignacio R. Morelle
a4f47a63c7 New Year copyright update 2014-01-01 02:08:52 -03:00
Eric S. Raymond
043c4f9fd3 Remove $Id$ cookies. 2013-03-26 21:41:37 -04:00
Mark de Wever
43b71f2ff0 New year copyright update. 2013-01-01 09:22:03 +00:00
J. Tyne
1f68e0bb48 Add display of per-scenario statistics. 2012-09-08 19:02:29 +00:00
J. Tyne
887b552b1b Simplify the implementation of statistics::calculate_stats(). 2012-09-08 16:17:27 +00:00
J. Tyne
54eef94cf8 Pass some strings by const reference instead of value. 2012-09-08 15:47:52 +00:00
J. Tyne
724618c287 Split actions.cpp into six pieces (into a new "actions" subdirectory).
Most of the project files have also been updated, but I ran into some
difficulties trying to update VC9 and Xcode.
2012-08-25 14:06:46 +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
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
Mark de Wever
92f5f92ce5 New year copyright update. 2010-01-01 13:16:49 +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
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
15ae149c71 Fix bug #12322 (Campaign statistics not carried from scenario to scenario) 2008-09-23 13:24:39 +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
19564039ee Update doxygen comment style. 2008-05-25 10:25:23 +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
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
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
Gunter Labes
23ca57f01e ran codeclean over all files and set them all to svn:eol-style 'native' 2006-06-05 20:02:25 +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
Jörg Hinrichs
913192175c Initialization 2 2006-03-09 21:12:53 +00:00
András Salamon
cc1b0aecf0 add copyright notices (please change as appropriate), and deDOSify 2005-07-20 08:22:37 +00:00
András Salamon
8bd9bc98a5 ran codeclean against files 2005-06-04 19:16:06 +00:00
Philippe Plantier
04a1e93181 Removed the remains of the "replay verification" code
...which was broken and partially commented out.
2005-04-17 13:49:00 +00:00
Jon Daniel
ecdf0ae1d5 Applied patch #3849 from cyberjack:
fixes statistics are incorrectly modified during replay added a
verifaction for the generated statistics
2005-03-24 21:56:44 +00:00
Yann Dirson
7c783d82d8 include cleanup: statistics, theme, terrain, titlescreen 2005-03-10 22:03:32 +00:00