~mugle-dev/mugle/trunk

« back to all changes in this revision

Viewing changes to src/au/edu/unimelb/csse/mugle/client/multiplayer/api/LoggingServiceAsync.java

  • Committer: Aidan Nagorcka-Smith
  • Date: 2012-03-11 13:33:37 UTC
  • mfrom: (467.1.4 multi-player)
  • Revision ID: aidanns@gmail.com-20120311133337-l6xcvspfjvgn27mo
Merged changes from multiplayer branch in to trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*  Melbourne University Game-based Learning Environment
 
2
 *  Copyright (C) 2011 The University of Melbourne
 
3
 *
 
4
 *  This program is free software: you can redistribute it and/or modify
 
5
 *  it under the terms of the GNU Lesser General Public License as published
 
6
 *  by the Free Software Foundation, either version 3 of the License, or
 
7
 *  (at your option) any later version.
 
8
 *
 
9
 *  This program is distributed in the hope that it will be useful,
 
10
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 *  GNU Lesser General Public License for more details.
 
13
 *
 
14
 *  You should have received a copy of the GNU Lesser General Public License
 
15
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
 */
 
17
 
 
18
package au.edu.unimelb.csse.mugle.client.multiplayer.api;
 
19
 
 
20
import au.edu.unimelb.csse.mugle.shared.multiplayer.api.GameState;
 
21
 
 
22
import com.google.gwt.user.client.rpc.AsyncCallback;
 
23
 
 
24
/**
 
25
 * Services for logging game state.
 
26
 */
 
27
public interface LoggingServiceAsync {
 
28
    /**
 
29
     * Create a log for the current game.
 
30
     * 
 
31
     * @param instanceToken
 
32
     *            The secret token of the current game instance.
 
33
     * @param state
 
34
     *            the game state.
 
35
     * @param hasLogMessages
 
36
     *            whether the log contains messages which are sent during the
 
37
     *            game play.
 
38
     */
 
39
    void log(String instanceToken, GameState state, boolean hasLogMessages,
 
40
            AsyncCallback<Void> callback);
 
41
 
 
42
}