Changed my email in the copyright statements.
[tagua/yd.git] / src / hlvariant / chess / actions.h
blobb666e1d8138dc24d83834bd840aa3ac685b07845
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__CHESS__ACTIONS_H
12 #define HLVARIANT__CHESS__ACTIONS_H
14 #include "actioncollection.h"
16 namespace HLVariant {
17 namespace Chess {
19 class Actions : public ActionCollection {
20 Q_OBJECT
21 int m_promotion;
22 public:
23 Actions();
25 int promotion() const;
26 private Q_SLOTS:
27 virtual void promote_to_queen();
28 virtual void promote_to_rook();
29 virtual void promote_to_bishop();
30 virtual void promote_to_knight();
33 } // namespace Chess
34 } // namespace HLVariant
36 #endif // HLVARIANT__CHESS__ACTIONS_H