Changed my email in the copyright statements.
[tagua/yd.git] / src / hlvariant / minishogi / variant.cpp
blob27befed1d79f435f1475f824a6fa25ce94ffd33d
1 /*
2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
3 (c) 2007 Maurizio Monge <maurizio.monge@kdemail.net>
4 (c) 2007 Yann Dirson <ydirson@altern.org>
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
12 #include "variant.h"
13 #include "../tagua_wrapped.h"
15 namespace HLVariant {
16 namespace MiniShogi {
18 const char* Variant::m_name = "MiniShogi";
19 const char* Variant::m_theme_proxy = "Shogi";
21 void Variant::setupMove(NormalUserMove& m) const {
22 m.promotionType = m_actions.promotion() ? 0 : -1;
25 ActionCollection* Variant::actions() {
26 return &m_actions;
29 } // namespace MiniShogi
30 } // namespace HLVariant