예제 #1
0
	QString contact_profile::get_contact_name() const
	{
		if (!get_friendly().trimmed().isEmpty())
			return get_friendly();

		if (!get_displayid().trimmed().isEmpty())
			return get_displayid();

		if (!get_first_name().trimmed().isEmpty())
			return get_first_name() + " " + get_last_name();

		return get_aimid();
	}
예제 #2
0
        //Get color of a team
        sf::Color get_team_color(Team t) const
        {
            switch (t.get_t())
            {
                case Team::TEAM_GOOD:
                    return get_friendly();

                case Team::TEAM_BAD:
                    return get_enemy();

                default:
                    return get_neutral();
            }
        }