mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
export model_getNumTilesInTray() via jni
This commit is contained in:
parent
fddd159e57
commit
552fa28b39
2 changed files with 14 additions and 0 deletions
|
@ -935,6 +935,19 @@ Java_org_eehouse_android_xw4_jni_XwJNI_model_1getNMoves
|
||||||
return result;
|
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
|
JNIEXPORT jstring JNICALL
|
||||||
Java_org_eehouse_android_xw4_jni_XwJNI_model_1getPlayersLastScore
|
Java_org_eehouse_android_xw4_jni_XwJNI_model_1getPlayersLastScore
|
||||||
(JNIEnv* env, jclass C, jint gamePtr, jint player )
|
(JNIEnv* env, jclass C, jint gamePtr, jint player )
|
||||||
|
|
|
@ -215,6 +215,7 @@ public class XwJNI {
|
||||||
public static native String model_writeGameHistory( int gamePtr,
|
public static native String model_writeGameHistory( int gamePtr,
|
||||||
boolean gameOver );
|
boolean gameOver );
|
||||||
public static native int model_getNMoves( int gamePtr );
|
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,
|
public static native String model_getPlayersLastScore( int gamePtr,
|
||||||
int player );
|
int player );
|
||||||
// Server
|
// Server
|
||||||
|
|
Loading…
Reference in a new issue