org.moyoman.client.reference
Class MousePlayerFactory

java.lang.Object
  |
  +--org.moyoman.client.reference.MousePlayerFactory
All Implemented Interfaces:
NonvalidatedPlayerFactory

public class MousePlayerFactory
extends Object
implements NonvalidatedPlayerFactory

Provides a factory for creating mouse players.

Since:
v0.03
Version:
v0.03
Author:
Jeffrey M. Thompson

Field Summary
private  IMoyoman _owner
          Owner.
 
Constructor Summary
MousePlayerFactory(IMoyoman owner)
          Construct this object with the given parameters.
 
Method Summary
 NonvalidatedPlayer create(Color c, Handicap h, String id)
          Create a player using the given parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_owner

private IMoyoman _owner
Owner.

Constructor Detail

MousePlayerFactory

public MousePlayerFactory(IMoyoman owner)
Construct this object with the given parameters.

Parameters:
owner - The owner.
Since:
v0.03
Method Detail

create

public NonvalidatedPlayer create(Color c,
                                 Handicap h,
                                 String id)
                          throws InternalErrorException
Create a player using the given parameters.

Specified by:
create in interface NonvalidatedPlayerFactory
Parameters:
c - The color of the player.
h - The handicap of the game.
id - Game ID.
InternalErrorException
Since:
v0.03