2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
11 #include <core/color.h>
12 #include <core/piece.h>
13 #include <core/type.h>
19 QString
Namer::name(const Piece
& piece
) const {
20 if (piece
.color() && piece
.type()) {
21 //kDebug() << "naming" << piece.color()->name() << piece.type()->name();
22 return piece
.color()->name() + "_" + piece
.type()->name();
24 kDebug() << "naming incomplete piece" << piece
.color() << piece
.type();