Factored out action code in the Action class.
[tagua/yd.git] / src / hlvariant / chess / actions.h
blob46e608d21dfe35b166ac11ac0c47493b9591cd62
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@sns.it>
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