From af2d2c71b54ac0ed0b17941ada4f4b665d9f7b67 Mon Sep 17 00:00:00 2001 From: Andy2 Date: Wed, 7 Jul 2010 18:47:22 -0700 Subject: [PATCH] add board_canHint to jni --- xwords4/android/XWords4/jni/xwjni.c | 11 +++++++++++ .../src/org/eehouse/android/xw4/jni/XwJNI.java | 1 + 2 files changed, 12 insertions(+) diff --git a/xwords4/android/XWords4/jni/xwjni.c b/xwords4/android/XWords4/jni/xwjni.c index e23f625b1..d9acd3001 100644 --- a/xwords4/android/XWords4/jni/xwjni.c +++ b/xwords4/android/XWords4/jni/xwjni.c @@ -1044,6 +1044,17 @@ Java_org_eehouse_android_xw4_jni_XwJNI_board_1canFlip 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 Java_org_eehouse_android_xw4_jni_XwJNI_board_1canShuffle ( JNIEnv* env, jclass C, jint gamePtr ) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/XwJNI.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/XwJNI.java index 2a579c77a..e9a1867f7 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/XwJNI.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/XwJNI.java @@ -149,6 +149,7 @@ public class XwJNI { public static native int board_getFocusOwner( int gamePtr ); public static native boolean board_focusChanged( int gamePtr, int typ ); 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_canTogglePending( int gamePtr );