[Square] Make constructor public
This commit is contained in:
@@ -26,6 +26,9 @@ public:
|
|||||||
static Optional fromIndex(Index index);
|
static Optional fromIndex(Index index);
|
||||||
static Optional fromName(const std::string &name);
|
static Optional fromName(const std::string &name);
|
||||||
|
|
||||||
|
Square(Index index);
|
||||||
|
|
||||||
|
|
||||||
Coordinate file() const;
|
Coordinate file() const;
|
||||||
Coordinate rank() const;
|
Coordinate rank() const;
|
||||||
Index index() const;
|
Index index() const;
|
||||||
@@ -40,9 +43,6 @@ public:
|
|||||||
static const Square A8, B8, C8, D8, E8, F8, G8, H8;
|
static const Square A8, B8, C8, D8, E8, F8, G8, H8;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
Square(Index index);
|
|
||||||
|
|
||||||
Index mIndex;
|
Index mIndex;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user