28 lines
492 B
C++
28 lines
492 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
|
|
/**
|
|
* The modes of pieces distribution managed by the app
|
|
*/
|
|
enum DistributionMode {
|
|
DEFAULT,
|
|
UNIFORM,
|
|
CUSTOM
|
|
};
|
|
|
|
|
|
/**
|
|
* @return A string containing the name of the given distribution mode
|
|
*/
|
|
inline std::string getPiecesDistributionName(DistributionMode distributionMode) {
|
|
static const std::string DISTRIBUTION_NAMES[] = {
|
|
"DEFAULT",
|
|
"UNIFORM",
|
|
"CUSTOM"
|
|
};
|
|
|
|
return DISTRIBUTION_NAMES[distributionMode];
|
|
}
|