|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.kosi.AbstractClient | +--de.kosi.ComputerPlayerClient
Establishes a connection between the Oz computer player and the KOSI server. Currently logs in and waits to be invited.
Constructor Summary | |
ComputerPlayerClient()
Creates a new ComputerPlayerClient. |
Method Summary | |
void |
invite(Table table,
User byUser,
int direction)
This method will be called if another user invites the user who registered this listener to take a seat at a specific table. |
void |
invite(Tournament tournament)
This method will be called if another user invites the user who registered this listener to take part in a specific tournament. |
static void |
main(java.lang.String[] args)
Main method |
void |
notify(Game game)
A call of this method notifies the user who registered this listener that he is currently playing the given game. |
void |
notify(Table table)
A call of this method notifies the user who registered this listener that he is currently sitting at the given table. |
void |
notify(Tournament tournament)
This method will be called if another user invites the user who registered this listener to take part in a specific tournament. |
void |
ping()
This method is used for ping signals. |
Methods inherited from class de.kosi.AbstractClient |
connect, disconnect, disconnectFromServer, getFoyer, login, logout |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ComputerPlayerClient()
Method Detail |
public void ping()
ping
in class AbstractClient
de.kosi.model.FoyerListener
java.rmi.RemoteException
- If the remote call of this method fails.public void notify(Table table)
table
- The table the user is currently sitting at.public void notify(Game game)
game
- The game the user is currently playing.public void notify(Tournament tournament)
tournament
- The tournament the user gets invited to.public void invite(Table table, User byUser, int direction) throws java.rmi.RemoteException
table
- The table the user gets invited to.RemoteException
- If the remove call fails.public void invite(Tournament tournament)
tournament
- The tournament the user gets invited to.public static void main(java.lang.String[] args)
args[0]
- port number of the
computer player serverargs[1]
- KoSI server nameargs[2]
- login nameargs[3]
- password
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |