de.kosi
Interface ComputerPlayer
- All Known Implementing Classes:
- DefaultComputerPlayer
- public interface ComputerPlayer
This interface provides method declarations that have to be
implemented by computer player developers to let their computer
player be startable from the KoSI server.
ChangeLog:
$Log: ComputerPlayer.java,v $
Revision 1.1 2001/08/21 11:23:45 betacarotine
continued implementing the computer player integration
- Version:
- $Revision: 1.1 $ ($Date: 2001/08/21 11:23:45 $)
- Author:
- PG KoSI, Fachbereich Informatik, Universitaet Oldenburg
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. |
getName
public 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).
- 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
- Starts the computer player with the given login name. It then
should connect to the server and wait to be invited to a table.
- 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.