org.ninm.games.cardgames
Interface Player

All Known Implementing Classes:
DefaultPlayer

public interface Player

This interface defines a card player

Version:
1.0
Author:
Nikolay

Method Summary
 java.util.Set getAnnouncedTricks()
          returns the tricks announced by the player
 java.util.Set getHand()
          returns the cards currently in this players hand
 java.lang.String getName()
          returns the name of this player
 Team getTeam()
          returns the team that this player belongs to
 boolean isDealer()
          returns true if this player is a dealer
 

Method Detail

isDealer

public boolean isDealer()
returns true if this player is a dealer

Returns:
boolean

getTeam

public Team getTeam()
returns the team that this player belongs to

Returns:
Team the players team

getName

public java.lang.String getName()
returns the name of this player

Returns:
String the name of this player

getHand

public java.util.Set getHand()
returns the cards currently in this players hand

Returns:
Set a set of cards in this players hand

getAnnouncedTricks

public java.util.Set getAnnouncedTricks()
returns the tricks announced by the player

Returns:
Set aset of tricks announced by the player

SourceForge.net Logo