1
/* Melbourne University Game-based Learning Environment
2
* Copyright (C) 2011 The University of Melbourne
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.
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.
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/>.
18
package au.edu.unimelb.csse.mugle.client.multiplayer.api;
20
import au.edu.unimelb.csse.mugle.shared.multiplayer.api.GameState;
22
import com.google.gwt.user.client.rpc.AsyncCallback;
25
* Services for logging game state.
27
public interface LoggingServiceAsync {
29
* Create a log for the current game.
31
* @param instanceToken
32
* The secret token of the current game instance.
35
* @param hasLogMessages
36
* whether the log contains messages which are sent during the
39
void log(String instanceToken, GameState state, boolean hasLogMessages,
40
AsyncCallback<Void> callback);