add board_canHint to jni

This commit is contained in:
Andy2 2010-07-07 18:47:22 -07:00
parent ac6dc400ce
commit af2d2c71b5
2 changed files with 12 additions and 0 deletions

View file

@ -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 )

View file

@ -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 );