de.spieleck.app.turn.pairing
Class GameImpl
java.lang.Object
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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GameImpl
public GameImpl(int id)
GameImpl
public GameImpl(int id,
Player[] players,
int firstPlayer,
int count)
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