Enumerated legacy services which have class-based providers and regenerated

those that do not using the template.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3716 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2005-09-27 23:09:45 +00:00
parent e52758ef2c
commit f32b2de490
6 changed files with 96 additions and 65 deletions
+11
View File
@@ -57,6 +57,17 @@
<service header="lib/SOURCE_HEADER" classpathref="classpath">
<fileset dir="src/java" includes="**/*Service.java"
excludes="**/InvocationService.java"/>
<providerless service="AdminService"/>
<providerless service="ChatService"/>
<providerless service="SpeakService"/>
<providerless service="LocationService"/>
<providerless service="BodyService"/>
<providerless service="SimulatorService"/>
<providerless service="ParlorService"/>
<providerless service="TimeBaseService"/>
<providerless service="SpotService"/>
<providerless service="ZoneService"/>
<providerless service="SceneService"/>
</service>
</target>
@@ -1,8 +1,8 @@
//
// $Id: LobbyProvider.java,v 1.6 2004/08/27 02:12:50 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
// http://www.threerings.net/code/narya/
//
// This library is free software; you can redistribute it and/or modify it
@@ -21,29 +21,27 @@
package com.threerings.micasa.lobby;
import com.threerings.micasa.lobby.LobbyService;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationException;
import com.threerings.presents.server.InvocationProvider;
import com.threerings.micasa.lobby.LobbyService.CategoriesListener;
import com.threerings.micasa.lobby.LobbyService.LobbiesListener;
import java.util.List;
/**
* Provides access to the server-side implementation of the lobby
* services.
* Defines the server-side of the {@link LobbyService}.
*/
public interface LobbyProvider extends InvocationProvider
{
/**
* Processes a request by the client to obtain a list of the lobby
* categories available on this server.
* Handles a {@link LobbyService#getCategories} request.
*/
public void getCategories (ClientObject caller,
CategoriesListener listener);
public void getCategories (ClientObject caller, LobbyService.CategoriesListener arg1)
throws InvocationException;
/**
* Processes a request by the client to obtain a list of lobbies
* matching the supplied category string.
* Handles a {@link LobbyService#getLobbies} request.
*/
public void getLobbies (ClientObject caller, String category,
LobbiesListener listener);
public void getLobbies (ClientObject caller, String arg1, LobbyService.LobbiesListener arg2)
throws InvocationException;
}
@@ -1,43 +1,50 @@
//
// $Id: RoisterService.java 17829 2004-11-12 20:24:43Z mdb $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
// http://www.threerings.net/code/narya/
//
// 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.card.trick.server;
import com.threerings.parlor.card.data.Card;
import com.threerings.parlor.card.trick.client.TrickCardGameService;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationException;
import com.threerings.presents.server.InvocationProvider;
/**
* Service calls related to trick card games.
* Defines the server-side of the {@link TrickCardGameService}.
*/
public interface TrickCardGameProvider extends InvocationProvider
{
/**
* Sends a group of cards to the player at the specified index.
*
* @param client the client object
* @param toidx the index of the player to send the cards to
* @param cards the cards to send
* Handles a {@link TrickCardGameService#playCard} request.
*/
public void sendCardsToPlayer (ClientObject client, int toidx,
Card[] cards);
public void playCard (ClientObject caller, Card arg1, int arg2);
/**
* Plays a card in the trick.
*
* @param client the client object
* @param card the card to play
* @param handSize the size of the player's hand, which is used to verify
* that the request is for the current trick
* Handles a {@link TrickCardGameService#requestRematch} request.
*/
public void playCard (ClientObject client, Card card, int handSize);
public void requestRematch (ClientObject caller);
/**
* Processes a request for a rematch.
*
* @param client the client object
* Handles a {@link TrickCardGameService#sendCardsToPlayer} request.
*/
public void requestRematch (ClientObject client);
public void sendCardsToPlayer (ClientObject caller, int arg1, Card[] arg2);
}
@@ -2,7 +2,7 @@
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
// http://www.threerings.net/code/narya/
//
// This library is free software; you can redistribute it and/or modify it
@@ -21,18 +21,19 @@
package com.threerings.parlor.game.server;
import com.threerings.parlor.game.client.GameService;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationException;
import com.threerings.presents.server.InvocationProvider;
/**
* Provides access to the server-side implementation of the game
* invocation services.
* Defines the server-side of the {@link GameService}.
*/
public interface GameProvider extends InvocationProvider
{
/**
* Called when the client has sent a {@link GameService#playerReady}
* service request.
* Handles a {@link GameService#playerReady} request.
*/
public void playerReady (ClientObject caller);
}
@@ -1,8 +1,8 @@
//
// $Id: PuzzleGameProvider.java,v 1.2 2004/08/27 02:20:32 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
// http://www.threerings.net/code/narya/
//
// This library is free software; you can redistribute it and/or modify it
@@ -21,27 +21,25 @@
package com.threerings.puzzle.server;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationException;
import com.threerings.presents.server.InvocationProvider;
import com.threerings.puzzle.client.PuzzleGameService;
import com.threerings.puzzle.data.Board;
/**
* Handles the server side of the puzzle game services.
* Defines the server-side of the {@link PuzzleGameService}.
*/
public interface PuzzleGameProvider extends InvocationProvider
{
/**
* Called when the client has sent a {@link
* PuzzleGameService#updateProgress} service request.
* Handles a {@link PuzzleGameService#updateProgress} request.
*/
public void updateProgress (ClientObject caller, int roundId, int[] events);
public void updateProgress (ClientObject caller, int arg1, int[] arg2);
/**
* Called when the client has sent a {@link
* PuzzleGameService#updateProgressSync} service request.
* Handles a {@link PuzzleGameService#updateProgressSync} request.
*/
public void updateProgressSync (
ClientObject caller, int roundId, int[] events, Board[] states);
public void updateProgressSync (ClientObject caller, int arg1, int[] arg2, Board[] arg3);
}
@@ -1,32 +1,48 @@
//
// $Id: StageSceneProvider.java 14426 2004-03-12 12:12:32Z mdb $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2005 Three Rings Design, Inc., All Rights Reserved
// http://www.threerings.net/code/narya/
//
// 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.stage.server;
import com.threerings.miso.data.ObjectInfo;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationException;
import com.threerings.presents.server.InvocationProvider;
import com.threerings.miso.data.ObjectInfo;
import com.threerings.stage.client.StageSceneService;
/**
* Defines the server side of the {@link StageSceneService}.
* Defines the server-side of the {@link StageSceneService}.
*/
public interface StageSceneProvider extends InvocationProvider
{
/**
* Handles a {@link StageSceneService#addObject} request.
*/
public void addObject (ClientObject caller, ObjectInfo info,
StageSceneService.ConfirmListener listener)
public void addObject (ClientObject caller, ObjectInfo arg1, InvocationService.ConfirmListener arg2)
throws InvocationException;
/**
* Handles a {@link StageSceneService#removeObject} request.
* Handles a {@link StageSceneService#removeObjects} request.
*/
public void removeObjects (ClientObject caller, ObjectInfo[] info,
StageSceneService.ConfirmListener listener)
public void removeObjects (ClientObject caller, ObjectInfo[] arg1, InvocationService.ConfirmListener arg2)
throws InvocationException;
}