NAME
Games::Euchre::Team - Team class for Euchre card game
DESCRIPTION
The Team object is used to keep track of bidding information and current score for the two teams in a Euchre game.
CLASS METHODS
- new GAME NUMBER NAME PLAYER1 PLAYER2
-
Create and initialize a new Euchre team for the specified game. The number is "1" or "2". The name is a string used to identify this team. The players are instantiated Games::Euchre::Player instances.
INSTANCE METHODS
- getGame
-
Return the Euchre game instance to which this team belongs.
- getOtherTeam
-
Returns the team recorded in the setOtherTeam() method.
- addScore SCORE
-
Increment this team's game score by this amount.
- addTrick
-
Increment this team's trick count by one.
- getNumber
-
Return this team's number, between 1 and 2
- getName
-
Return the team name.
- getPlayers
-
Return an array of the two players on this team.
- getScore
-
Return the current game score for this team.\
- getTricks
-
Return the number of tricks won by this team in the current hand.
- wentAlone
-
Returns a boolean indicating whether a member of this team chose to go alone on a bid.
- isBidder
-
Returns a boolean indicating whether a member of this team called the trump suit during bidding.
- resetGame
-
Clear all of the state for the current game and get ready for the next one.
- resetHand
-
Clear all of the state for the current hand and get ready for the next one.
SEE ALSO
Games::Euchre
LICENSE
GNU Public License, version 2
AUTHOR
Chris Dolan, chrisdolan@users.sourceforge.net