Jacson

de.spieleck.app.turn.pairing
Class GameImpl

java.lang.Object
  extended by de.spieleck.app.turn.pairing.GameImpl
All Implemented Interfaces:
Game

public class GameImpl
extends java.lang.Object
implements Game

Simple implementation of Game for return purposes.

$URL: https://svn.sourceforge.net/svnroot/jtourney/src/de/spieleck/app/turn/pairing/GameImpl.java $

Version:
$Revision: 2 $ $Date: 2006-03-20 14:33:27 +0100 (Mo, 20 Mrz 2006) $ $Author: nestefan $
Author:
Frank S. Nestel, $Author: nestefan $

Constructor Summary
GameImpl(int id)
           
GameImpl(int id, Player[] players, int firstPlayer, int count)
           
 
Method Summary
 void add(Player p)
           
 boolean contains(Player p)
           
 int getId()
           
 java.util.Iterator<Player> players()
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GameImpl

public GameImpl(int id)

GameImpl

public GameImpl(int id,
                Player[] players,
                int firstPlayer,
                int count)
Method Detail

add

public void add(Player p)

contains

public boolean contains(Player p)
Specified by:
contains in interface Game

size

public int size()
Specified by:
size in interface Game

getId

public int getId()
Specified by:
getId in interface Game

players

public java.util.Iterator<Player> players()
Specified by:
players in interface Game

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

spieleck.de