Esempio n. 1
0
std::string game_display::current_team_name() const
{
	if (team_valid())
	{
		return dc_->teams()[currentTeam_].team_name();
	}
	return std::string();
}
Esempio n. 2
0
void game_display::draw_report(const std::string &report_name)
{
	if(!team_valid()) {
		return;
	}

	refresh_report(report_name, reports::generate_report(report_name));
}
Esempio n. 3
0
void game_display::draw_sidebar()
{
	if ( !team_valid() )
		return;

	refresh_report("report_clock");
	refresh_report("report_countdown");

	if (invalidateGameStatus_)
	{
		wb::future_map future; // start planned unit map scope

		// We display the unit the mouse is over if it is over a unit,
		// otherwise we display the unit that is selected.
		BOOST_FOREACH(const std::string &name, reports::report_list()) {
			refresh_report(name);
		}
		invalidateGameStatus_ = false;
	}