project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/netplay/GameMessageListener.java
equal
deleted
inserted
replaced
|
1 package org.hedgewars.hedgeroid.netplay; |
|
2 |
|
3 /** |
|
4 * Interface with several event callbacks that represent network messages which are interesting |
|
5 * for a running game, e.g. because they concern the lifecycle of the game or because they contain |
|
6 * data that needs to be passed on. |
|
7 * |
|
8 * These functions might be called on any thread. |
|
9 */ |
|
10 public interface GameMessageListener { |
|
11 void onChatMessage(String nick, String message); |
|
12 void onEngineMessage(byte[] em); |
|
13 void onMessage(int type, String message); |
|
14 void onNetDisconnected(); |
|
15 } |