65 Commits

Author SHA1 Message Date
Patrick Parker
c078725ba1 complex WML variable substitution (almost everywhere)
* fix a bug in own_village code

* other minor fixes
2007-03-03 10:53:02 +00:00
Patrick Parker
6f1ba9528f replace message option condition show_always=no with...
...[show_if]condition[/show_if]
2007-02-24 22:20:53 +00:00
Patrick Parker
061c09ec5d fix non-virtual destructor warning 2007-02-24 09:43:51 +00:00
Patrick Parker
31c41edcff use lazy-evaluation to auto-store units 2007-02-24 08:57:38 +00:00
Jérémy Rosen
84f2afbfbb completely rewrote WML local variables, it should work correctly now 2007-02-19 09:07:10 +00:00
Mark de Wever
7e954a1559 marked some functions for inlining
header cleanups
2007-02-12 20:50:50 +00:00
Jérémy Rosen
16771cd619 fix wose death anim, fix WML being broken.
I will port the wose fix to 1.2 myself if it is needed
2007-01-12 23:09:05 +00:00
Jérémy Rosen
3d86ca3575 add the capacity to have variables automatically set in WML
* all SUF now can access the filtered unit via 

* events can access  and  the same way
2006-12-15 20:56:45 +00:00
András Salamon
8d25fb99a6 codeclean in src, mostly Dave's new email address (checked with cvs diff -b)
BY THE WAY, many of the source files have no copyright headers!
2005-07-02 21:37:20 +00:00
András Salamon
8bd9bc98a5 ran codeclean against files 2005-06-04 19:16:06 +00:00
Dave White
1943ac5873 made menu widgets sortable 2005-05-10 22:15:57 +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
Guillaume Melquiond
6c5e990813 Please verify that headers are still self-contained after removing a dependency. 2005-03-23 08:52:10 +00:00
Yann Dirson
d7174db26f include cleanup: unit*, variable 2005-03-10 22:57:23 +00:00
Yann Dirson
0772bb83e9 first step towards making variable handling independant of game_events:
put the relevant prototypes into their own header and use it where applicable
2005-03-06 18:12:19 +00:00