org.moyoman.comm.client
Class MoyomanPlayerFactory
java.lang.Object
|
+--org.moyoman.comm.client.MoyomanPlayerFactory
- public class MoyomanPlayerFactory
- extends Object
Create MoyomanPlayer objects as needed.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MoyomanPlayerFactory
public MoyomanPlayerFactory()
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.