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.
14 #include "component.h"
17 * @brief A player in a game.
19 * Each color represents a different player, and possibly the ownership
20 * of pieces on the board.
22 class TAGUA_EXPORT IColor
{
27 * @return The color name.
29 virtual QString
name() const = 0;
32 * @return The color index.
34 virtual int index() const = 0;
37 class TAGUA_EXPORT White
: public Component
, public IColor
{
41 virtual QString
name() const;
42 virtual int index() const;
47 class TAGUA_EXPORT Black
: public Component
, public IColor
{
51 virtual QString
name() const;
52 virtual int index() const;
57 #endif // CORE__COLOR_H