org.moyoman.comm.client
Class MoyomanPlayerFactory

java.lang.Object
  |
  +--org.moyoman.comm.client.MoyomanPlayerFactory

public class MoyomanPlayerFactory
extends Object

Create MoyomanPlayer objects as needed.


Constructor Summary
MoyomanPlayerFactory()
           
 
Method Summary
protected static MoyomanPlayer getMoyomanPlayer(Color color, Handicap handicap, GameId gameId)
          Create the MoyomanPlayer object to play a game that was previously saved.
static MoyomanPlayer getMoyomanPlayer(Color c, Handicap h, Mode mode)
          Create the MoyomanPlayer object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoyomanPlayerFactory

public MoyomanPlayerFactory()
Method Detail

getMoyomanPlayer

public static MoyomanPlayer getMoyomanPlayer(Color c,
                                             Handicap h,
                                             Mode mode)
                                      throws InternalErrorException
Create the MoyomanPlayer object.

Parameters:
c - The color of the player.
h - The handicap of the player.
mode - The mode of the player.
Throws:
InternalErrorException - - Thrown if the operation fails for any reason.

getMoyomanPlayer

protected static MoyomanPlayer getMoyomanPlayer(Color color,
                                                Handicap handicap,
                                                GameId gameId)
                                         throws InternalErrorException
Create the MoyomanPlayer object to play a game that was previously saved.

Throws:
InternalErrorException - - Thrown if the operation fails for any reason.