Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
J
K
M
N
O
P
Q
R
S
T
A
AbstractEngine
- class org.ninm.games.cardgames.common.
AbstractEngine
.
This class provides a skeletal implementation of the card game engine which most card games should subclass.
AbstractEngine()
- Constructor for class org.ninm.games.cardgames.common.
AbstractEngine
ACE
- Static variable in class org.ninm.games.cardgames.common.
Face
ACE_VALUE
- Static variable in class org.ninm.games.cardgames.common.
Face
addAnnouncedTrick(Trick)
- Method in class org.ninm.games.cardgames.common.
DefaultTeam
addAnnouncedTrick(Trick)
- Method in class org.ninm.games.cardgames.common.
DefaultPlayer
addBonusListener(BonusListener)
- Method in interface org.ninm.games.cardgames.
Engine
registers the bonus listener with this engine
addBonusListener(BonusListener)
- Method in class org.ninm.games.cardgames.common.
AbstractEngine
addCard(Card)
- Method in class org.ninm.games.cardgames.common.
DefaultPlayer
adds the card to the hand
addCard(Card, Player)
- Method in class org.ninm.games.cardgames.belot.
Hand
addDealerListener(DealerListener)
- Method in interface org.ninm.games.cardgames.
Engine
registers the dealer listener with this engine
addDealerListener(DealerListener)
- Method in class org.ninm.games.cardgames.common.
AbstractEngine
addToGameScore(Team, int)
- Method in class org.ninm.games.cardgames.common.
DefaultScore
addToRubberScore(Team, int)
- Method in class org.ninm.games.cardgames.common.
DefaultScore
addToTotalScore(Team, int)
- Method in class org.ninm.games.cardgames.common.
DefaultScore
addTrick(Trick)
- Method in class org.ninm.games.cardgames.common.
DefaultScore
ALL_TRUMPS
- Static variable in class org.ninm.games.cardgames.belot.
BelotGame
ALL_TRUMPS_VALUE
- Static variable in class org.ninm.games.cardgames.belot.
BelotGame
AllTrumpsState
- class org.ninm.games.cardgames.belot.
AllTrumpsState
.
This state represents the logic of the "All Trumps" game
AllTrumpsState(BelotEngine)
- Constructor for class org.ninm.games.cardgames.belot.
AllTrumpsState
Constructor for AllTrumpsState.
announceTrick(BelotTrick)
- Method in class org.ninm.games.cardgames.belot.
StateAdapter
announceTrick(BelotTrick)
- Method in interface org.ninm.games.cardgames.belot.
State
tells the engine that a particular player wishes to anounce a trick
announceTrick(BelotTrick)
- Method in class org.ninm.games.cardgames.belot.
PlayingState
announceTrick(Player, Trick)
- Method in interface org.ninm.games.cardgames.
Engine
tells the engine that a particular player wishes to anounce a trick
announceTrick(Player, Trick)
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
announceTrick(Player, Trick)
- Method in class org.ninm.games.cardgames.common.
AbstractEngine
this implementation just checks weather the player making the anouncement is the currant player and weather the trick is one of the allowed tricks.
B
beats(BelotTrick)
- Method in class org.ninm.games.cardgames.belot.
BelotTrick
returns true if this trick superseeds the passed in trick (rendering it pointless)
beats(Card, Card)
- Method in class org.ninm.games.cardgames.belot.
PlayingState
beats(Card, Card, Set)
- Static method in class org.ninm.games.cardgames.belot.
PlayingState
determines if the first card beats the second card in any game
beats(Face, Face, boolean)
- Static method in class org.ninm.games.cardgames.belot.
PlayingState
determines if the first face is higher than the second face in either trump or non trump order
Belot
- class org.ninm.games.cardgames.belot.
Belot
.
This class represents the belot card game
BELOT
- Static variable in class org.ninm.games.cardgames.belot.
BelotTrick.Type
BELOT_VALUE
- Static variable in class org.ninm.games.cardgames.belot.
BelotTrick.Type
Belot()
- Constructor for class org.ninm.games.cardgames.belot.
Belot
Belot(Deck)
- Constructor for class org.ninm.games.cardgames.belot.
Belot
BelotBid
- class org.ninm.games.cardgames.belot.
BelotBid
.
this is the bid which a belot game would use
BelotBid.DoublingFactor
- class org.ninm.games.cardgames.belot.
BelotBid.DoublingFactor
.
This class represents the doubling factor for a belot game (e.g.
BelotBid.DoublingFactor(String, int)
- Constructor for class org.ninm.games.cardgames.belot.
BelotBid.DoublingFactor
BelotBid(BelotBid.DoublingFactor, BelotGame)
- Constructor for class org.ninm.games.cardgames.belot.
BelotBid
Constructor for BelotBid.
BelotEngine
- class org.ninm.games.cardgames.belot.
BelotEngine
.
This class holds the logic of the belot game
BelotEngine(Belot)
- Constructor for class org.ninm.games.cardgames.belot.
BelotEngine
BelotGame
- class org.ninm.games.cardgames.belot.
BelotGame
.
this is an enumeration of all the possible bids in a belot game
BelotGame(String, int)
- Constructor for class org.ninm.games.cardgames.belot.
BelotGame
Constructor for Bid.
BelotTrick
- class org.ninm.games.cardgames.belot.
BelotTrick
.
This class represents a trick used in the belot game
BelotTrick.Type
- class org.ninm.games.cardgames.belot.
BelotTrick.Type
.
BelotTrick.Type(String, int)
- Constructor for class org.ninm.games.cardgames.belot.
BelotTrick.Type
BelotTrick(Set, Player)
- Constructor for class org.ninm.games.cardgames.belot.
BelotTrick
Bid
- interface org.ninm.games.cardgames.
Bid
.
an interface which all bid types must implement
BiddingState
- class org.ninm.games.cardgames.belot.
BiddingState
.
This class represents the state the game is in when the players are bidding for a game
BiddingState(BelotEngine)
- Constructor for class org.ninm.games.cardgames.belot.
BiddingState
bidMade(BelotBid)
- Method in class org.ninm.games.cardgames.belot.
StateAdapter
bidMade(BelotBid)
- Method in interface org.ninm.games.cardgames.belot.
State
indicates a bid has been made by a particluar player
bidMade(BelotBid)
- Method in class org.ninm.games.cardgames.belot.
BiddingState
bidMade(Player, Bid)
- Method in interface org.ninm.games.cardgames.
Engine
indicates a bid has been made by a particluar player
bidMade(Player, Bid)
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
bidMade(Player, Bid)
- Method in class org.ninm.games.cardgames.common.
AbstractEngine
this implementation just checks weather the player making the anouncement is the currant player and weather the trick is one of the allowed tricks.
Bonus
- interface org.ninm.games.cardgames.
Bonus
.
Represents a bonus that either a team or player receives
BonusEvent
- class org.ninm.games.cardgames.common.
BonusEvent
.
this represents a bonus event which occurs whenever a team or player recives a bonus.
BonusEvent(Object, Player, Team, Bonus)
- Constructor for class org.ninm.games.cardgames.common.
BonusEvent
Constructor for BonusEvent.
BonusListener
- interface org.ninm.games.cardgames.common.
BonusListener
.
This is implemented by the GUI to display the results of bonuses received by a player or team.
bonusReceived(BonusEvent)
- Method in interface org.ninm.games.cardgames.common.
BonusListener
indicates that a a bonus has been received
BUNDLE_NAME
- Static variable in class org.ninm.games.cardgames.belot.
ExternalizedStrings
C
calculateHighestFaceIndex()
- Method in class org.ninm.games.cardgames.belot.
BelotTrick
calculateName()
- Method in class org.ninm.games.cardgames.belot.
BelotTrick
calculateSuit()
- Method in class org.ninm.games.cardgames.belot.
BelotTrick
calculateType()
- Method in class org.ninm.games.cardgames.belot.
BelotTrick
calculateValue()
- Method in class org.ninm.games.cardgames.belot.
BelotTrick
Card
- class org.ninm.games.cardgames.common.
Card
.
this class represents an arbitrary playing card
Card(Face, Suit)
- Constructor for class org.ninm.games.cardgames.common.
Card
creates a new card with a null ID
Card(Face, Suit, Object)
- Constructor for class org.ninm.games.cardgames.common.
Card
creates a new card with a specified ID
cardDelt(DealerEvent)
- Method in interface org.ninm.games.cardgames.common.
DealerListener
indicates a card has been delt by the dealer
CardGame
- interface org.ninm.games.cardgames.
CardGame
.
The interface which all cardgames must implement in order that the GUI displays them uniformly
CardGameEvent
- class org.ninm.games.cardgames.common.
CardGameEvent
.
An event which is used by the cardgame interface
CardGameEvent(Object, Player, Team)
- Constructor for class org.ninm.games.cardgames.common.
CardGameEvent
Constructor for CardGameEvent.
CardUtils
- class org.ninm.games.cardgames.common.
CardUtils
.
General purpose card utilities
CardUtils()
- Constructor for class org.ninm.games.cardgames.common.
CardUtils
CardUtils should not be instantiated.
clearTricks()
- Method in class org.ninm.games.cardgames.common.
DefaultPlayer
CLUBS
- Static variable in class org.ninm.games.cardgames.belot.
BelotGame
CLUBS
- Static variable in class org.ninm.games.cardgames.common.
Suit
CLUBS_VALUE
- Static variable in class org.ninm.games.cardgames.belot.
BelotGame
CLUBS_VALUE
- Static variable in class org.ninm.games.cardgames.common.
Suit
conflictsWith(BelotTrick)
- Method in class org.ninm.games.cardgames.belot.
BelotTrick
contains(Face, Set)
- Static method in class org.ninm.games.cardgames.common.
CardUtils
returns true if the set of cards contains the given face
containsBelot(Set)
- Static method in class org.ninm.games.cardgames.belot.
BelotTrick
D
dealCard()
- Method in interface org.ninm.games.cardgames.
Deck
randomly removes a card from the deck and deals it out
dealCard()
- Method in class org.ninm.games.cardgames.common.
DefaultDeck
dealCard(DefaultPlayer, Card)
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
dealCards(int)
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
DealerEvent
- class org.ninm.games.cardgames.common.
DealerEvent
.
This event represents a dealing of a card
DealerEvent(Object, Player, Team, Player, Card)
- Constructor for class org.ninm.games.cardgames.common.
DealerEvent
Constructor for DealerEvent.
DealerListener
- interface org.ninm.games.cardgames.common.
DealerListener
.
this class defines the events that a dealer can perform
DealingState
- class org.ninm.games.cardgames.belot.
DealingState
.
This is the state the game is in when the bidding is complete and the game is about to go into the playing state
DealingState(BelotEngine)
- Constructor for class org.ninm.games.cardgames.belot.
DealingState
Constructor DealingState.
DEBUG
- Static variable in interface org.ninm.debug.
NINM
Deck
- interface org.ninm.games.cardgames.
Deck
.
This interface must be implemented by the game.
DefaultDeck
- class org.ninm.games.cardgames.common.
DefaultDeck
.
This class implements a standard 54 card deck (contains two jokers)
DefaultDeck()
- Constructor for class org.ninm.games.cardgames.common.
DefaultDeck
DefaultDeck(Face[], Object)
- Constructor for class org.ninm.games.cardgames.common.
DefaultDeck
DefaultDeck(Face[], Suit[], Object[], int)
- Constructor for class org.ninm.games.cardgames.common.
DefaultDeck
DefaultDeck(Object)
- Constructor for class org.ninm.games.cardgames.common.
DefaultDeck
DefaultPlayer
- class org.ninm.games.cardgames.common.
DefaultPlayer
.
The default implementation of a player
DefaultPlayer(String, Team)
- Constructor for class org.ninm.games.cardgames.common.
DefaultPlayer
DefaultScore
- class org.ninm.games.cardgames.common.
DefaultScore
.
The default implementation of the score interface
DefaultScore(List)
- Constructor for class org.ninm.games.cardgames.common.
DefaultScore
DefaultTeam
- class org.ninm.games.cardgames.common.
DefaultTeam
.
The default implementation of the team interface
DefaultTeam(String)
- Constructor for class org.ninm.games.cardgames.common.
DefaultTeam
DIAMONDS
- Static variable in class org.ninm.games.cardgames.belot.
BelotGame
DIAMONDS
- Static variable in class org.ninm.games.cardgames.common.
Suit
DIAMONDS_VALUE
- Static variable in class org.ninm.games.cardgames.belot.
BelotGame
DIAMONDS_VALUE
- Static variable in class org.ninm.games.cardgames.common.
Suit
DOUBLED
- Static variable in class org.ninm.games.cardgames.belot.
BelotBid.DoublingFactor
DOUBLED_VALUE
- Static variable in class org.ninm.games.cardgames.belot.
BelotBid.DoublingFactor
E
EIGHT
- Static variable in class org.ninm.games.cardgames.common.
Face
EIGHT_VALUE
- Static variable in class org.ninm.games.cardgames.common.
Face
Engine
- interface org.ninm.games.cardgames.
Engine
.
This interface should be implemented by a card game and should enforce the logic of the game
equals(Object)
- Method in class org.ninm.games.cardgames.belot.
BelotTrick
equals(Object)
- Method in class org.ninm.games.cardgames.belot.
BelotBid
equals(Object)
- Method in class org.ninm.games.cardgames.common.
Joker
equals(Object)
- Method in class org.ninm.games.cardgames.common.
Card
compares the members for equality
ExternalizedStrings
- class org.ninm.games.cardgames.belot.
ExternalizedStrings
.
Resource Bundle to external strings
ExternalizedStrings()
- Constructor for class org.ninm.games.cardgames.belot.
ExternalizedStrings
F
Face
- class org.ninm.games.cardgames.common.
Face
.
this enum represents all the possible faces of a card
Face(String, int)
- Constructor for class org.ninm.games.cardgames.common.
Face
findAnnouncedBelots()
- Method in class org.ninm.games.cardgames.belot.
PlayingState
finds any announced belots
findBelot(Set, Player, Set, Card)
- Static method in class org.ninm.games.cardgames.belot.
BelotTrick
findTricks(Set, Player)
- Static method in class org.ninm.games.cardgames.belot.
BelotTrick
fireBonusReceived(Player, Team, Bonus)
- Method in class org.ninm.games.cardgames.common.
AbstractEngine
helper method to let every listener know of the bonus being received
fireCardDelt(Player, Team, Player, Card)
- Method in class org.ninm.games.cardgames.common.
AbstractEngine
helper method to let every listener know that a card has been delt
FIVE
- Static variable in class org.ninm.games.cardgames.common.
Face
FIVE_VALUE
- Static variable in class org.ninm.games.cardgames.common.
Face
FOUR
- Static variable in class org.ninm.games.cardgames.common.
Face
FOUR_VALUE
- Static variable in class org.ninm.games.cardgames.common.
Face
G
g_nonTrumpOrder
- Static variable in class org.ninm.games.cardgames.belot.
Belot
g_nonTrumpScores
- Static variable in class org.ninm.games.cardgames.belot.
Belot
g_trickOrder
- Static variable in class org.ninm.games.cardgames.belot.
Belot
g_trumpOrder
- Static variable in class org.ninm.games.cardgames.belot.
Belot
g_trumpScores
- Static variable in class org.ninm.games.cardgames.belot.
Belot
getActivePlayer()
- Method in interface org.ninm.games.cardgames.
Engine
returns the player whos turn it is
getActivePlayer()
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
getAllowedBids()
- Method in interface org.ninm.games.cardgames.
Engine
returs the allowed bids the current player can make
getAllowedBids()
- Method in class org.ninm.games.cardgames.belot.
StateAdapter
getAllowedBids()
- Method in interface org.ninm.games.cardgames.belot.
State
returs the allowed bids the current player can make
getAllowedBids()
- Method in class org.ninm.games.cardgames.belot.
BiddingState
getAllowedBids()
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
getAllowedCards()
- Method in interface org.ninm.games.cardgames.
Engine
returns the allowed cards that the current player can play
getAllowedCards()
- Method in class org.ninm.games.cardgames.belot.
StateAdapter
getAllowedCards()
- Method in interface org.ninm.games.cardgames.belot.
State
returns the allowed cards that the current player can play
getAllowedCards()
- Method in class org.ninm.games.cardgames.belot.
SpecificTrumpState
getAllowedCards()
- Method in class org.ninm.games.cardgames.belot.
PlayingState
getAllowedCards()
- Method in class org.ninm.games.cardgames.belot.
NoTrumpsState
getAllowedCards()
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
getAllowedCards()
- Method in class org.ninm.games.cardgames.belot.
AllTrumpsState
getAllowedTricks()
- Method in interface org.ninm.games.cardgames.
Engine
returns the allowed tricks that the current player can announce
getAllowedTricks()
- Method in class org.ninm.games.cardgames.belot.
StateAdapter
getAllowedTricks()
- Method in interface org.ninm.games.cardgames.belot.
State
returns the allowed tricks that the current player can announce
getAllowedTricks()
- Method in class org.ninm.games.cardgames.belot.
PlayingState
getAllowedTricks()
- Method in class org.ninm.games.cardgames.belot.
NoTrumpsState
getAllowedTricks()
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
getAnnouncedTricks()
- Method in interface org.ninm.games.cardgames.
Team
returns a list of announced tricks in the current game
getAnnouncedTricks()
- Method in interface org.ninm.games.cardgames.
Score
returns a map from teams to a List of their announced tricks in the current game
getAnnouncedTricks()
- Method in interface org.ninm.games.cardgames.
Player
returns the tricks announced by the player
getAnnouncedTricks()
- Method in class org.ninm.games.cardgames.common.
DefaultTeam
getAnnouncedTricks()
- Method in class org.ninm.games.cardgames.common.
DefaultScore
getAnnouncedTricks()
- Method in class org.ninm.games.cardgames.common.
DefaultPlayer
getBelotBid()
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
Returns the belotBid.
getBelotGame()
- Method in class org.ninm.games.cardgames.belot.
BelotBid
Returns the belotGame.
getBiddingTeam()
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
Returns the biddingTeam.
getBonus()
- Method in class org.ninm.games.cardgames.common.
BonusEvent
Returns the bonus.
getCard()
- Method in class org.ninm.games.cardgames.common.
DealerEvent
Returns the card.
getCards()
- Method in class org.ninm.games.cardgames.belot.
BelotTrick
getCardsFrom(Face, Set)
- Static method in class org.ninm.games.cardgames.common.
CardUtils
finds all the cards from the given face
getCardsFrom(Suit)
- Method in class org.ninm.games.cardgames.common.
DefaultPlayer
retuns all the cards from the specified suit
getCardsFrom(Suit, Set)
- Static method in class org.ninm.games.cardgames.common.
CardUtils
returns all the cards of the given suit
getCardsThatBeat(Set, Card)
- Method in class org.ninm.games.cardgames.belot.
PlayingState
getCardsThatBeat(Set, Card, Set)
- Static method in class org.ninm.games.cardgames.belot.
PlayingState
getDealer()
- Method in class org.ninm.games.cardgames.common.
DealerEvent
Returns the dealer.
getDeck()
- Method in interface org.ninm.games.cardgames.
CardGame
returns the deck used to play this game
getDeck()
- Method in class org.ninm.games.cardgames.belot.
Belot
getDeckID()
- Method in class org.ninm.games.cardgames.common.
Card
returns the deck ID of this card (i.e.
getDisplayValue()
- Method in interface org.ninm.games.cardgames.
Bid
returns the display value for this bid
getDisplayValue()
- Method in class org.ninm.games.cardgames.belot.
BelotBid
getDoublingFactor()
- Method in class org.ninm.games.cardgames.belot.
BelotBid
Returns the doublingFactor.
getEngine()
- Method in interface org.ninm.games.cardgames.
CardGame
returns the game engine that controls the logic of the game
getEngine()
- Method in class org.ninm.games.cardgames.belot.
Belot
getFace()
- Method in class org.ninm.games.cardgames.common.
Card
returns the face of this card
getFirstCard()
- Method in class org.ninm.games.cardgames.belot.
Hand
Returns the firstCard.
getGameScore()
- Method in interface org.ninm.games.cardgames.
Score
retuns a map from teams to their current game scores
getGameScore()
- Method in class org.ninm.games.cardgames.common.
DefaultScore
getHand()
- Method in interface org.ninm.games.cardgames.
Player
returns the cards currently in this players hand
getHand()
- Method in class org.ninm.games.cardgames.common.
DefaultPlayer
getLeadingCard()
- Method in class org.ninm.games.cardgames.belot.
Hand
Returns the leadingCard.
getLeadingPlayer()
- Method in class org.ninm.games.cardgames.belot.
Hand
Returns the leadingPlayer.
getList()
- Static method in class org.ninm.games.cardgames.common.
Suit
getName()
- Method in interface org.ninm.games.cardgames.
Trick
returns the name of this bonus
getName()
- Method in interface org.ninm.games.cardgames.
Team
returns the name of the team
getName()
- Method in interface org.ninm.games.cardgames.
Player
returns the name of this player
getName()
- Method in interface org.ninm.games.cardgames.
Bonus
returns the name of this bonus
getName()
- Method in class org.ninm.games.cardgames.belot.
BelotTrick
getName()
- Method in class org.ninm.games.cardgames.common.
DefaultTeam
getName()
- Method in class org.ninm.games.cardgames.common.
DefaultPlayer
getNonTrumpOrder()
- Static method in class org.ninm.games.cardgames.belot.
Belot
getNonTrumpScores()
- Static method in class org.ninm.games.cardgames.belot.
Belot
getOposition(Team)
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
getOposition(Team)
- Method in class org.ninm.games.cardgames.belot.
Belot
returns the oposition to this team
getPlayer()
- Method in interface org.ninm.games.cardgames.
Trick
returns the player that announced this trick
getPlayer()
- Method in class org.ninm.games.cardgames.belot.
BelotTrick
getPlayer()
- Method in class org.ninm.games.cardgames.common.
CardGameEvent
Returns the player.
getPlayers()
- Method in interface org.ninm.games.cardgames.
CardGame
returns a list of players participating in this game
getPlayers()
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
getPlayers()
- Method in class org.ninm.games.cardgames.belot.
Belot
this returns the order in which the players are going to play the game (i.e.
getRubberScore()
- Method in interface org.ninm.games.cardgames.
Score
retuns a map from teams to their current rubber scores
getRubberScore()
- Method in class org.ninm.games.cardgames.common.
DefaultScore
getScore()
- Method in interface org.ninm.games.cardgames.
CardGame
gets the game score for this particular card game
getScore()
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
getScore()
- Method in class org.ninm.games.cardgames.belot.
Belot
getScore(Card, Set)
- Static method in class org.ninm.games.cardgames.belot.
PlayingState
getSet()
- Static method in class org.ninm.games.cardgames.common.
Suit
getState()
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
getString(String)
- Static method in class org.ninm.games.cardgames.belot.
ExternalizedStrings
getSuit()
- Method in class org.ninm.games.cardgames.belot.
BelotGame
returns the trump suit for this game.
getSuit()
- Method in class org.ninm.games.cardgames.common.
Card
returns the suit of this card
getTeam()
- Method in interface org.ninm.games.cardgames.
Player
returns the team that this player belongs to
getTeam()
- Method in class org.ninm.games.cardgames.common.
DefaultPlayer
getTeam()
- Method in class org.ninm.games.cardgames.common.
CardGameEvent
Returns the team.
getTotalScore()
- Method in interface org.ninm.games.cardgames.
Score
retuns a map from teams to their total scores
getTotalScore()
- Method in class org.ninm.games.cardgames.belot.
Hand
Returns the totalScore.
getTotalScore()
- Method in class org.ninm.games.cardgames.common.
DefaultScore
getTrickOrder()
- Static method in class org.ninm.games.cardgames.belot.
Belot
getTrumpOrder()
- Static method in class org.ninm.games.cardgames.belot.
Belot
getTrumpScores()
- Static method in class org.ninm.games.cardgames.belot.
Belot
getType()
- Method in class org.ninm.games.cardgames.belot.
BelotTrick
getValue()
- Method in interface org.ninm.games.cardgames.
Trick
returns the value of this bonus
getValue()
- Method in interface org.ninm.games.cardgames.
Bonus
returns the value of this bonus
getValue()
- Method in class org.ninm.games.cardgames.belot.
BelotTrick
H
Hand
- class org.ninm.games.cardgames.belot.
Hand
.
Utility class used by the belot engine to store the currant state of the hand
Hand(Set)
- Constructor for class org.ninm.games.cardgames.belot.
Hand
hashCode()
- Method in class org.ninm.games.cardgames.belot.
BelotTrick
hashCode()
- Method in class org.ninm.games.cardgames.belot.
BelotBid
hashCode()
- Method in class org.ninm.games.cardgames.common.
Joker
hashCode()
- Method in class org.ninm.games.cardgames.common.
Card
the hashcode based on the members
HEARTS
- Static variable in class org.ninm.games.cardgames.belot.
BelotGame
HEARTS
- Static variable in class org.ninm.games.cardgames.common.
Suit
HEARTS_VALUE
- Static variable in class org.ninm.games.cardgames.belot.
BelotGame
HEARTS_VALUE
- Static variable in class org.ninm.games.cardgames.common.
Suit
I
initMap(Map)
- Method in class org.ninm.games.cardgames.common.
DefaultScore
isActiveTeam()
- Method in interface org.ninm.games.cardgames.
Team
returns true if its this teams turn
isActiveTeam()
- Method in class org.ninm.games.cardgames.common.
DefaultTeam
isAllowedBid(Bid)
- Method in class org.ninm.games.cardgames.common.
AbstractEngine
a helper method used to determine if the passed in bid is one of the allowed bid
isAllowedCard(Card)
- Method in class org.ninm.games.cardgames.common.
AbstractEngine
a helper method used to determine if the card passed in is one of the allowed cards to be played now
isAllowedTrick(Trick)
- Method in class org.ninm.games.cardgames.common.
AbstractEngine
a helper method used to determine if the passed in trick is one of the allowed tricks
isCurrantPlayer(Player)
- Method in class org.ninm.games.cardgames.common.
AbstractEngine
a helper method used to determine if the passed in player is the currant player
isDealer()
- Method in interface org.ninm.games.cardgames.
Player
returns true if this player is a dealer
isDealer()
- Method in class org.ninm.games.cardgames.common.
DefaultPlayer
isTrump(Card)
- Method in class org.ninm.games.cardgames.belot.
PlayingState
isTrump(Card, Set)
- Static method in class org.ninm.games.cardgames.belot.
PlayingState
J
JACK
- Static variable in class org.ninm.games.cardgames.common.
Face
JACK_VALUE
- Static variable in class org.ninm.games.cardgames.common.
Face
Joker
- class org.ninm.games.cardgames.common.
Joker
.
A special type of card
JOKER
- Static variable in class org.ninm.games.cardgames.common.
Face
JOKER_VALUE
- Static variable in class org.ninm.games.cardgames.common.
Face
Joker(Object, Object)
- Constructor for class org.ninm.games.cardgames.common.
Joker
K
KING
- Static variable in class org.ninm.games.cardgames.common.
Face
KING_VALUE
- Static variable in class org.ninm.games.cardgames.common.
Face
M
m_activePlayer
- Variable in class org.ninm.games.cardgames.belot.
BelotEngine
m_announcedTricks
- Variable in class org.ninm.games.cardgames.common.
DefaultScore
m_announcedTricks
- Variable in class org.ninm.games.cardgames.common.
DefaultPlayer
m_belot
- Variable in class org.ninm.games.cardgames.belot.
BelotEngine
m_belotBid
- Variable in class org.ninm.games.cardgames.belot.
BelotEngine
m_belotEngine
- Variable in class org.ninm.games.cardgames.belot.
StateAdapter
m_belotGame
- Variable in class org.ninm.games.cardgames.belot.
BelotBid
m_biddingTeam
- Variable in class org.ninm.games.cardgames.belot.
BelotEngine
m_bonus
- Variable in class org.ninm.games.cardgames.common.
BonusEvent
m_card
- Variable in class org.ninm.games.cardgames.common.
DealerEvent
m_cards
- Variable in class org.ninm.games.cardgames.belot.
BelotTrick
m_cardsPlayedInHand
- Variable in class org.ninm.games.cardgames.belot.
PlayingState
m_dealer
- Variable in class org.ninm.games.cardgames.belot.
BelotEngine
m_dealer
- Variable in class org.ninm.games.cardgames.common.
DealerEvent
m_deck
- Variable in class org.ninm.games.cardgames.belot.
Belot
m_deckID
- Variable in class org.ninm.games.cardgames.common.
Card
and ID used to distinguish between different decks
m_deckIDs
- Variable in class org.ninm.games.cardgames.common.
DefaultDeck
m_doublingFactor
- Variable in class org.ninm.games.cardgames.belot.
BelotBid
m_engine
- Variable in class org.ninm.games.cardgames.belot.
Belot
m_eventListenerList
- Variable in class org.ninm.games.cardgames.common.
AbstractEngine
m_face
- Variable in class org.ninm.games.cardgames.common.
Card
the face of this card
m_firstCard
- Variable in class org.ninm.games.cardgames.belot.
Hand
m_gameScore
- Variable in class org.ninm.games.cardgames.common.
DefaultScore
m_hand
- Variable in class org.ninm.games.cardgames.belot.
PlayingState
m_hand
- Variable in class org.ninm.games.cardgames.common.
DefaultPlayer
m_highestFaceIndex
- Variable in class org.ninm.games.cardgames.belot.
BelotTrick
m_isActiveTeam
- Variable in class org.ninm.games.cardgames.common.
DefaultTeam
m_isDealer
- Variable in class org.ninm.games.cardgames.common.
DefaultPlayer
m_isFirstHand
- Variable in class org.ninm.games.cardgames.belot.
PlayingState
m_isFirstMove
- Variable in class org.ninm.games.cardgames.belot.
PlayingState
m_jokerID
- Variable in class org.ninm.games.cardgames.common.
Joker
m_leadingCard
- Variable in class org.ninm.games.cardgames.belot.
Hand
m_leadingPlayer
- Variable in class org.ninm.games.cardgames.belot.
Hand
m_name
- Variable in class org.ninm.games.cardgames.belot.
BelotTrick
m_name
- Variable in class org.ninm.games.cardgames.common.
DefaultTeam
m_name
- Variable in class org.ninm.games.cardgames.common.
DefaultPlayer
m_player
- Variable in class org.ninm.games.cardgames.belot.
BelotTrick
m_player
- Variable in class org.ninm.games.cardgames.common.
CardGameEvent
m_players
- Variable in class org.ninm.games.cardgames.belot.
BelotEngine
m_players
- Variable in class org.ninm.games.cardgames.belot.
Belot
m_rubberScore
- Variable in class org.ninm.games.cardgames.common.
DefaultScore
m_score
- Variable in class org.ninm.games.cardgames.belot.
Belot
m_state
- Variable in class org.ninm.games.cardgames.belot.
BelotEngine
m_state
- Variable in class org.ninm.games.cardgames.common.
DefaultDeck
m_suit
- Variable in class org.ninm.games.cardgames.belot.
BelotTrick
m_suit
- Variable in class org.ninm.games.cardgames.common.
Card
the suit of this card
m_team
- Variable in class org.ninm.games.cardgames.common.
DefaultPlayer
m_team
- Variable in class org.ninm.games.cardgames.common.
CardGameEvent
m_teams
- Variable in class org.ninm.games.cardgames.belot.
Belot
m_teams
- Variable in class org.ninm.games.cardgames.common.
DefaultScore
m_totalScore
- Variable in class org.ninm.games.cardgames.belot.
Hand
m_totalScore
- Variable in class org.ninm.games.cardgames.common.
DefaultScore
m_tricks
- Variable in class org.ninm.games.cardgames.common.
DefaultTeam
m_trumpSuit
- Variable in class org.ninm.games.cardgames.belot.
SpecificTrumpState
m_trumpSuits
- Variable in class org.ninm.games.cardgames.belot.
PlayingState
m_trumpSuits
- Variable in class org.ninm.games.cardgames.belot.
Hand
m_type
- Variable in class org.ninm.games.cardgames.belot.
BelotTrick
m_value
- Variable in class org.ninm.games.cardgames.belot.
BelotTrick
N
next(int)
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
nextDealer()
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
sets the active dealer to be the next player in an anti-clockwise fashion
nextPlayer()
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
sets the active player to be the next player in an anti-clockwise fashion
NINE
- Static variable in class org.ninm.games.cardgames.common.
Face
NINE_VALUE
- Static variable in class org.ninm.games.cardgames.common.
Face
NINM
- interface org.ninm.debug.
NINM
.
NO_DOUBLING
- Static variable in class org.ninm.games.cardgames.belot.
BelotBid.DoublingFactor
NO_DOUBLING_VALUE
- Static variable in class org.ninm.games.cardgames.belot.
BelotBid.DoublingFactor
NO_TRUMPS
- Static variable in class org.ninm.games.cardgames.belot.
BelotGame
NO_TRUMPS_VALUE
- Static variable in class org.ninm.games.cardgames.belot.
BelotGame
NoTrumpsState
- class org.ninm.games.cardgames.belot.
NoTrumpsState
.
This state represents the logic of the "No Trumps" game
NoTrumpsState(BelotEngine)
- Constructor for class org.ninm.games.cardgames.belot.
NoTrumpsState
Constructor for NoTrumpsState.
O
org.ninm.debug
- package org.ninm.debug
Anything to do with debuging goes in here
org.ninm.games.cardgames
- package org.ninm.games.cardgames
This package contains all the interfaces for a card game.
org.ninm.games.cardgames.belot
- package org.ninm.games.cardgames.belot
This package contains the implementation of the Belot card game
org.ninm.games.cardgames.common
- package org.ninm.games.cardgames.common
Common classes and utilties used by card games.
P
PASS
- Static variable in class org.ninm.games.cardgames.belot.
BelotGame
PASS_VALUE
- Static variable in class org.ninm.games.cardgames.belot.
BelotGame
passes
- Variable in class org.ninm.games.cardgames.belot.
BiddingState
playCard(Card)
- Method in class org.ninm.games.cardgames.belot.
StateAdapter
playCard(Card)
- Method in interface org.ninm.games.cardgames.belot.
State
indicates a card has been played by a particular player
playCard(Card)
- Method in class org.ninm.games.cardgames.belot.
PlayingState
playCard(Player, Card)
- Method in interface org.ninm.games.cardgames.
Engine
informs the engine of a played card
playCard(Player, Card)
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
playCard(Player, Card)
- Method in class org.ninm.games.cardgames.common.
AbstractEngine
This implementation just checks weather the player is the currante player and weather the card is one of the allowed cards.
Player
- interface org.ninm.games.cardgames.
Player
.
This interface defines a card player
PlayingState
- class org.ninm.games.cardgames.belot.
PlayingState
.
The superclass of all the playing states which holds most of the common functionality
PlayingState(BelotEngine, Set)
- Constructor for class org.ninm.games.cardgames.belot.
PlayingState
Constructor PlayingState.
Q
QUAD
- Static variable in class org.ninm.games.cardgames.belot.
BelotTrick.Type
QUAD_VALUE
- Static variable in class org.ninm.games.cardgames.belot.
BelotTrick.Type
QUEEN
- Static variable in class org.ninm.games.cardgames.common.
Face
QUEEN_VALUE
- Static variable in class org.ninm.games.cardgames.common.
Face
R
REDOUBLED
- Static variable in class org.ninm.games.cardgames.belot.
BelotBid.DoublingFactor
REDOUBLED_VALUE
- Static variable in class org.ninm.games.cardgames.belot.
BelotBid.DoublingFactor
removeBeatenTricks(Set, Set)
- Method in class org.ninm.games.cardgames.belot.
PlayingState
removes any tricks that are beaten by opposition announced tricks
removeBelot(Set)
- Method in class org.ninm.games.cardgames.belot.
PlayingState
removes any belots from the set of announced tricks
removeCard(Card)
- Method in class org.ninm.games.cardgames.common.
DefaultPlayer
removes the card from the hand
removeConflictingTricks(Set, Set)
- Method in class org.ninm.games.cardgames.belot.
PlayingState
removes any tricks that conflict with announced tricks
reset()
- Method in class org.ninm.games.cardgames.belot.
Hand
resets this hand
resetAnnouncedTricks()
- Method in class org.ninm.games.cardgames.common.
DefaultTeam
resetAnnouncedTricks()
- Method in class org.ninm.games.cardgames.common.
DefaultScore
resetGameScore()
- Method in class org.ninm.games.cardgames.common.
DefaultScore
resetRubberScore()
- Method in class org.ninm.games.cardgames.common.
DefaultScore
resetTotalScore()
- Method in class org.ninm.games.cardgames.common.
DefaultScore
RESOURCE_BUNDLE
- Static variable in class org.ninm.games.cardgames.belot.
ExternalizedStrings
returnCard(Card)
- Method in interface org.ninm.games.cardgames.
Deck
returns the card to the deck
returnCard(Card)
- Method in class org.ninm.games.cardgames.common.
DefaultDeck
returnCardsToDeck()
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
returns all the cards to the deck
S
Score
- interface org.ninm.games.cardgames.
Score
.
This interface represents the currant score of any card game
SEQUENTIAL
- Static variable in class org.ninm.games.cardgames.belot.
BelotTrick.Type
SEQUENTIAL_VALUE
- Static variable in class org.ninm.games.cardgames.belot.
BelotTrick.Type
setActivePlayer(Player)
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
setBelotBid(BelotBid)
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
Sets the belotBid.
setBiddingTeam(Team)
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
Sets the biddingTeam.
setDealerToActivePlayer()
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
setIsActiveTeam(boolean)
- Method in class org.ninm.games.cardgames.common.
DefaultTeam
setIsDealer(boolean)
- Method in class org.ninm.games.cardgames.common.
DefaultPlayer
sets this player dealer status
setState(State)
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
SEVEN
- Static variable in class org.ninm.games.cardgames.common.
Face
SEVEN_VALUE
- Static variable in class org.ninm.games.cardgames.common.
Face
SIX
- Static variable in class org.ninm.games.cardgames.common.
Face
SIX_VALUE
- Static variable in class org.ninm.games.cardgames.common.
Face
size()
- Method in interface org.ninm.games.cardgames.
Deck
returns the number of cards left in the deck
size()
- Method in class org.ninm.games.cardgames.common.
DefaultDeck
SPADES
- Static variable in class org.ninm.games.cardgames.belot.
BelotGame
SPADES
- Static variable in class org.ninm.games.cardgames.common.
Suit
SPADES_VALUE
- Static variable in class org.ninm.games.cardgames.belot.
BelotGame
SPADES_VALUE
- Static variable in class org.ninm.games.cardgames.common.
Suit
SpecificTrumpState
- class org.ninm.games.cardgames.belot.
SpecificTrumpState
.
This state represents the logic of a "Specific Trumps" game e.g.
SpecificTrumpState(BelotEngine)
- Constructor for class org.ninm.games.cardgames.belot.
SpecificTrumpState
Constructor for SpecificTrumpState.
start()
- Method in interface org.ninm.games.cardgames.
CardGame
starts the card game
start()
- Method in interface org.ninm.games.cardgames.belot.
State
starts the logic of this state!
start()
- Method in class org.ninm.games.cardgames.belot.
StartState
start()
- Method in class org.ninm.games.cardgames.belot.
PlayingState
start()
- Method in class org.ninm.games.cardgames.belot.
DealingState
start()
- Method in class org.ninm.games.cardgames.belot.
BiddingState
start()
- Method in class org.ninm.games.cardgames.belot.
BelotEngine
start()
- Method in class org.ninm.games.cardgames.belot.
Belot
StartState
- class org.ninm.games.cardgames.belot.
StartState
.
Represents the initial dealing state.
StartState(BelotEngine)
- Constructor for class org.ninm.games.cardgames.belot.
StartState
State
- interface org.ninm.games.cardgames.belot.
State
.
This is the interface which all Belot states should implement
StateAdapter
- class org.ninm.games.cardgames.belot.
StateAdapter
.
A utility class which can be used to adapt the State interfaces
StateAdapter(BelotEngine)
- Constructor for class org.ninm.games.cardgames.belot.
StateAdapter
Constructor for StateAdapter.
Suit
- class org.ninm.games.cardgames.common.
Suit
.
this class represents a Card Suit
Suit(String, int)
- Constructor for class org.ninm.games.cardgames.common.
Suit
T
Team
- interface org.ninm.games.cardgames.
Team
.
This interface defines the functionality of a team participating in a card game
TEN
- Static variable in class org.ninm.games.cardgames.common.
Face
TEN_VALUE
- Static variable in class org.ninm.games.cardgames.common.
Face
THREE
- Static variable in class org.ninm.games.cardgames.common.
Face
THREE_VALUE
- Static variable in class org.ninm.games.cardgames.common.
Face
toArray()
- Static method in class org.ninm.games.cardgames.common.
Suit
toArray()
- Static method in class org.ninm.games.cardgames.common.
Face
toArray(boolean)
- Static method in class org.ninm.games.cardgames.common.
Face
toString()
- Method in class org.ninm.games.cardgames.belot.
BelotTrick
toString()
- Method in class org.ninm.games.cardgames.belot.
BelotBid
toString()
- Method in class org.ninm.games.cardgames.common.
DefaultPlayer
toString()
- Method in class org.ninm.games.cardgames.common.
DefaultDeck
toString()
- Method in class org.ninm.games.cardgames.common.
DealerEvent
returns the string representation of this dealer event
toString()
- Method in class org.ninm.games.cardgames.common.
CardGameEvent
returns the string representation of the card game event
toString()
- Method in class org.ninm.games.cardgames.common.
Card
toString()
- Method in class org.ninm.games.cardgames.common.
BonusEvent
returns the string representation of this event
Trick
- interface org.ninm.games.cardgames.
Trick
.
This interface defines tricks that can be anounced by players
TWO
- Static variable in class org.ninm.games.cardgames.common.
Face
TWO_VALUE
- Static variable in class org.ninm.games.cardgames.common.
Face
A
B
C
D
E
F
G
H
I
J
K
M
N
O
P
Q
R
S
T
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes