7 Commits

Author SHA1 Message Date
gfgtdf
9ca6678479 Make is possible to switch from replay directly into normal play
http://gna.org/bugs/?23833

I removed the replay_controller class, instead the normal replay also
uses the mp_replay_controller class which is a 'plugin' to
playsingle_controller which can just be deactivated to switch into
normal gameplay.
2015-09-30 02:54:57 +02:00
gfgtdf
65655fbb67 enable 'skip animation' button in mp replays 2015-09-30 02:54:51 +02:00
gfgtdf
fb68590637 more refactor of play_side and game_end_exception.hpp
Instead of having different exceptions (ai_end_turn_exception,
end_level_exception and restart_turn_exception) we now have one exception
(return_to_play_side_exception) that is used to escape from play_ai_turn
or play_slice and is catched in the play_side related functions.
The information why we returned to play_side is already stored in the
playsingle_controller object. That is also why we do not need the
possible_end_play_signal return value anymore.

play_controller::check_victory does not throw exceptions anymore
Also do_replay and thus turn_info::process_network_data don't throw
exceptions anymore when the scenario is finished by victory or defeat.
Instead it returns REPLAY_FOUND_END_LEVEL, this means
return_to_play_side_exception is not thrown during replay at all.

this also fixed up a previous commit 'refactor play_side' where
accidently play_idle_loop was called instead of play_human_turn in
play_side.
2015-03-03 21:49:30 +01:00
gfgtdf
dfdd347c07 fix replay hotkeys (23185) 2015-01-31 22:57:49 +01:00
Ignacio R. Morelle
57ae45387a New Year copyright update 2015-01-01 19:07:35 -03:00
Chris Beck
2f8af02299 hotkey_handlers: use play_controller gamestate accessor
this allows the play_controller to easily swap out the gamestate
later
2014-12-23 14:41:58 -05:00
Chris Beck
e441a775b5 hotkey handlers: split hotkey, menu impl out of play controllers 2014-12-21 18:54:05 -05:00