mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +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;
|
||||
}
|
||||
|
||||
|
||||
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 )
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue