Uniformize const declaration for ticks and num_turns...
...over controller_base, play_controller and replay_controller
This commit is contained in:
parent
5ba9d8b495
commit
f977886bd6
4 changed files with 6 additions and 5 deletions
|
@ -28,7 +28,7 @@ static lg::log_domain log_display("display");
|
|||
#define ERR_DP LOG_STREAM(err, log_display)
|
||||
|
||||
controller_base::controller_base(
|
||||
int ticks, const config& game_config, CVideo& /*video*/) :
|
||||
const int ticks, const config& game_config, CVideo& /*video*/) :
|
||||
game_config_(game_config),
|
||||
ticks_(ticks),
|
||||
key_(),
|
||||
|
|
|
@ -35,7 +35,7 @@ class mouse_handler_base;
|
|||
class controller_base : public hotkey::command_executor, public events::handler
|
||||
{
|
||||
public:
|
||||
controller_base(int ticks, const config& game_config, CVideo& video);
|
||||
controller_base(const int ticks, const config& game_config, CVideo& video);
|
||||
virtual ~controller_base();
|
||||
|
||||
void play_slice(bool is_delay_enabled = true);
|
||||
|
|
|
@ -78,8 +78,8 @@ static void clear_resources()
|
|||
|
||||
|
||||
play_controller::play_controller(const config& level, game_state& state_of_game,
|
||||
int ticks, int num_turns, const config& game_config, CVideo& video,
|
||||
bool skip_replay) :
|
||||
const int ticks, const int num_turns, const config& game_config,
|
||||
CVideo& video, bool skip_replay) :
|
||||
controller_base(ticks, game_config, video),
|
||||
observer(),
|
||||
savegame_config(),
|
||||
|
|
|
@ -68,7 +68,8 @@ class play_controller : public controller_base, public events::observer, public
|
|||
{
|
||||
public:
|
||||
play_controller(const config& level, game_state& state_of_game,
|
||||
int ticks, int num_turns, const config& game_config, CVideo& video, bool skip_replay);
|
||||
const int ticks, const int num_turns, const config& game_config,
|
||||
CVideo& video, bool skip_replay);
|
||||
virtual ~play_controller();
|
||||
|
||||
//event handler, overridden from observer
|
||||
|
|
Loading…
Add table
Reference in a new issue