Added CustomBoard.
[tagua/yd.git] / src / hlvariant / customboard.h
blobd156652350458b5c9b26983d3b3ee13e64be6eb4
1 #ifndef HLVARIANT__CUSTOMBOARD_H
2 #define HLVARIANT__CUSTOMBOARD_H
4 #include "board.h"
6 namespace HLVariant {
8 template <int size_x, int size_y, typename _Piece>
9 class CustomBoard : public Board<_Piece> {
10 typedef Board<_Piece> Base;
11 public:
12 typedef _Piece Piece;
14 CustomBoard();
16 CustomBoard(const CustomBoard<size_x, size_y, Piece>& other);
19 // IMPLEMENTATION
21 template <int size_x, int size_y, typename Piece>
22 CustomBoard<size_x, size_y, Piece>::CustomBoard()
23 : Base(Point(size_x, size_y)) { }
25 template <int size_x, int size_y, typename Piece>
26 CustomBoard<size_x, size_y, Piece>::CustomBoard(const CustomBoard<size_x, size_y, Piece>& other)
27 : Base(other) { }
32 #endif // HLVARIANT__BOARD_H