The great invocation services rethink of 2002! Rearchitected the remote
method invocation services and converted everything to the new style. Could this be my biggest checkin ever? git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1642 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: TestClient.java,v 1.8 2002/04/15 14:38:45 shaper Exp $
|
||||
// $Id: TestClient.java,v 1.9 2002/08/14 19:07:59 mdb Exp $
|
||||
|
||||
package com.threerings.parlor;
|
||||
|
||||
@@ -99,35 +99,33 @@ public class TestClient
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
public void invitationReceived (int inviteId, String inviter,
|
||||
GameConfig config)
|
||||
public void invitationReceived (Invitation invite)
|
||||
{
|
||||
Log.info("Invitation received [inviteId=" + inviteId +
|
||||
", inviter=" + inviter + ", config=" + config + "].");
|
||||
Log.info("Invitation received [invite=" + invite + "].");
|
||||
|
||||
// accept the invitation. we're game...
|
||||
_pardtr.accept(inviteId);
|
||||
invite.accept();
|
||||
}
|
||||
|
||||
public void invitationCancelled (int inviteId)
|
||||
public void invitationCancelled (Invitation invite)
|
||||
{
|
||||
Log.info("Invitation cancelled [inviteId=" + inviteId + "].");
|
||||
Log.info("Invitation cancelled [invite=" + invite + "].");
|
||||
}
|
||||
|
||||
public void invitationAccepted (int inviteId)
|
||||
public void invitationAccepted (Invitation invite)
|
||||
{
|
||||
Log.info("Invitation accepted [inviteId=" + inviteId + "].");
|
||||
Log.info("Invitation accepted [invite=" + invite + "].");
|
||||
}
|
||||
|
||||
public void invitationRefused (int inviteId, String message)
|
||||
public void invitationRefused (Invitation invite, String message)
|
||||
{
|
||||
Log.info("Invitation refused [inviteId=" + inviteId +
|
||||
Log.info("Invitation refused [invite=" + invite +
|
||||
", message=" + message + "].");
|
||||
}
|
||||
|
||||
public void invitationCountered (int inviteId, GameConfig config)
|
||||
public void invitationCountered (Invitation invite, GameConfig config)
|
||||
{
|
||||
Log.info("Invitation countered [inviteId=" + inviteId +
|
||||
Log.info("Invitation countered [invite=" + invite +
|
||||
", config=" + config + "].");
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: TestServer.java,v 1.4 2002/03/28 22:32:33 mdb Exp $
|
||||
// $Id: TestServer.java,v 1.5 2002/08/14 19:07:59 mdb Exp $
|
||||
|
||||
package com.threerings.parlor;
|
||||
|
||||
@@ -23,7 +23,7 @@ public class TestServer extends CrowdServer
|
||||
super.init();
|
||||
|
||||
// initialize our parlor manager
|
||||
parmgr.init(invmgr);
|
||||
parmgr.init(invmgr, plreg);
|
||||
|
||||
Log.info("Parlor server initialized.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user