org.cb.jset
Class JSetGameImpl
java.lang.Object
org.cb.jset.JSetGameImpl
- All Implemented Interfaces:
- SetGame
- public class JSetGameImpl
- extends java.lang.Object
- implements SetGame
- Version:
- $Id: JSetGameImpl.java 129 2004-04-15 05:00:43Z jerome $
- Author:
- jerome@coffeebreaks.org - last modified by $LastChangedBy: jerome $
Nested Class Summary |
class |
JSetGameImpl.GameConnectionImpl
A GameConnectionImpl instance acts as a broker between a Player and the Game
Useful to keep track which player does what. |
Constructor Summary |
JSetGameImpl(java.lang.String name,
int nbPlayers)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSetGameImpl
public JSetGameImpl(java.lang.String name,
int nbPlayers)
start
public void start()
- Specified by:
start
in interface SetGame
getTurnLength
public int getTurnLength()
setTurnLength
public void setTurnLength(int turnInSeconds)
terminate
public void terminate()
getName
public java.lang.String getName()
- Specified by:
getName
in interface SetGame
getCurrentNbPlayers
public int getCurrentNbPlayers()
- Specified by:
getCurrentNbPlayers
in interface SetGame
getMaxNbPlayers
public int getMaxNbPlayers()
- Specified by:
getMaxNbPlayers
in interface SetGame
connect
public SetGameConnection connect(SetGamePlayer player)
- Specified by:
connect
in interface SetGame
getID
public int getID()
- Specified by:
getID
in interface SetGame
Copyright © 2004 CoffeeBreaks. All Rights Reserved.