mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
export board_canShuffle via jni
This commit is contained in:
parent
491cfe7616
commit
6946cbc499
2 changed files with 12 additions and 0 deletions
|
@ -1033,6 +1033,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_1canShuffle
|
||||||
|
( JNIEnv* env, jclass C, jint gamePtr )
|
||||||
|
{
|
||||||
|
jboolean result;
|
||||||
|
XWJNI_START();
|
||||||
|
result = board_canShuffle( state->game.board );
|
||||||
|
XWJNI_END();
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
JNIEXPORT jboolean JNICALL
|
JNIEXPORT jboolean JNICALL
|
||||||
Java_org_eehouse_android_xw4_jni_XwJNI_board_1handleKey
|
Java_org_eehouse_android_xw4_jni_XwJNI_board_1handleKey
|
||||||
( JNIEnv* env, jclass C, jint gamePtr, jobject jkey, jboolean jup,
|
( JNIEnv* env, jclass C, jint gamePtr, jobject jkey, jboolean jup,
|
||||||
|
|
|
@ -147,6 +147,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_canShuffle( int gamePtr );
|
||||||
|
|
||||||
public enum XP_Key {
|
public enum XP_Key {
|
||||||
XP_KEY_NONE,
|
XP_KEY_NONE,
|
||||||
|
|
Loading…
Reference in a new issue