Add finer engine tracing.
[tagua/yd.git] / src / hlvariant / shogi / variant.cpp
blob8ca9b724719e6eebdbf543fe8b0998aa879778e3
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 Shogi {
17 const char* Variant::m_name = "Shogi";
18 const char* Variant::m_theme_proxy = "Shogi";
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 Shogi
31 } // namespace HLVariant