mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
Ref T472, utility functions for category
This commit is contained in:
committed by
Mat Sutcliffe
parent
5c46fa3afa
commit
360edca4b3
@@ -112,6 +112,12 @@ namespace BlackMisc
|
||||
this->setPickStrategy(PickByOrder);
|
||||
}
|
||||
|
||||
bool CAircraftMatcherSetup::useCategoryMatching() const
|
||||
{
|
||||
const MatchingMode mm = this->getMatchingMode();
|
||||
return mm.testFlag(ByCategoryGlider) || mm.testFlag(ByCategoryMilitary);
|
||||
}
|
||||
|
||||
const QString &CAircraftMatcherSetup::algorithmToString(CAircraftMatcherSetup::MatchingAlgorithm algorithm)
|
||||
{
|
||||
static const QString rs("reduce + score based");
|
||||
|
||||
@@ -156,6 +156,9 @@ namespace BlackMisc
|
||||
//! Reset
|
||||
void reset(MatchingAlgorithm algorithm);
|
||||
|
||||
//! Use category matching
|
||||
bool useCategoryMatching() const;
|
||||
|
||||
//! Algorithm to string
|
||||
static const QString &algorithmToString(MatchingAlgorithm algorithm);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user