org.ninm.games.cardgames
Interface CardGame

All Known Implementing Classes:
Belot

public interface CardGame

The interface which all cardgames must implement in order that the GUI displays them uniformly

Version:
1.0
Author:
Nikolay

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
 java.util.List getPlayers()
          returns a list of players participating in this game
 Score getScore()
          gets the game score for this particular card game
 void start()
          starts the card game
 

Method Detail

getScore

public Score getScore()
gets the game score for this particular card game

Returns:
CardGameScore the current score

getEngine

public Engine getEngine()
returns the game engine that controls the logic of the game

Returns:
CardGameEngine

getPlayers

public java.util.List getPlayers()
returns a list of players participating in this game

Returns:
List a list of players in no particular order

getDeck

public Deck getDeck()
returns the deck used to play this game

Returns:
Deck

start

public void start()
starts the card game


SourceForge.net Logo