export model_getNumTilesInTray() via jni

This commit is contained in:
Eric House 2013-09-30 21:59:12 -07:00
parent fddd159e57
commit 552fa28b39
2 changed files with 14 additions and 0 deletions

View file

@ -935,6 +935,19 @@ Java_org_eehouse_android_xw4_jni_XwJNI_model_1getNMoves
return result;
}
JNIEXPORT jint JNICALL
Java_org_eehouse_android_xw4_jni_XwJNI_model_1getNumTilesInTray
( JNIEnv* env, jclass C, jint gamePtr, jint player )
{
jint result;
XWJNI_START();
XP_ASSERT( !!state->game.model );
result = model_getNumTilesInTray( state->game.model, player );
XWJNI_END();
return result;
}
JNIEXPORT jstring JNICALL
Java_org_eehouse_android_xw4_jni_XwJNI_model_1getPlayersLastScore
(JNIEnv* env, jclass C, jint gamePtr, jint player )

View file

@ -215,6 +215,7 @@ public class XwJNI {
public static native String model_writeGameHistory( int gamePtr,
boolean gameOver );
public static native int model_getNMoves( int gamePtr );
public static native int model_getNumTilesInTray( int gamePtr, int player );
public static native String model_getPlayersLastScore( int gamePtr,
int player );
// Server