/**********************************************************************
 *
 *   FreeDoko a Doppelkopf-Game
 *    
 *   Copyright (C) 2001-2004  by Diether Knof and Borg Enders
 *
 *   This program is free software; you can redistribute it and/or 
 *   modify it under the terms of the GNU General Public License as 
 *   published by the Free Software Foundation; either version 2 of 
 *   the License, or (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details. 
 *   You can find this license in the file 'gpl.txt'.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 *   MA  02111-1307  USA
 *
 *  Contact:
 *    Diether Knof dknof@gmx.de
 *    Borg Enders  borg@borgsoft.de
 *
 **********************************************************************/

#ifndef CLASS_HAND_CARD_HEADER
#define CLASS_HAND_CARD_HEADER

#include "card.h"

class Hand;
class Player;
class Game;

/**
 ** class for a card which belongs to a hand (and so to a player)
 **
 ** @author	Diether Knof
 **
 **/
class HandCard : public Card {
  public:
    // constructor
    HandCard(Hand const& hand, Card const& card);
    // destructor
    ~HandCard();

    Player const& player() const;
    Game const& game() const;

    bool istrump() const;

    bool istrumpace() const;
    bool istrumpnine() const;
    bool istrumpking() const;

    bool isfox() const;
    bool isdolle() const;
    bool isswine() const;
    bool ishyperswine() const;


    // returns whether the card is less than 'card'
    bool less(Card const& b, Game const& game) const;

  private:
    PRIV_VAR_CP_R(Hand, hand);

  private: // unused
    HandCard();
    HandCard(HandCard const&);
    HandCard& operator=(HandCard const&);
}; // class HandCard : public Card

#endif // #ifndef CLASS_HAND_CARD_HEADER
