mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
add board_canHint to jni
This commit is contained in:
parent
ac6dc400ce
commit
af2d2c71b5
2 changed files with 12 additions and 0 deletions
|
@ -1044,6 +1044,17 @@ Java_org_eehouse_android_xw4_jni_XwJNI_board_1canFlip
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JNIEXPORT jboolean JNICALL
|
||||||
|
Java_org_eehouse_android_xw4_jni_XwJNI_board_1canHint
|
||||||
|
( JNIEnv* env, jclass C, jint gamePtr )
|
||||||
|
{
|
||||||
|
jboolean result;
|
||||||
|
XWJNI_START();
|
||||||
|
result = board_canHint( state->game.board );
|
||||||
|
XWJNI_END();
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
JNIEXPORT jboolean JNICALL
|
JNIEXPORT jboolean JNICALL
|
||||||
Java_org_eehouse_android_xw4_jni_XwJNI_board_1canShuffle
|
Java_org_eehouse_android_xw4_jni_XwJNI_board_1canShuffle
|
||||||
( JNIEnv* env, jclass C, jint gamePtr )
|
( JNIEnv* env, jclass C, jint gamePtr )
|
||||||
|
|
|
@ -149,6 +149,7 @@ public class XwJNI {
|
||||||
public static native int board_getFocusOwner( int gamePtr );
|
public static native int board_getFocusOwner( int gamePtr );
|
||||||
public static native boolean board_focusChanged( int gamePtr, int typ );
|
public static native boolean board_focusChanged( int gamePtr, int typ );
|
||||||
public static native boolean board_canFlip( int gamePtr );
|
public static native boolean board_canFlip( int gamePtr );
|
||||||
|
public static native boolean board_canHint( int gamePtr );
|
||||||
public static native boolean board_canShuffle( int gamePtr );
|
public static native boolean board_canShuffle( int gamePtr );
|
||||||
public static native boolean board_canTogglePending( int gamePtr );
|
public static native boolean board_canTogglePending( int gamePtr );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue