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"> <service header="lib/SOURCE_HEADER" classpathref="classpath">
<fileset dir="src/java" includes="**/*Service.java" <fileset dir="src/java" includes="**/*Service.java"
excludes="**/InvocationService.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> </service>
</target> </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 // 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/ // http://www.threerings.net/code/narya/
// //
// This library is free software; you can redistribute it and/or modify it // This library is free software; you can redistribute it and/or modify it
@@ -21,29 +21,27 @@
package com.threerings.micasa.lobby; 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.data.ClientObject;
import com.threerings.presents.server.InvocationException;
import com.threerings.presents.server.InvocationProvider; import com.threerings.presents.server.InvocationProvider;
import java.util.List;
import com.threerings.micasa.lobby.LobbyService.CategoriesListener;
import com.threerings.micasa.lobby.LobbyService.LobbiesListener;
/** /**
* Provides access to the server-side implementation of the lobby * Defines the server-side of the {@link LobbyService}.
* services.
*/ */
public interface LobbyProvider extends InvocationProvider public interface LobbyProvider extends InvocationProvider
{ {
/** /**
* Processes a request by the client to obtain a list of the lobby * Handles a {@link LobbyService#getCategories} request.
* categories available on this server.
*/ */
public void getCategories (ClientObject caller, public void getCategories (ClientObject caller, LobbyService.CategoriesListener arg1)
CategoriesListener listener); throws InvocationException;
/** /**
* Processes a request by the client to obtain a list of lobbies * Handles a {@link LobbyService#getLobbies} request.
* matching the supplied category string.
*/ */
public void getLobbies (ClientObject caller, String category, public void getLobbies (ClientObject caller, String arg1, LobbyService.LobbiesListener arg2)
LobbiesListener listener); 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; package com.threerings.parlor.card.trick.server;
import com.threerings.parlor.card.data.Card; 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.data.ClientObject;
import com.threerings.presents.server.InvocationException; import com.threerings.presents.server.InvocationException;
import com.threerings.presents.server.InvocationProvider; 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 public interface TrickCardGameProvider extends InvocationProvider
{ {
/** /**
* Sends a group of cards to the player at the specified index. * Handles a {@link TrickCardGameService#playCard} request.
*
* @param client the client object
* @param toidx the index of the player to send the cards to
* @param cards the cards to send
*/ */
public void sendCardsToPlayer (ClientObject client, int toidx, public void playCard (ClientObject caller, Card arg1, int arg2);
Card[] cards);
/** /**
* Plays a card in the trick. * Handles a {@link TrickCardGameService#requestRematch} request.
*
* @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
*/ */
public void playCard (ClientObject client, Card card, int handSize); public void requestRematch (ClientObject caller);
/** /**
* Processes a request for a rematch. * Handles a {@link TrickCardGameService#sendCardsToPlayer} request.
*
* @param client the client object
*/ */
public void requestRematch (ClientObject client); public void sendCardsToPlayer (ClientObject caller, int arg1, Card[] arg2);
} }
@@ -2,7 +2,7 @@
// $Id$ // $Id$
// //
// Narya library - tools for developing networked games // 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/ // http://www.threerings.net/code/narya/
// //
// This library is free software; you can redistribute it and/or modify it // This library is free software; you can redistribute it and/or modify it
@@ -21,18 +21,19 @@
package com.threerings.parlor.game.server; 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.data.ClientObject;
import com.threerings.presents.server.InvocationException;
import com.threerings.presents.server.InvocationProvider; import com.threerings.presents.server.InvocationProvider;
/** /**
* Provides access to the server-side implementation of the game * Defines the server-side of the {@link GameService}.
* invocation services.
*/ */
public interface GameProvider extends InvocationProvider public interface GameProvider extends InvocationProvider
{ {
/** /**
* Called when the client has sent a {@link GameService#playerReady} * Handles a {@link GameService#playerReady} request.
* service request.
*/ */
public void playerReady (ClientObject caller); 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 // 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/ // http://www.threerings.net/code/narya/
// //
// This library is free software; you can redistribute it and/or modify it // This library is free software; you can redistribute it and/or modify it
@@ -21,27 +21,25 @@
package com.threerings.puzzle.server; package com.threerings.puzzle.server;
import com.threerings.presents.client.Client;
import com.threerings.presents.data.ClientObject; import com.threerings.presents.data.ClientObject;
import com.threerings.presents.server.InvocationException;
import com.threerings.presents.server.InvocationProvider; import com.threerings.presents.server.InvocationProvider;
import com.threerings.puzzle.client.PuzzleGameService; import com.threerings.puzzle.client.PuzzleGameService;
import com.threerings.puzzle.data.Board; 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 public interface PuzzleGameProvider extends InvocationProvider
{ {
/** /**
* Called when the client has sent a {@link * Handles a {@link PuzzleGameService#updateProgress} request.
* PuzzleGameService#updateProgress} service 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 * Handles a {@link PuzzleGameService#updateProgressSync} request.
* PuzzleGameService#updateProgressSync} service request.
*/ */
public void updateProgressSync ( public void updateProgressSync (ClientObject caller, int arg1, int[] arg2, Board[] arg3);
ClientObject caller, int roundId, int[] events, Board[] states);
} }
@@ -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; 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.data.ClientObject;
import com.threerings.presents.server.InvocationException; import com.threerings.presents.server.InvocationException;
import com.threerings.presents.server.InvocationProvider; import com.threerings.presents.server.InvocationProvider;
import com.threerings.miso.data.ObjectInfo;
import com.threerings.stage.client.StageSceneService; 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 public interface StageSceneProvider extends InvocationProvider
{ {
/** /**
* Handles a {@link StageSceneService#addObject} request. * Handles a {@link StageSceneService#addObject} request.
*/ */
public void addObject (ClientObject caller, ObjectInfo info, public void addObject (ClientObject caller, ObjectInfo arg1, InvocationService.ConfirmListener arg2)
StageSceneService.ConfirmListener listener)
throws InvocationException; throws InvocationException;
/** /**
* Handles a {@link StageSceneService#removeObject} request. * Handles a {@link StageSceneService#removeObjects} request.
*/ */
public void removeObjects (ClientObject caller, ObjectInfo[] info, public void removeObjects (ClientObject caller, ObjectInfo[] arg1, InvocationService.ConfirmListener arg2)
StageSceneService.ConfirmListener listener)
throws InvocationException; throws InvocationException;
} }