Added namespace 'rand_rng' to random.[ch]pp and changed callers
accordingly. Functions declared in random.[ch]pp are left in default
namespace.
This was part of a potential RNG bug hunt which turned up empty. The
namespace helps prevent some potential ambiguities as we have classes
declared using lower case and methods of the same name and case. The
namespace allows for non-ambiguous reference with the class.
This refactoring tries to fix that. It creates an own class for the
rng part of game_state that is used within race. This still needs to
be checked (Mordante will do that soon). If this commit causes all
kinds of weird problems (i don't think so, but you never know), feel
free to revert it.
...and also the names are the same (bug #10501).
NOTE there's a dummy gamestatus_editor.cpp for gamestatus.cpp which can
be used for the editor, this file is added to avoid the editor need to
pull in a lot more dependencies.
PS: for the following races i didn't add gender-specific names,
because i don't know if it make senses :
- Mechanical
- Monster
- Wose (do they have a gender ?)
The data is not yet adapted, and currently used as test-case to the transition
system which create an id from name if id is missing
The help also still use id and not name (but they are currently identical)
...in a manner consistant with other trait definititions. Get rid of
not_living key from race. Still need to put back a way for AI to tell
if a unit_type is going to be not_living.
...a different number of times. This lead to different names and traits.
Changed to call random a fixed number of times which fixes the traits.
The names are still wrong and still cause OOS errors but these should
not be fatal (Fixes bug #9472 partly)
* 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
* Made serialized data be saved as untranslated. To achieve this, added the
t_string class, which encapsulates a translatable string.
* Completely rewrote the (text) WML parser, making it use a tokenizer / parser
architecture. The parser is now much more strict and validates a WML grammar.
- Change to the WML syntax: pluses are now ignored, spaces are now forbidden
in WML keys
* Rewrote the way the variables are interpolated. There is no more default
interpolation, however, the vconfig class was added, which provides a
variable-interpolating proxy to config objects.
* There is still an important known bug: this is impossible to load textmode
save games now, because the statistics module saves some WML with spaces in
keys, which the parser refuses. I am commiting anyway to respect the string
freeze; the fix for this bug will come tomorrow
Hoping I do not break everything...
This code was indirectly included in at least 25 files: the 25 files
for which a dependency on string_utils.hpp has been added by a
consequence of its removal from animated.hpp. It should induce a small
compile time improvement.