Ejemplo n.º 1
0
game_display::game_display(game_board& board, CVideo& video, boost::weak_ptr<wb::manager> wb,
		const tod_manager& tod,
		const config& theme_cfg, const config& level) :
		display(&board, video, wb, theme_cfg, level),
		overlay_map_(),
		attack_indicator_src_(),
		attack_indicator_dst_(),
		route_(),
		tod_manager_(tod),
		displayedUnitHex_(),
		sidebarScaling_(1.0),
		first_turn_(true),
		in_game_(false),
		chat_man_(new display_chat_manager(*this)),
		game_mode_(RUNNING)
{
	replace_overlay_map(&overlay_map_);
	clear_screen();
}
Ejemplo n.º 2
0
game_display::game_display(unit_map& units, CVideo& video, const gamemap& map,
		const tod_manager& tod, const std::vector<team>& t,
		const config& theme_cfg, const config& level) :
		display(&units, video, &map, &t, theme_cfg, level),
		overlay_map_(),
		fake_units_(),
		attack_indicator_src_(),
		attack_indicator_dst_(),
		route_(),
		tod_manager_(tod),
		level_(level),
		displayedUnitHex_(),
		sidebarScaling_(1.0),
		first_turn_(true),
		in_game_(false),
		observers_(),
		chat_messages_(),
		game_mode_(RUNNING)
{
	replace_overlay_map(&overlay_map_);
	clear_screen();
}