59 Commits

Author SHA1 Message Date
Guillaume Melquiond
59af0fbf58 Reverted part of 2009-09-19T00:53:16Z!ai0867@gmail.com;
broken WML should not prevent the game from starting. (Fix for bug #14739.)
2009-11-12 04:48:53 +00:00
Alexander van Gessel
160000a40a Remove support for some deprecated WML and old drake names 2009-09-19 01:53:16 +01:00
Tomasz Śniatowski
5ae38e8898 split random.hpp into creating separate headers...
...for the rng and simple_rng class
2009-07-18 16:48:14 +01:00
Alexander van Gessel
49a7ec6f96 Reinstate [race] warnings, stop mapgen from triggering them. 2009-07-16 23:51:35 +01:00
Guillaume Melquiond
081adc019b Reverted error message since the map generator...
...relies on dummy races for naming purpose.
2009-07-16 20:57:21 +00:00
Alexander van Gessel
c5c58eea1d Deprecate the right thing this time: missing [race] id and plural_name. 2009-07-10 08:41:02 +01:00
Alexander van Gessel
dd3924f78f Revert "Deprecate [race] name."
This reverts commit 2009-07-02T20:43:51Z!lari.nieminen@iki.fi.
2009-07-10 08:27:59 +01:00
Alexander van Gessel
9f3f98f687 Deprecate [race] name. 2009-07-10 06:30:23 +01:00
Guillaume Melquiond
5a26250e09 Removed config::child_list from race.hpp. 2009-03-20 07:07:27 +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
Greg Copeland
7c36c0f0ef Minor code clean up.
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.
2008-07-24 14:39:17 +00:00
Mark de Wever
3e248fb475 Update doxygen comment style. 2008-05-25 18:06:03 +00:00
Jörg Hinrichs
64ca3423ac race should not depend on game_state.
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.
2008-04-02 22:10:35 +00:00
Mark de Wever
001af46e6e Updated all headers to 2008. 2008-02-16 08:47:16 +00:00
Mark de Wever
a23b02fade units spawned with unit in events can now have random traits...
...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.
2007-12-25 14:25:47 +00:00
Mark de Wever
3df02965dd WML_ASSERT -> VALIDATE 2007-12-15 15:16:08 +00:00
Benoît Timbert
f4c6304c96 Gender variation for the race name displayed.
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 ?)
2007-12-10 21:55:45 +00:00
Ali El Gariani
94c76d23d8 Remove unused (and not small) data members from the race class. 2007-12-06 00:48:24 +00:00
Mark de Wever
5bf97deee2 Added a todo for after 1.4 branching. 2007-12-05 20:52:40 +00:00
Benoît Timbert
8965563d72 The old plural [race] name= key is not plural_name=
Add a few race descriptions for proof of concept purpose
2007-12-01 18:26:22 +00:00
Mark de Wever
1b170b84b1 Make sure all members are initialized in the constructor. 2007-09-20 15:39:40 +00:00
Ali El Gariani
5ab1093fe7 Fix an encoding error 2007-09-12 19:13:37 +00:00
Ali El Gariani
e87a1fd2f1 add code to handle a translatable "description" WML key in [race] 2007-09-12 17:19:22 +00:00
Mark de Wever
88b3314cb1 Fixes an encoding change introduced in 2007-09-05T04:00:36Z!alinkmaze@gmail.com. 2007-09-05 19:06:01 +00:00
Ali El Gariani
304e997edd Give an "id" key to [race] (which also still have the "name" key)
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)
2007-09-05 04:00:36 +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
704df8511f doxygen 2007-08-16 23:13:14 +00:00
Bruno Wolff III
a1da27a34f Set not_living based on the undead and mechanical traits...
...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.
2007-08-15 15:03:56 +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
0dd72ff34f Remove a line of debug code which got in in commit 18998. 2007-07-22 10:06:18 +00:00
Mark de Wever
72fbebf919 Rewrote the comment on why the name generation could cause different traits.
(it could be ported to 1.2 but there's no real need)
2007-07-22 08:34:37 +00:00
Mark de Wever
6bffa4fd81 the unit name generation could with different locales call get_random()...
...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)
2007-07-21 14:55:13 +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
Patrick Parker
a4bd288cc2 allow effect to filter on unit_gender
add utility functions gender_string() and string_gender()
2007-04-16 01:52:41 +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
Rusty Russell
ee1e406e42 Cast to correct type. Removes g++ warning 2006-05-28 05:06:56 +00:00
John W. C. McNabb
b9489e5439 fix [Warning] comparison between signed and unsigned integer expressions 2006-05-27 17:22:15 +00:00
Rusty Russell
d2e62235c1 Fix unsigned warning (g++ 4.0): num_xxx should always be unsigned. 2006-05-10 07:37:51 +00:00
Dominic Bolin
af1d7ba478 use any of 'yes','on','true' for boolean strings 2006-04-27 20:25:04 +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
ba195ecd8a [[Attack some problems with data serialization in saves]]
* 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...
2005-03-27 23:06:17 +00:00
Yann Dirson
767e245049 split a new rng class out of replay, sanitized a bit the deps using this 2005-03-22 22:09:28 +00:00
Dave White
bb9731185a made it so undead units have a dummy 'undead' trait...
...with a description of the effects of being race undead
2005-03-11 02:40:00 +00:00
Philippe Plantier
1949375acf Replaced split_utf8_string by a new "utf8_iterator" class
Moved all utf8 encoding / decoding-related code to
serialization/string_utils.hpp
2005-03-03 21:52:40 +00:00
Dave White
c0d61780d0 added dextrous trait for elves.
Removed loyal trait as a random trait; can only be given by scenario
designer. loyal units are free of upkeep.
2005-02-28 03:44:44 +00:00
Guillaume Melquiond
fa1f3f6444 Remove the template code from animated.hpp and put it into animated.cpp.
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.
2005-02-21 09:05:51 +00:00
Guillaume Melquiond
2ab05941b5 Completely remove string functions from config.cpp. 2005-02-20 21:45:22 +00:00
Dave White
c661b3043a reduced warnings to 0 on VC++ 2004-11-18 04:08:33 +00:00