mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
add dict_getTileValue
This commit is contained in:
parent
40dcda2262
commit
5afb7aadff
2 changed files with 8 additions and 0 deletions
|
@ -302,6 +302,13 @@ Java_org_eehouse_android_xw4_jni_XwJNI_dict_1getChars
|
|||
return result;
|
||||
}
|
||||
|
||||
JNIEXPORT jint JNICALL
|
||||
Java_org_eehouse_android_xw4_jni_XwJNI_dict_1getTileValue
|
||||
( JNIEnv* env, jclass C, jint dictPtr, jint tile )
|
||||
{
|
||||
return dict_getTileValue( (DictionaryCtxt*)dictPtr, tile );
|
||||
}
|
||||
|
||||
typedef struct _JNIState {
|
||||
XWGame game;
|
||||
JNIEnv* env;
|
||||
|
|
|
@ -223,4 +223,5 @@ public class XwJNI {
|
|||
public static native String[] dict_getChars( int dictPtr );
|
||||
public static native void dict_getInfo( byte[] dict, JNIUtils jniu,
|
||||
DictInfo info );
|
||||
public static native int dict_getTileValue( int dictPtr, int tile );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue