49 Commits

Author SHA1 Message Date
Mark de Wever
f175d6a97d Make a member function a const member function.
Issue found by cppcheck.
2010-01-23 19:43:32 +00:00
Mark de Wever
92f5f92ce5 New year copyright update. 2010-01-01 13:16:49 +00:00
Gunter Labes
997a7da512 unified continue_replay() and process_oos()
made process_oos() a virtual function of play_controller with a
default implementation (probably not so useful) and two special
implementations in playmp_controller and replay_controller

call process_oos() directly from replay::throw_error() so we can
continue exactly where we left off if the user decides so and don't
have to catch replay::error everywhere just to possibly rethrow it
anyway
2009-10-01 08:08:02 +00:00
Jörg Hinrichs
9c7884f6fb Adding support for observers in multiplayer to pause...
...and continue the game at any time (special greetings to boucman ;-).
2009-02-08 22:15:06 +00:00
Mark de Wever
a5d1d2e969 New year copyright update. 2009-01-01 10:27:41 +00:00
Pauli Nieminen
39bc109482 Fixed crsah if playsingle_controller constructor throws 2008-09-03 09:55:33 +00:00
Pauli Nieminen
29a08c0bf4 Fixed timer end warning not to play in opponents turn (bug: #11517) 2008-06-27 16:33:52 +00:00
Mark de Wever
da66938826 Update doxygen comment style. 2008-06-15 14:00:35 +00:00
Jörg Hinrichs
95bf75315f Lazy loading for unit_types Step 2:
Rename game_data to unit_type_data and make it a singleton to prevent
passing the same instance throughout the whole code and make
subsequent optimization less painful.
2008-03-30 13:49:03 +00:00
Bruno Wolff III
8a45d814cf Silence gcc 4.3 warnings about const return type. 2008-03-19 17:28:53 +00:00
Mark de Wever
001af46e6e Updated all headers to 2008. 2008-02-16 08:47:16 +00:00
uso
779ea775e5 don't throw all players and observers out of an MP game (and abort it)...
...when the host leaves the game in linger mode
2008-02-06 03:48:04 +00:00
uso
71243e64ed remove an unused parameter 2008-02-01 06:04:47 +00:00
Mark de Wever
9cb05e205b If in a MP campaign the endlevel was continue(_no_save)...
...it could happen that the client left before the host uploaded the
new scenarion, this has been fixed.
2008-01-01 14:14:06 +00:00
Mark de Wever
a1d37a3b14 Unclutter includes. 2007-12-22 17:48:45 +00:00
Gunter Labes
931c03e551 remove the ping sending again,
...this needs to be implemented at some other level.. no idea where
2007-11-20 09:58:44 +00:00
Gunter Labes
076b114019 make the client ping the server every 10 seconds in a network turn
(could do it in a human turn as well but i assume the player to send
data often enough anyway)
2007-11-19 02:20:45 +00:00
Jörg Hinrichs
1a2998d0cc Implements compatibility of change_host functionality with mp campaigns.
It also removes a little flaw i introduced with the last mp campaign
fix (clients/observers got thrown to the title screen). And it also
fixes the long standing bug #6332 (After MP game no automatic return
to lobby).
2007-11-06 19:50:08 +00:00
Jörg Hinrichs
bba338c512 One more step to make mp campaigns work.
This implements the mechanics to switch from one scenario to the
next. It also fixes two bugs related to mp campaigns: bug #10056
(Players cannot progress to next scenario if host leaves linger mode
first) and bug #10065 (recall OOS in subsequent scenarios).
2007-10-31 20:33:15 +00:00
Gunter Labes
325d220bb6 implement linger mode in mp
nothing gets saved in linger mode it seems so any chat in linger mode
will not be replayed
2007-09-09 13:33:11 +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
Eric S. Raymond
4f4ebe012c Sneak up on EOS-linger by a different refactoring.
Instead of trying to use new/delete, pull the entire text of
playsingle_scenario and playmp_scenario into playcampaign.cpp in
preparation for inlinining them at the point where we'll need the
controller objects to be visible.

Tested, both SP and MP.
2007-08-01 14:28:37 +00:00
Eric S. Raymond
9710708b28 Backing out my EOS-linger changes.
They're either wrong in themselves or (more likely) interacting badly
with some recent MP-lobby changes.  I don't want to leave the game in
a broken state just as I go on vacation.
2007-08-01 04:56:07 +00:00
Eric S. Raymond
a91a35231d Refactoring step.
Expose the play_controller object in play_campaign.cpp; we're going to
need it to implement linger mode.
2007-07-31 20:16:37 +00:00
Patrick Parker
c491f73077 the countdown timer alert can now start sounding while dialogs are open
added a mechanism for generic monitoring of events::pump()
2007-07-27 02:02:17 +00:00
Eric S. Raymond
5341a4b2da Reverting Sapient's 2007-07-26T04:20:29Z!patrick_x99@hotmail.com -- it broke the editor build. 2007-07-26 10:48:56 +00:00
Patrick Parker
209a15ae5e the MP countdown timer alert can now start sounding while dialogs are open 2007-07-26 04:20:29 +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
Eric S. Raymond
83ce5e8e0a More refactoring. No logic changes. 2007-07-18 03:30:56 +00:00
Mark de Wever
7c5c3d3ae4 set svn:keywords to 'Author Date Id Revision'
added /* $Id$ */ to files which didn't have that
2007-06-04 20:48:38 +00:00
Patrick Parker
e98ca04d31 fix the "can't end turn" bug 2007-03-26 21:37:30 +00:00
Serge Martin
9f89732d3b fix :
https://gna.org/bugs/?7046

https://gna.org/bugs/?func=detailitem&item_id=6577

but when host trasfert game control, display is not updates to match
game_state i.e if control is transfered to enemy, orbs remain green :/
despite you can't contrl the side
2006-09-28 20:08:02 +00:00
Isaac Clerencia Perez
48e0e47791 Merged 13001 13007 13014 13055 13108 13109 into trunk 2006-08-17 06:53:11 +00:00
Jörg Hinrichs
2a8b65d0d1 The end of multiplayer "quick replay" is now determined...
...from the current turn of the selected game on entering it as
observer. If that turn is reached, quick replay is turned off and
normal gameplay continues.
2006-07-03 18:52:20 +00:00
Patrick Parker
5791580766 view oos details in-game 2006-06-12 16:22:13 +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örg Hinrichs
37fcd8fdbe fixes a compiler warning (hopefully since i don't use that compiler) 2006-06-01 19:06:21 +00:00
Jörg Hinrichs
9a8d4a4cb2 fixes OoS bugs
#5967 (OoS box doesn't appear), 

#5960 (OoS when moving more than range in mp), 

#5954 (OoS with undo in mp)
2006-05-22 16:56:04 +00:00
Jörg Hinrichs
644101318a fixes bug #4233 (saving during enemies turn skips actual attack)
adds missing copyright
2006-05-16 17:50:09 +00:00
Jörg Hinrichs
2f840285d0 implements observer pattern for ai.cpp with these events:
- user_interact
- unit_recruited
- unit_moved
- enemy_attacked

removes dependency of ai.cpp on playturn.hpp

removes playturn.cpp out of editor build

fixes bug #5845 (menu doesn't open on ai turn)
2006-05-08 20:57:06 +00:00
Jörg Hinrichs
704962568d fixes broken textbox support in single player (bug #5763) 2006-04-12 21:43:01 +00:00
Dominic Bolin
415025c2f8 Illumination now lays an overlay on the ToD graphic;
convert some files to unix line endings.
2006-04-09 18:24:14 +00:00
Dominic Bolin
8e516e87e8 Fix building with gcc 4.1 2006-04-07 17:33:29 +00:00
Jörg Hinrichs
45dd38ff87 merges the gameplay_refactoring branch
please report any problems to me
2006-04-06 21:31:55 +00:00
Jörg Hinrichs
48cf5672d9 some final enhancements 2006-04-05 18:36:28 +00:00
Jörg Hinrichs
739b66daf1 Done implementation, before bugfixing 2006-03-29 21:12:27 +00:00
Jörg Hinrichs
606972527b Initialization 3 2006-03-13 01:05:41 +00:00
Jörg Hinrichs
913192175c Initialization 2 2006-03-09 21:12:53 +00:00
Jörg Hinrichs
d0e95571f0 [[No change.]] 2006-03-09 17:08:11 +00:00