project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/frontlib/Frontlib.java
changeset 7582 714310efad8f
parent 7558 983ff426f91e
child 7584 7831c84cc644
equal deleted inserted replaced
7580:c92596feac0d 7582:714310efad8f
     1 package org.hedgewars.hedgeroid.frontlib;
     1 package org.hedgewars.hedgeroid.frontlib;
     2 import java.io.UnsupportedEncodingException;
     2 import java.io.UnsupportedEncodingException;
     3 import java.nio.Buffer;
       
     4 import java.util.ArrayList;
     3 import java.util.ArrayList;
     5 import java.util.HashMap;
     4 import java.util.HashMap;
     6 import java.util.List;
     5 import java.util.List;
     7 import java.util.Map;
     6 import java.util.Map;
     8 
     7 
  1065 	void flib_netconn_onRunGame(NetconnPtr conn, VoidCallback callback, Pointer context);
  1064 	void flib_netconn_onRunGame(NetconnPtr conn, VoidCallback callback, Pointer context);
  1066 	void flib_netconn_onTeamAccepted(NetconnPtr conn, StrCallback callback, Pointer context);
  1065 	void flib_netconn_onTeamAccepted(NetconnPtr conn, StrCallback callback, Pointer context);
  1067 	void flib_netconn_onHogCountChanged(NetconnPtr conn, StrIntCallback callback, Pointer context);
  1066 	void flib_netconn_onHogCountChanged(NetconnPtr conn, StrIntCallback callback, Pointer context);
  1068 	void flib_netconn_onTeamColorChanged(NetconnPtr conn, StrIntCallback callback, Pointer context);
  1067 	void flib_netconn_onTeamColorChanged(NetconnPtr conn, StrIntCallback callback, Pointer context);
  1069 	void flib_netconn_onEngineMessage(NetconnPtr conn, BytesCallback callback, Pointer context);
  1068 	void flib_netconn_onEngineMessage(NetconnPtr conn, BytesCallback callback, Pointer context);
  1070 	void flib_netconn_onCfgScheme(NetconnPtr conn, SchemeCallback callback, Pointer context);
  1069 	void flib_netconn_onSchemeChanged(NetconnPtr conn, SchemeCallback callback, Pointer context);
  1071 	void flib_netconn_onMapChanged(NetconnPtr conn, MapIntCallback callback, Pointer context);
  1070 	void flib_netconn_onMapChanged(NetconnPtr conn, MapIntCallback callback, Pointer context);
  1072 	void flib_netconn_onScriptChanged(NetconnPtr conn, StrCallback callback, Pointer context);
  1071 	void flib_netconn_onScriptChanged(NetconnPtr conn, StrCallback callback, Pointer context);
  1073 	void flib_netconn_onWeaponsetChanged(NetconnPtr conn, WeaponsetCallback callback, Pointer context);
  1072 	void flib_netconn_onWeaponsetChanged(NetconnPtr conn, WeaponsetCallback callback, Pointer context);
  1074 	void flib_netconn_onAdminAccess(NetconnPtr conn, VoidCallback callback, Pointer context);
  1073 	void flib_netconn_onAdminAccess(NetconnPtr conn, VoidCallback callback, Pointer context);
  1075 	void flib_netconn_onServerVar(NetconnPtr conn, StrStrCallback callback, Pointer context);
  1074 	void flib_netconn_onServerVar(NetconnPtr conn, StrStrCallback callback, Pointer context);
  1079 	static final int GAME_END_INTERRUPTED = 1;
  1078 	static final int GAME_END_INTERRUPTED = 1;
  1080 	static final int GAME_END_HALTED = 2;
  1079 	static final int GAME_END_HALTED = 2;
  1081 	static final int GAME_END_ERROR = 3;
  1080 	static final int GAME_END_ERROR = 3;
  1082 	
  1081 	
  1083 	GameconnPtr flib_gameconn_create(String playerName, GameSetupPtr setup, boolean netgame);
  1082 	GameconnPtr flib_gameconn_create(String playerName, GameSetupPtr setup, boolean netgame);
  1084 	GameconnPtr flib_gameconn_create_playdemo(Buffer demo, NativeSizeT size);
  1083 	GameconnPtr flib_gameconn_create_playdemo(Pointer demo, NativeSizeT size);
  1085 	GameconnPtr flib_gameconn_create_loadgame(String playerName, Buffer save, NativeSizeT size);
  1084 	GameconnPtr flib_gameconn_create_loadgame(String playerName, Pointer save, NativeSizeT size);
  1086 	GameconnPtr flib_gameconn_create_campaign(String playerName, String seed, String script);
  1085 	GameconnPtr flib_gameconn_create_campaign(String playerName, String seed, String script);
  1087 
  1086 
  1088 	void flib_gameconn_destroy(GameconnPtr conn);
  1087 	void flib_gameconn_destroy(GameconnPtr conn);
  1089 	int flib_gameconn_getport(GameconnPtr conn);
  1088 	int flib_gameconn_getport(GameconnPtr conn);
  1090 	void flib_gameconn_tick(GameconnPtr conn);
  1089 	void flib_gameconn_tick(GameconnPtr conn);
  1091 
  1090 
  1092 	int flib_gameconn_send_enginemsg(GameconnPtr conn, Pointer data, NativeSizeT len);
  1091 	int flib_gameconn_send_enginemsg(GameconnPtr conn, Pointer data, NativeSizeT len);
  1093 	int flib_gameconn_send_textmsg(GameconnPtr conn, int msgtype, String msg);
  1092 	int flib_gameconn_send_textmsg(GameconnPtr conn, int msgtype, String msg);
  1094 	int flib_gameconn_send_chatmsg(GameconnPtr conn, String playername, String msg);
  1093 	int flib_gameconn_send_chatmsg(GameconnPtr conn, String playername, String msg);
  1095 	int flib_gameconn_send_quit(GameconnPtr conn);
  1094 	int flib_gameconn_send_quit(GameconnPtr conn);
       
  1095 	int flib_gameconn_send_cmd(GameconnPtr conn, String cmdString);
  1096 	
  1096 	
  1097 	void flib_gameconn_onConnect(GameconnPtr conn, VoidCallback callback, Pointer context);
  1097 	void flib_gameconn_onConnect(GameconnPtr conn, VoidCallback callback, Pointer context);
  1098 	void flib_gameconn_onDisconnect(GameconnPtr conn, IntCallback callback, Pointer context);
  1098 	void flib_gameconn_onDisconnect(GameconnPtr conn, IntCallback callback, Pointer context);
  1099 	void flib_gameconn_onErrorMessage(GameconnPtr conn, StrCallback callback, Pointer context);
  1099 	void flib_gameconn_onErrorMessage(GameconnPtr conn, StrCallback callback, Pointer context);
  1100 	void flib_gameconn_onChat(GameconnPtr conn, StrBoolCallback callback, Pointer context);
  1100 	void flib_gameconn_onChat(GameconnPtr conn, StrBoolCallback callback, Pointer context);