Compilation...

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@31 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2006-07-28 20:49:54 +00:00
parent 7ee319bb2b
commit de896d967c
10 changed files with 62 additions and 44 deletions
@@ -32,7 +32,7 @@ import com.threerings.parlor.util.ParlorContext;
* outstanding invitations generated by or targeted to this client.
*/
public class Invitation
implements ParlorCodes, ParlorService_InviteListener
implements ParlorService_InviteListener
{
/** The unique id for this invitation (as assigned by the
* server). This is -1 until we receive an acknowledgement from
@@ -65,7 +65,7 @@ public class Invitation
{
// generate the invocation service request
_pservice.respond(_ctx.getClient(), inviteId,
INVITATION_ACCEPTED, null, this);
ParlorCodes.INVITATION_ACCEPTED, null, this);
}
/**
@@ -79,7 +79,7 @@ public class Invitation
{
// generate the invocation service request
_pservice.respond(_ctx.getClient(), inviteId,
INVITATION_REFUSED, message, this);
ParlorCodes.INVITATION_REFUSED, message, this);
}
/**
@@ -118,7 +118,7 @@ public class Invitation
// generate the invocation service request
_pservice.respond(_ctx.getClient(), inviteId,
INVITATION_COUNTERED, config, this);
ParlorCodes.INVITATION_COUNTERED, config, this);
}
// documentation inherited from interface
@@ -148,7 +148,7 @@ public class Invitation
* Called by the parlor director when we receive a response to an
* invitation initiated by this client.
*/
protected function receivedResponse (code :int, arg :Object) :void
internal function receivedResponse (code :int, arg :Object) :void
{
// make sure we have an observer to notify
if (_observer == null) {
@@ -160,20 +160,20 @@ public class Invitation
// notify the observer
try {
switch (code) {
case INVITATION_ACCEPTED:
case ParlorCodes.INVITATION_ACCEPTED:
_observer.invitationAccepted(this);
break;
case INVITATION_REFUSED:
case ParlorCodes.INVITATION_REFUSED:
_observer.invitationRefused(this, (arg as String));
break;
case INVITATION_COUNTERED:
case ParlorCodes.INVITATION_COUNTERED:
_observer.invitationCountered(this, (arg as GameConfig));
break;
}
} catch (err :Error) {
} catch (e :Error) {
var log :Log = Log.getLog(this);
log.warning("Invitation response observer choked on response " +
"[code=" + code + ", arg=" + arg +
@@ -183,7 +183,7 @@ public class Invitation
// unless the invitation was countered, we can remove it from the
// pending table because it's resolved
if (code != INVITATION_COUNTERED) {
if (code != ParlorCodes.INVITATION_COUNTERED) {
_ctx.getParlorDirector().clearInvitation(this);
}
}