com.threerings.parlor.server
Class ParlorManager.Invitation

java.lang.Object
  extended by com.threerings.parlor.server.ParlorManager.Invitation
Enclosing class:
ParlorManager

protected static class ParlorManager.Invitation
extends Object

The invitation record is used by the parlor manager to keep track of pending invitations.


Field Summary
 GameConfig config
          The configuration of the game being proposed.
 BodyObject invitee
          The person to whom the invitation is proposed.
 int inviteId
          The unique identifier for this invitation.
 BodyObject inviter
          The person proposing the invitation.
 
Constructor Summary
ParlorManager.Invitation(BodyObject inviter, BodyObject invitee, GameConfig config)
          Constructs a new invitation with the specified participants and configuration.
 
Method Summary
 void swapControl()
          Swaps the inviter and invitee which is necessary when the invitee responds with a counter-invitation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inviteId

public int inviteId
The unique identifier for this invitation.


inviter

public BodyObject inviter
The person proposing the invitation.


invitee

public BodyObject invitee
The person to whom the invitation is proposed.


config

public GameConfig config
The configuration of the game being proposed.

Constructor Detail

ParlorManager.Invitation

public ParlorManager.Invitation(BodyObject inviter,
                                BodyObject invitee,
                                GameConfig config)
Constructs a new invitation with the specified participants and configuration.

Method Detail

swapControl

public void swapControl()
Swaps the inviter and invitee which is necessary when the invitee responds with a counter-invitation.