Replaced all std::cout with kDebug.
[tagua/yd.git] / src / hlvariant / tori-shogi / variant.cpp
blob5af70b9000741fe5b4eec04f55d180892c9ed134
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 #include "variant.h"
12 #include "../tagua_wrapped.h"
14 namespace HLVariant {
15 namespace ToriShogi {
17 const char* Variant::m_name = "Tori Shogi";
18 const char* Variant::m_theme_proxy = "ToriShogi";
20 void Variant::setupMove(NormalUserMove& m) const {
21 m.promotionType = m_actions.promotion() ? 0 : -1;
24 ActionCollection* Variant::actions() {
25 return &m_actions;
28 DEFINE_VARIANT_FACTORY();
30 } // namespace ToriShogi
31 } // namespace HLVariant