org.cb.jset
Class JSetGameImpl

java.lang.Object
  extended byorg.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)
           
 
Method Summary
 SetGameConnection connect(SetGamePlayer player)
           
 int getCurrentNbPlayers()
           
 int getID()
           
 int getMaxNbPlayers()
           
 java.lang.String getName()
           
 int getTurnLength()
           
 void setTurnLength(int turnInSeconds)
           
 void start()
           
 void terminate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSetGameImpl

public JSetGameImpl(java.lang.String name,
                    int nbPlayers)
Method Detail

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.