toujours plus de settings
This commit is contained in:
21
src/GraphicalUI/PiecesType.h
Normal file
21
src/GraphicalUI/PiecesType.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
enum PiecesType {
|
||||
CONVEX,
|
||||
HOLELESS,
|
||||
OTHERS,
|
||||
ALL,
|
||||
SINGLE
|
||||
};
|
||||
|
||||
|
||||
inline int getSizeOfPieces(PiecesType type) {
|
||||
if (type < SINGLE) return 0;
|
||||
|
||||
else return (type - SINGLE + 1);
|
||||
}
|
||||
|
||||
inline PiecesType createSinglePieceType(int size) {
|
||||
return PiecesType(SINGLE + size - 1);
|
||||
}
|
||||
Reference in New Issue
Block a user