Name parameter team_index in play_side from play_controller,
playsingle_controller and playmp_controller classes side_number.
It is not an array index.
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
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.
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).
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).
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.
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.
* 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
...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.
- 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)