project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/netplay/GameMessageListener.java
changeset 10017 de822cd3df3a
parent 7584 7831c84cc644
equal deleted inserted replaced
10015:4feced261c68 10017:de822cd3df3a
    21 
    21 
    22 /**
    22 /**
    23  * Interface with several event callbacks that represent network messages which are interesting
    23  * Interface with several event callbacks that represent network messages which are interesting
    24  * for a running game, e.g. because they concern the lifecycle of the game or because they contain
    24  * for a running game, e.g. because they concern the lifecycle of the game or because they contain
    25  * data that needs to be passed on.
    25  * data that needs to be passed on.
    26  * 
    26  *
    27  * These functions might be called on any thread.
    27  * These functions might be called on any thread.
    28  */
    28  */
    29 public interface GameMessageListener {
    29 public interface GameMessageListener {
    30 	void onChatMessage(String nick, String message);
    30     void onChatMessage(String nick, String message);
    31 	void onEngineMessage(byte[] em);
    31     void onEngineMessage(byte[] em);
    32 	void onMessage(int type, String message);
    32     void onMessage(int type, String message);
    33 	void onNetDisconnected();
    33     void onNetDisconnected();
    34 }
    34 }