fichier settings
This commit is contained in:
@@ -2,20 +2,20 @@
|
||||
|
||||
|
||||
enum PiecesType {
|
||||
CONVEX,
|
||||
HOLELESS,
|
||||
OTHERS,
|
||||
ALL,
|
||||
SINGLE
|
||||
CONVEX_PIECES,
|
||||
HOLELESS_PIECES,
|
||||
OTHER_PIECES,
|
||||
ALL_PIECES,
|
||||
SINGLE_PIECE
|
||||
};
|
||||
|
||||
|
||||
inline int getSizeOfPieces(PiecesType type) {
|
||||
if (type < SINGLE) return 0;
|
||||
if (type < SINGLE_PIECE) return 0;
|
||||
|
||||
else return (type - SINGLE + 1);
|
||||
else return (type - SINGLE_PIECE + 1);
|
||||
}
|
||||
|
||||
inline PiecesType createSinglePieceType(int size) {
|
||||
return PiecesType(SINGLE + size - 1);
|
||||
return PiecesType(SINGLE_PIECE + size - 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user