TableManagerProvider is no more.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@258 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -23,14 +23,12 @@ package com.threerings.micasa.lobby.table;
|
|||||||
|
|
||||||
import com.threerings.crowd.data.PlaceObject;
|
import com.threerings.crowd.data.PlaceObject;
|
||||||
import com.threerings.parlor.server.TableManager;
|
import com.threerings.parlor.server.TableManager;
|
||||||
import com.threerings.parlor.server.TableManagerProvider;
|
|
||||||
import com.threerings.micasa.lobby.LobbyManager;
|
import com.threerings.micasa.lobby.LobbyManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extends lobby manager only to ensure that a table lobby object is used for table lobbies.
|
* Extends lobby manager only to ensure that a table lobby object is used for table lobbies.
|
||||||
*/
|
*/
|
||||||
public class TableLobbyManager
|
public class TableLobbyManager extends LobbyManager
|
||||||
extends LobbyManager implements TableManagerProvider
|
|
||||||
{
|
{
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
protected void didStartup ()
|
protected void didStartup ()
|
||||||
@@ -46,12 +44,6 @@ public class TableLobbyManager
|
|||||||
return new TableLobbyObject();
|
return new TableLobbyObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
// documentation inherited
|
|
||||||
public TableManager getTableManager ()
|
|
||||||
{
|
|
||||||
return _tmgr;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** A reference to our table manager. */
|
/** A reference to our table manager. */
|
||||||
protected TableManager _tmgr;
|
protected TableManager _tmgr;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,10 +57,7 @@ import com.threerings.parlor.game.server.GameManager;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* A table manager can be used by a place manager (or other entity) to take care of the management
|
* A table manager can be used by a place manager (or other entity) to take care of the management
|
||||||
* of a table matchmaking service in the place managed by the place manager (or on some other
|
* of a table matchmaking service on a particular distributed object.
|
||||||
* distributed object). The place manager need instantiate a table manager and implement the {@link
|
|
||||||
* TableManagerProvider} interface to provide access to the table manager for the associated
|
|
||||||
* invocation services.
|
|
||||||
*/
|
*/
|
||||||
public class TableManager
|
public class TableManager
|
||||||
implements ParlorCodes, OidListListener, TableProvider
|
implements ParlorCodes, OidListListener, TableProvider
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
//
|
|
||||||
// $Id$
|
|
||||||
//
|
|
||||||
// Vilya library - tools for developing networked games
|
|
||||||
// Copyright (C) 2002-2007 Three Rings Design, Inc., All Rights Reserved
|
|
||||||
// http://www.threerings.net/code/vilya/
|
|
||||||
//
|
|
||||||
// This library is free software; you can redistribute it and/or modify it
|
|
||||||
// under the terms of the GNU Lesser General Public License as published
|
|
||||||
// by the Free Software Foundation; either version 2.1 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This library is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// Lesser General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU Lesser General Public
|
|
||||||
// License along with this library; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
|
|
||||||
package com.threerings.parlor.server;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A place manager that wishes to provide table matchmaking services in its place needs to create a
|
|
||||||
* table manager and make it available by implementing this interface. The table invocation
|
|
||||||
* services and the table manager will take care of the rest.
|
|
||||||
*/
|
|
||||||
public interface TableManagerProvider
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Returns a reference to the table manager that is responsible for table management in this
|
|
||||||
* lobby.
|
|
||||||
*/
|
|
||||||
public TableManager getTableManager ();
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user