Adding two dictionary-related functions: checking a word against a dictionary,
and retrieving a set of language-specific letters. This is just a transient checkin, since
it only pushes data both ways through the ActionScript/Java interface ("small step for
mankind, huge step for me" kind of a thing ;). Word lookup logic will be coming next.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@181 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -123,6 +123,27 @@ public class EZGameManager extends GameManager
|
||||
setProperty(propName, data, index);
|
||||
}
|
||||
|
||||
// from EZGameProvider
|
||||
public void getDictionaryLetterSet (
|
||||
ClientObject caller, String locale, int count,
|
||||
InvocationService.ResultListener listener)
|
||||
throws InvocationException
|
||||
{
|
||||
// TODO: real logic here :)
|
||||
String letters = "A,B,C";
|
||||
listener.requestProcessed(letters);
|
||||
}
|
||||
|
||||
// from EZGameProvider
|
||||
public void checkDictionaryWord (
|
||||
ClientObject caller, String locale, String word,
|
||||
InvocationService.ResultListener listener)
|
||||
throws InvocationException
|
||||
{
|
||||
// TODO: real logic here :)
|
||||
listener.requestProcessed (true);
|
||||
}
|
||||
|
||||
// from EZGameProvider
|
||||
public void addToCollection (
|
||||
ClientObject caller, String collName, byte[][] data,
|
||||
@@ -176,7 +197,7 @@ public class EZGameManager extends GameManager
|
||||
|
||||
if (playerIndex >= 0 && playerIndex < _gameObj.players.length) {
|
||||
sendPrivateMessage(playerIndex, msgOrPropName, result);
|
||||
|
||||
|
||||
} else {
|
||||
setProperty(msgOrPropName, result, -1);
|
||||
}
|
||||
@@ -185,11 +206,11 @@ public class EZGameManager extends GameManager
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// TODO: decide what we want to return here
|
||||
throw new InvocationException(String.valueOf(srcSize));
|
||||
}
|
||||
|
||||
|
||||
// from EZGameProvider
|
||||
public void mergeCollection (
|
||||
ClientObject caller, String srcColl, String intoColl,
|
||||
|
||||
Reference in New Issue
Block a user