org.ninm.games.cardgames.belot
Class Belot

java.lang.Object
  |
  +--org.ninm.games.cardgames.belot.Belot
All Implemented Interfaces:
CardGame

public final class Belot
extends java.lang.Object
implements CardGame

This class represents the belot card game

Version:
1.0
Author:
Nikolay

Field Summary
private static java.util.List g_nonTrumpOrder
           
private static java.util.List g_nonTrumpScores
           
private static java.util.List g_trickOrder
           
private static java.util.List g_trumpOrder
           
private static java.util.List g_trumpScores
           
private  Deck m_deck
           
private  BelotEngine m_engine
           
private  java.util.List m_players
           
private  DefaultScore m_score
           
private  java.util.List m_teams
           
 
Constructor Summary
  Belot()
           
(package private) Belot(Deck deck)
           
 
Method Summary
 Deck getDeck()
          returns the deck used to play this game
 Engine getEngine()
          returns the game engine that controls the logic of the game
static java.util.List getNonTrumpOrder()
           
static java.util.List getNonTrumpScores()
           
 DefaultTeam getOposition(Team team)
          returns the oposition to this team
 java.util.List getPlayers()
          this returns the order in which the players are going to play the game (i.e.
 Score getScore()
          gets the game score for this particular card game
static java.util.List getTrickOrder()
           
static java.util.List getTrumpOrder()
           
static java.util.List getTrumpScores()
           
 void start()
          starts the card game
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

g_trickOrder

private static final java.util.List g_trickOrder

g_trumpOrder

private static final java.util.List g_trumpOrder

g_trumpScores

private static final java.util.List g_trumpScores

g_nonTrumpOrder

private static final java.util.List g_nonTrumpOrder

g_nonTrumpScores

private static final java.util.List g_nonTrumpScores

m_engine

private final BelotEngine m_engine

m_deck

private final Deck m_deck

m_score

private final DefaultScore m_score

m_players

private final java.util.List m_players

m_teams

private final java.util.List m_teams
Constructor Detail

Belot

public Belot()

Belot

Belot(Deck deck)
Method Detail

getScore

public Score getScore()
Description copied from interface: CardGame
gets the game score for this particular card game

Specified by:
getScore in interface CardGame
Returns:
CardGameScore the current score

getEngine

public Engine getEngine()
Description copied from interface: CardGame
returns the game engine that controls the logic of the game

Specified by:
getEngine in interface CardGame
Returns:
CardGameEngine

getPlayers

public java.util.List getPlayers()
this returns the order in which the players are going to play the game (i.e. Anti-clockwise around the table)

Specified by:
getPlayers in interface CardGame
Returns:
the order in which the players are going to play the game

getDeck

public Deck getDeck()
Description copied from interface: CardGame
returns the deck used to play this game

Specified by:
getDeck in interface CardGame
Returns:
Deck

start

public void start()
Description copied from interface: CardGame
starts the card game

Specified by:
start in interface CardGame

getTrickOrder

public static java.util.List getTrickOrder()

getNonTrumpOrder

public static java.util.List getNonTrumpOrder()

getNonTrumpScores

public static java.util.List getNonTrumpScores()

getTrumpOrder

public static java.util.List getTrumpOrder()

getTrumpScores

public static java.util.List getTrumpScores()

getOposition

public DefaultTeam getOposition(Team team)
returns the oposition to this team

Parameters:
team - the team to find the oposition of
Returns:
DefaultTeam the oposition to the passed in team

SourceForge.net Logo