Promotion.h
Go to the documentation of this file.
1 // cwchessboard -- A C++ chessboard tool set
2 //
3 //! @file Promotion.h This file contains the declaration of class Promotion.
4 //
5 // Copyright (C) 2008, by
6 //
7 // Carlo Wood, Run on IRC <carlo@alinoe.com>
8 // RSA-1024 0x624ACAD5 1997-01-26 Sign & Encrypt
9 // Fingerprint16 = 32 EC A7 B6 AC DB 65 A6 F6 F6 55 DD 1C DC FF 61
10 //
11 // This program is free software: you can redistribute it and/or modify
12 // it under the terms of the GNU General Public License as published by
13 // the Free Software Foundation, either version 2 of the License, or
14 // (at your option) any later version.
15 //
16 // This program is distributed in the hope that it will be useful,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 // GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, see <http://www.gnu.org/licenses/>.
23 
24 #ifndef PROMOTION_H
25 #define PROMOTION_H
26 
27 #ifndef USE_PCH
28 #endif
29 
30 #include "Type.h"
31 #include "Referenceable.h"
32 
33 namespace cwchess {
34 
35 class Move;
36 class ChessPosition;
37 
39  public:
40  virtual Type type(ChessPosition const* UNUSED_ARG(chess_position), Move const& UNUSED_ARG(move)) const { return cwchess::queen; }
41 };
42 
43 } // namespace cwchess
44 
45 #endif // PROMOTION_H
A namespace for all chess related objects that are not related to the GUI.
Definition: Array.h:39
This file contains the declaration of class Type.
TypeData const queen
A constant representing a queen.
Definition: Type.h:75
A chess move in a particular chess position.
Definition: Move.h:44
A chess piece type.
Definition: Type.h:87
A chess position.
Definition: ChessPosition.h:50
This file contains the declaration of class Referenceable.

Copyright © 2006 - 2010 Carlo Wood.  All rights reserved.