Boot by Name instead of table position
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@730 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -23,6 +23,7 @@ package com.threerings.parlor.client;
|
||||
|
||||
import com.samskivert.util.ObjectUtil;
|
||||
import com.samskivert.util.ObserverList;
|
||||
import com.threerings.util.Name;
|
||||
|
||||
import com.threerings.presents.client.BasicDirector;
|
||||
import com.threerings.presents.client.Client;
|
||||
@@ -222,15 +223,15 @@ public class TableDirector extends BasicDirector
|
||||
/**
|
||||
* Sends a request to boot a player from a table.
|
||||
*/
|
||||
public void bootPlayer (int tableId, int bodyId)
|
||||
public void bootPlayer (int tableId, Name target)
|
||||
{
|
||||
if (_tlobj == null) {
|
||||
log.warning("Requesting to boot a player from a table we're not currently in " +
|
||||
"[tableId=" + tableId + ", target=" + bodyId + "].");
|
||||
"[tableId=" + tableId + ", target=" + target + "].");
|
||||
return;
|
||||
}
|
||||
|
||||
_tlobj.getTableService().bootPlayer(_ctx.getClient(), tableId, bodyId, this);
|
||||
_tlobj.getTableService().bootPlayer(_ctx.getClient(), tableId, target, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
package com.threerings.parlor.client;
|
||||
|
||||
import com.threerings.util.Name;
|
||||
|
||||
import com.threerings.presents.client.Client;
|
||||
import com.threerings.presents.client.InvocationService;
|
||||
|
||||
@@ -72,5 +74,5 @@ public interface TableService extends InvocationService
|
||||
/**
|
||||
* Requests that another user be booted from the specified table.
|
||||
*/
|
||||
public void bootPlayer (Client client, int tableId, int bodyId, InvocationListener listener);
|
||||
public void bootPlayer (Client client, int tableId, Name target, InvocationListener listener);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user