de.kosi
Class DefaultComputerPlayer

java.lang.Object
  |
  +--de.kosi.DefaultComputerPlayer
All Implemented Interfaces:
ComputerPlayer

public class DefaultComputerPlayer
extends java.lang.Object
implements ComputerPlayer


Constructor Summary
DefaultComputerPlayer()
           
 
Method Summary
 java.lang.String getName()
          This method returns the name of the computer player (not the login name but the name that the programmers gave their product).
 void start(java.lang.String login, java.lang.String password, java.lang.String server)
          Starts the computer player with the given login name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultComputerPlayer

public DefaultComputerPlayer()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: ComputerPlayer
This method returns the name of the computer player (not the login name but the name that the programmers gave their product).
Specified by:
getName in interface ComputerPlayer
Following copied from interface: de.kosi.ComputerPlayer
Returns:
The name of the computer player.

start

public void start(java.lang.String login,
                  java.lang.String password,
                  java.lang.String server)
           throws ComputerPlayerException
Description copied from interface: ComputerPlayer
Starts the computer player with the given login name. It then should connect to the server and wait to be invited to a table.
Specified by:
start in interface ComputerPlayer
Following copied from interface: de.kosi.ComputerPlayer
Parameters:
login - The login name that the computer player should use.
password - The password that the computer player needs to log in.
server - The server the computer player should connect to.
Throws:
ComputerPlayerException - If the start of the computer player failed.