76 Commits

Author SHA1 Message Date
Patrick Parker
402c8e4c93 added an int_to_color() utility function 2007-02-24 04:58:31 +00:00
Mark de Wever
72eb863302 marked some functions for inlining 2007-02-09 23:01:38 +00:00
Mark de Wever
4d31f94e46 removed unused function team::music 2007-02-09 20:27:10 +00:00
Jérémy Rosen
c323cfa7fa fix team translation in mp game, thx to coren 2006-12-27 13:39:18 +00:00
John W. C. McNabb
28b06edc9d [[Fixes for LOW_MEM behavior]] 2006-11-12 18:38:34 +00:00
Serge Martin
f854c7eff7 some format clean 2006-10-10 14:14:26 +00:00
Elias Pschernig
b2e0591866 Fixed bug #6669:
recruitment_pattern is not ignored anymore inside an [ai] section
which also has a turns/time filter.
2006-09-07 12:38:11 +00:00
Jörg Hinrichs
261e766797 fixes bug #6390
(AI temporarily takes control of a side that the host wants to
reassign via the command line). This implements to transfer control to
allies.
2006-09-05 20:00:40 +00:00
Dominic Bolin
5c1d673a18 Don't invalidate villages for flag animations, unless they are owned. 2006-08-10 17:38:29 +00:00
Rusty Russell
307c813c16 Revert simplification of upkeep,
...as per ml discussion so scottk doesn't work himself to death.
2006-05-19 08:15:18 +00:00
Dominic Bolin
5b81200789 modify finishing gold bonus based on upkeep; fix problems with allow_player 2006-05-15 20:39:10 +00:00
Gunter Labes
a8ae1fc7f1 [[MP features]]
* two additional MP timer settings, time reservoir limit and action bonus:
    Reservoir prevents the turn timer from exceeding an upper limit.
    Action bonus is added after turn for each attack, capture, and recruit.

* share view/map option removed from multiplayer create screen

* slider for each player to adjust their base income

...and then we shall have peace
2006-03-25 23:41:10 +00:00
András Salamon
99bbbd6a51 whitespace cleanup 2006-01-12 11:04:50 +00:00
Jérémy Rosen
8e43e4f4b8 first round of warning fixes 2006-01-08 11:14:47 +00:00
Jérémy Rosen
c9090cbc90 added fisher's clock, patch by mtx 2005-12-16 21:52:50 +00:00
John W. C. McNabb
0c56b20f75 cleanup of team color code 2005-12-15 17:33:20 +00:00
John W. C. McNabb
c6d4551563 modifications to team_rgb 2005-12-12 04:09:50 +00:00
Jérémy Rosen
297a1b710e add anonymous music for unknown teams 2005-12-10 10:11:22 +00:00
John W. C. McNabb
42e8513a44 added infrastructure for dfool_ai,
note that the dfool_ai is in a wierd state because of interuption in
programming by mechanical failure, and not ready for use.  This should
not effect the regular ai, however.
2005-11-21 00:39:03 +00:00
John W. C. McNabb
04c66b819f added team_rgb to side tag 2005-11-18 04:03:44 +00:00
John W. C. McNabb
7d8962dda0 recoloring of units to team colors 2005-11-12 20:44:09 +00:00
Jörg Hinrichs
0f7816c9ef New replay functionality. 2005-11-08 22:23:03 +00:00
Dave White
8f4d5a8031 fix to make capture events mutating like other events 2005-09-18 23:32:23 +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
Philippe Plantier
50098e0021 Fixed bug #12611:
[terrain] tag modifying village existence interacts badly with it
being already captured and save/loading
2005-04-17 15:40:34 +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
f83a0b1f76 split a game exceptions into their own file...
...to avoid gratuitous dependencies on gamestatus, some cleanup of
deps against gamestatus
2005-03-22 23:42:37 +00:00
Philippe Plantier
a8c22c0d6f Added the silent= option in the [objectives] tag, ...
...which allows objectives to be silently changed.

When there are no objectives in a category (win / lose), this category
is now not displayed at all.
2005-03-19 21:26:30 +00:00
Philippe Plantier
dee75de20c [[Side-handling and objective fixes]]
* Added the ability for each side to have its own objectives.
* Applied a modified version of patch #3789 from ott which allows objectives to
  be set via events.
* Fixed some compile-time warnings
2005-03-19 13:02:34 +00:00
Yann Dirson
64250882ba include cleanup: map 2005-03-10 01:47:57 +00:00
Guillaume Melquiond
98a061f4fe Added droid patch (#3651) from Darthfool. 2005-01-22 10:47:17 +00:00
Isaac Clerencia Perez
a1214b626d Added wassert(), a assert()-like function forcing a crash.
Replaced every assert() with wassert()
2004-12-31 21:01:38 +00:00
Dave White
2eabb754ec patch to allow multiple recall lists 2004-09-13 03:16:19 +00:00
Dave White
1eb02e3bef made Windows version compile again 2004-08-22 01:30:07 +00:00
Dave White
5e0815989d added feature to replace an AI or local player with an observer;
added some optimizations.
2004-08-21 22:21:05 +00:00
Philippe Plantier
5c7b8585a3 [[WML includes and village banners]]
* Added support for per-scenario configurable village flags

* Added sample Black-Eyed banners for SotBE

* Added support for relative {includes} in WML files ( {./utils.cfg}
  instead of {scenarios/Son_Of_The_Black_Eye/utils.cfg} for files in
  scenarios/Son_Of_The_Black_Eye}

* Added patch #3262 from Cedric
2004-08-03 19:50:01 +00:00
Dave White
420d9e8cdc made it so edges of the map could be cleared of shroud and fog of war 2004-07-25 23:17:47 +00:00
Dave White
b3d382cdff added new preferences dialog with tabs 2004-06-17 18:48:35 +00:00
Dave White
83b9db2e5d made color selection dialog in multiplayer work.
Made load dialog not take up lots of CPU. fixed bug where underlying
widgets could 'show through' the load dialog
2004-06-13 21:44:14 +00:00
Dave White
ff620f6ca4 tweaked 'Crossroads' scenario 2004-06-04 20:20:41 +00:00
Dave White
6105dc96f3 added new ai parameters. Tweaked settings of Isle of Anduin scenario 2004-06-02 19:28:20 +00:00
Dave White
0ace5f099e allow some slots to be empty in a multiplayer game 2004-05-26 19:41:53 +00:00
Dave White
f31c209d18 fixed compile errors 2004-05-24 15:05:02 +00:00
John B. Messerly
aed47f10d9 /tmp/cvs55Zujl 2004-05-24 04:13:20 +00:00
John B. Messerly
eacd68f8c0 [[Minor UI and gameplay fixes]]
* Add a Gold column to the status table (which accessible from the main menu).
This field is blank for enemies.

* Fixed the logic for determining who should and should not be included in the
status table to work better with shared maps/vision. (this change only
affects CVS)
2004-05-17 04:43:51 +00:00
John B. Messerly
283370720d Added a "shared vision" option to multiplayer games...
...(and single-player games, via the scenario cfg file). It causes all
allied players to be able to see the same fog and shroud.

Notable changes by file:

* data/translations/english.cfg = added a "Shared Vision" string

* src/multiplayer.[ch]pp = added a "Shared Vision" checkbox

* src/multiplayer_connect.[ch]pp = added a shared_vision parameter to
load_game

* src/playlevel.cpp = clear shroud for each team once up front, before
the first player's turn

* src/replay.cpp = fixed several commands not clearing fog/shroud
or refreshing the minimap properly

* src/team.[ch]pp = changed shrouded(x,y) and fogged(x,y) methods to
return true only if the square is shrouded/fogged for every allied
player, if and only if shared vision is turned on for this team.
2004-05-09 05:14:50 +00:00
Dave White
011244a19e attempt to fix crashes when units with invalid sides appear,
by rejecting such invalide sides in the unit's constructor
2004-05-07 15:03:59 +00:00
John B. Messerly
8a80955b83 Added the ability to move units on fog/shroud maps without ...
...updating the fog/shroud, so the moves can be undone. The player can
commit the moves, forcing the fog/shroud to update, but then the moves
can no longer be undone.  Useful to make fog/shroud maps behave more
like normal maps, with respect to move undoing.
2004-04-25 18:50:42 +00:00
Dave White
accbc0f772 code refactoring - simplified the 'display' module 2004-04-22 18:58:59 +00:00