23ccfde6c8
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@365 542714f4-19e9-0310-aa3c-eee0fc999fb1
34 lines
1.1 KiB
Java
34 lines
1.1 KiB
Java
//
|
|
// $Id: InvitationHandler.java,v 1.1 2001/10/01 05:07:13 mdb Exp $
|
|
|
|
package com.threerings.parlor.client;
|
|
|
|
import com.threerings.parlor.data.GameConfig;
|
|
|
|
/**
|
|
* A client entity that wishes to handle invitations received by other
|
|
* clients should implement this interface and register itself with the
|
|
* parlor director. It will subsequently be notified of any incoming
|
|
* invitations. It is also responsible for handling cancelled invitations.
|
|
*/
|
|
public interface InvitationHandler
|
|
{
|
|
/**
|
|
* Called when an invitation is received from another player.
|
|
*
|
|
* @param inviteId this invitation's unique id.
|
|
* @param inviter the username of the user that sent the invitation.
|
|
* @param config the configuration of the game to which we are being
|
|
* invited.
|
|
*/
|
|
public void invitationReceived (int inviteId, String inviter,
|
|
GameConfig config);
|
|
|
|
/**
|
|
* Called when an invitation is cancelled by the inviting player.
|
|
*
|
|
* @param inviteId this invitation's unique id.
|
|
*/
|
|
public void invitationCancelled (int inviteId);
|
|
}
|