Changed my email in the copyright statements.
[tagua/yd.git] / src / hlvariant / customboard.h
blobef7fb426938c29c8879ba9886bc77b1f405e6388
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
3 (c) 2007 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 */
11 #ifndef HLVARIANT__CUSTOMBOARD_H
12 #define HLVARIANT__CUSTOMBOARD_H
14 #include "board.h"
16 namespace HLVariant {
18 template <int size_x, int size_y, typename _Piece>
19 class CustomBoard : public Board<_Piece> {
20 typedef Board<_Piece> Base;
21 public:
22 typedef _Piece Piece;
24 CustomBoard();
26 CustomBoard(const CustomBoard<size_x, size_y, Piece>& other);
29 // IMPLEMENTATION
31 template <int size_x, int size_y, typename Piece>
32 CustomBoard<size_x, size_y, Piece>::CustomBoard()
33 : Base(Point(size_x, size_y)) { }
35 template <int size_x, int size_y, typename Piece>
36 CustomBoard<size_x, size_y, Piece>::CustomBoard(const CustomBoard<size_x, size_y, Piece>& other)
37 : Base(other) { }
42 #endif // HLVARIANT__BOARD_H