Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
L
M
N
O
P
R
S
T
U
V
W
A
AccessTokenRetriever
- Class in
org.sidoh.wwf_api
Convenience class for logging into Facebook and retrieving the oauth token that WWF uses to authenticate with Facebook.
AccessTokenRetriever()
- Constructor for class org.sidoh.wwf_api.
AccessTokenRetriever
addLetter(String, int, int)
- Method in class org.sidoh.wwf_api.game_state.
TileBagBuilder
addToScore(long, GameState, int)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Adds the specified amount to the provided user's score.
addToScore(User, GameState, int)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Adds the specified amount to the provided user's score.
AdjacentSlots
- Class in
org.sidoh.wwf_api.game_state
Convenience class for accessing slots adjacent to a given slot.
AdjacentSlots(Slot, Slot, Slot, Slot, Slot, Slot, Slot, Slot, Slot)
- Constructor for class org.sidoh.wwf_api.game_state.
AdjacentSlots
adjacentTo(Slot)
- Static method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
ALL_TILES_BONUS
- Static variable in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
Bonus applied when all tiles are used
ApiProvider
- Class in
org.sidoh.wwf_api
Ties together Communication, RequestGenerator, and ResponseParser
ApiProvider()
- Constructor for class org.sidoh.wwf_api.
ApiProvider
ApiRequestException
- Exception in
org.sidoh.wwf_api
ApiRequestException(Throwable)
- Constructor for exception org.sidoh.wwf_api.
ApiRequestException
ApiRequestException(String, Throwable)
- Constructor for exception org.sidoh.wwf_api.
ApiRequestException
ApiRequestException(String)
- Constructor for exception org.sidoh.wwf_api.
ApiRequestException
ApiServer
- Class in
org.sidoh.wwf_api
ApiServer()
- Constructor for class org.sidoh.wwf_api.
ApiServer
applyMove(GameState, Move)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Given a move, apply it to the GameState.
atOffset(int)
- Method in class org.sidoh.wwf_api.game_state.
SlotIterator.Iterator
B
backToStart()
- Method in class org.sidoh.wwf_api.game_state.
SlotIterator.Iterator
Bag
- Class in
org.sidoh.wwf_api
Implements WWF's bag functionality.
Bag(long)
- Constructor for class org.sidoh.wwf_api.
Bag
Bag(long, List<Tile>)
- Constructor for class org.sidoh.wwf_api.
Bag
Bag(long, MersenneTwister, List<Tile>)
- Constructor for class org.sidoh.wwf_api.
Bag
BLANK_LETTER
- Static variable in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
Character used to represent a blank tile
Board
- Class in
org.sidoh.wwf_api.game_state
Board(int, Iterable<Board.SlotBuilder>)
- Constructor for class org.sidoh.wwf_api.game_state.
Board
Board(BoardStorage)
- Constructor for class org.sidoh.wwf_api.game_state.
Board
Board.Builder
- Class in
org.sidoh.wwf_api.game_state
Board.Builder()
- Constructor for class org.sidoh.wwf_api.game_state.
Board.Builder
Board.SlotBuilder
- Class in
org.sidoh.wwf_api.game_state
Board.SlotBuilder(SlotModifier)
- Constructor for class org.sidoh.wwf_api.game_state.
Board.SlotBuilder
bottomLeft()
- Method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
bottomMiddle()
- Method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
bottomRight()
- Method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
build()
- Method in class org.sidoh.wwf_api.game_state.
Board.Builder
build(BoardStorage)
- Method in class org.sidoh.wwf_api.game_state.
Board.Builder
build()
- Method in class org.sidoh.wwf_api.game_state.
Board.SlotBuilder
build()
- Method in class org.sidoh.wwf_api.game_state.
TileBuilder
build()
- Method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard.Builder
build(BoardStorage)
- Method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard.Builder
buildGameStateMove(MoveData)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
buildGameStateMove(MoveSubmission)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Build a game state move from a move submission
buildPlayParams(Move, WordsWithFriendsBoard)
- Static method in class org.sidoh.wwf_api.
RequestGenerator
A move type of PLAY has complicated parameters.
buildPostData(<any>)
- Method in class org.sidoh.wwf_api.
Communication
Builds raw POST data from request params.
buildRack(List<Tile>)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
buildRack(long, GameState)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
buildSwapText(List<Tile>)
- Static method in class org.sidoh.wwf_api.
RequestGenerator
When swapping tiles, move api expects a comma-separated list of tile IDs that were swapped
C
center()
- Method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
clone()
- Method in class org.sidoh.wwf_api.game_state.
Move
clone()
- Method in class org.sidoh.wwf_api.game_state.
SlotIterator.Iterator
clone()
- Method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
clone()
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
Communication
- Class in
org.sidoh.wwf_api
Responsible for sending pre-formatted requests to Zynga's servers and returning the raw results.
Communication()
- Constructor for class org.sidoh.wwf_api.
Communication
computeBoardChecksum(WordsWithFriendsBoard)
- Static method in class org.sidoh.wwf_api.
RequestGenerator
Compute the checksum.
computePromotedValue(GameState, Move)
- Static method in class org.sidoh.wwf_api.
RequestGenerator
It's unclear what this is for.
createBoardFromState(GameState)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Convenience method for filling a WordsWithFriendsBoard given a game state
createFacebookGame(String, long)
- Method in class org.sidoh.wwf_api.
ApiProvider
Create a game versus a person with a particular facebook Id.
createFacebookGame(String, long)
- Method in class org.sidoh.wwf_api.
Communication
Create a game versus a player having a particular Facebook ID.
createFacebookGame(long)
- Method in class org.sidoh.wwf_api.
StatefulApiProvider
Create a game versus a person with a particular facebook Id.
createMoveSubmission(MoveType)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
createMoveSubmissionFromPlay(Move)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Create a MoveSubmission (used by the WWF API) given a game state move
createRandomGame(String)
- Method in class org.sidoh.wwf_api.
ApiProvider
Request the creation of a matchmaking game.
createRandomGame(String)
- Method in class org.sidoh.wwf_api.
Communication
Creates a random (matchmaking) game.
createRandomGame()
- Method in class org.sidoh.wwf_api.
StatefulApiProvider
Request the creation of a matchmaking game.
createZyngaGame(String, long)
- Method in class org.sidoh.wwf_api.
ApiProvider
Create a game versus a person with a particular Zynga Id.
createZyngaGame(String, long)
- Method in class org.sidoh.wwf_api.
Communication
Create a game versus a player having a particular Zynga ID.
createZyngaGame(long)
- Method in class org.sidoh.wwf_api.
StatefulApiProvider
Create a game versus a person with a particular Zynga Id.
current()
- Method in class org.sidoh.wwf_api.game_state.
SlotIterator.Iterator
D
deserialize(File, T)
- Method in class org.sidoh.wwf_api.util.
ThriftSerializationHelper
Deserialize the provided file
deserialize(InputStream, T)
- Method in class org.sidoh.wwf_api.util.
ThriftSerializationHelper
Deserialize the provided type and return it
dictionaryLookup(String, List<String>)
- Method in class org.sidoh.wwf_api.
ApiProvider
Check if the provided words are in the WWF dictionary
dictionaryLookup(List<String>, String)
- Method in class org.sidoh.wwf_api.
Communication
Check which of the provided words are contained in the WWF dictionary.
dictionaryLookup(List<String>)
- Method in class org.sidoh.wwf_api.
StatefulApiProvider
Check if the provided words are in the WWF dictionary
DIMENSIONS
- Static variable in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
Size of the board
Direction
- Enum in
org.sidoh.wwf_api.game_state
E
equals(Object)
- Method in class org.sidoh.wwf_api.game_state.
Move
F
fillBoard(WordsWithFriendsBoard, GameState)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Convenience method for filling a WordsWithFriendsBoard given a game state
fillDefaultValues(<any>, Class<T>)
- Static method in class org.sidoh.wwf_api.
RequestGenerator
Fill in default values for a request
findFormById(Page, String)
- Static method in class org.sidoh.wwf_api.
AccessTokenRetriever
Find a form with a particular DOM ID.
G
gameHasPlays(GameState)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Check if a game has plays.
GameList
- Class in
org.sidoh.wwf_api.examples
GameList()
- Constructor for class org.sidoh.wwf_api.examples.
GameList
GameScoreStatus
- Enum in
org.sidoh.wwf_api.game_state
GameStateHelper
- Class in
org.sidoh.wwf_api.game_state
generateMoveParams(GameState, MoveSubmission)
- Method in class org.sidoh.wwf_api.
RequestGenerator
Generates all of the relevant POST params for a move call.
getAccessToken(String, String)
- Method in class org.sidoh.wwf_api.
AccessTokenRetriever
Retrieves the access token for a Facebook user having the provided username and password.
getAdjacentSlots(int, int)
- Method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
Get the slots adjacent to the specified slot
getAdjacentSlots(int)
- Method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
Get the slots adjacent to the specified slot.
getChatUrl()
- Static method in class org.sidoh.wwf_api.
Communication
Get the URL to be used when submitting a chat message.
getCol()
- Method in class org.sidoh.wwf_api.game_state.
Move
getColFromIndex(int)
- Static method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
getCurrentPlayerRack(GameState)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Returns the rack of the player currently allowed to move.
getDefaultValue()
- Method in enum org.sidoh.wwf_api.
RequestGenerator.MoveRequestParam
getDefaultValue()
- Method in interface org.sidoh.wwf_api.
RequestGenerator.RequestParam
getDictionaryLookupUrl(String)
- Static method in class org.sidoh.wwf_api.
Communication
Return the URL to be used for a dictionary lookup request.
getFromX()
- Method in class org.sidoh.wwf_api.
RequestGenerator.PlayParams
getFromY()
- Method in class org.sidoh.wwf_api.
RequestGenerator.PlayParams
getGameIndex(String)
- Method in class org.sidoh.wwf_api.
ApiProvider
Get a list of games.
getGameIndex(String)
- Method in class org.sidoh.wwf_api.
Communication
Get a list of all recent games, including those that have already completed.
getGameIndex()
- Method in class org.sidoh.wwf_api.
StatefulApiProvider
Get a list of games.
getGameState(String, long)
- Method in class org.sidoh.wwf_api.
ApiProvider
Get all of the data associated with a particular game.
getGameState(long, String)
- Method in class org.sidoh.wwf_api.
Communication
Fetch full data about a particular game.
getGameState(long)
- Method in class org.sidoh.wwf_api.
StatefulApiProvider
Get all of the data associated with a particular game.
getGamesWithUpdates(String, int)
- Method in class org.sidoh.wwf_api.
ApiProvider
Retrieves a partial game index, including only data about games that have had updates since the provided timestamp.
getGamesWithUpdates(String, int)
- Method in class org.sidoh.wwf_api.
Communication
getGamesWithUpdates(int)
- Method in class org.sidoh.wwf_api.
StatefulApiProvider
Retrieves a partial game index, including only data about games that have had updates since the provided timestamp.
getGameUrl(long)
- Static method in class org.sidoh.wwf_api.
Communication
Get the URL to be used when requesting all data for a game.
getIndexFromRowAndCol(int, int)
- Static method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
getIndexUrl()
- Static method in class org.sidoh.wwf_api.
Communication
Get the URL to be used when requesting the game index.
getInstance()
- Static method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Get the singleton instance of GameStateHelper
getInstance()
- Static method in class org.sidoh.wwf_api.util.
ThriftSerializationHelper
getKey()
- Method in enum org.sidoh.wwf_api.
RequestGenerator.MoveRequestParam
getKey()
- Method in interface org.sidoh.wwf_api.
RequestGenerator.RequestParam
getLetterScore(Slot, Tile)
- Static method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
Compute the score attributable to a single tile in a play, not counting word modifiers.
getLetterValue(String)
- Static method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
Returns the value of the provided tile.
getLongValue(Object)
- Static method in class org.sidoh.wwf_api.
ResponseParser
getMainWord()
- Method in class org.sidoh.wwf_api.game_state.
Move.Result
getMoveType()
- Method in class org.sidoh.wwf_api.game_state.
Move
getMoveUrl()
- Static method in class org.sidoh.wwf_api.
Communication
Get the URL used when submitting a move.
getMoveValue()
- Method in enum org.sidoh.wwf_api.game_state.
Direction
getNumSecondsEllapsedSinceTimestamp(String)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Compute the number of seconds elapsed since the specified timestamp
getNumTilesSkipped()
- Method in class org.sidoh.wwf_api.game_state.
Move.Result
getOrientation()
- Method in class org.sidoh.wwf_api.game_state.
Move
getOtherPlayerRack(GameState)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Returns the rack of the player currently awaiting their turn.
getOtherUser(User, GameState)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Given one user in the game, return the other one.
getOtherUser(long, GameState)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Given the ID of one user in the game, return the other one.
getOtherUser(User, GameMeta)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Given the ID of one user in the game, return the other one.
getOtherUser(long, GameMeta)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Given the ID of one user in the game, return the other one.
getRemainingTiles()
- Method in class org.sidoh.wwf_api.
Bag
Returns a list of the remaining tiles in no particular order.
getRemainingTilesInPullOrder()
- Method in class org.sidoh.wwf_api.
Bag
Returns list of tiles in the order they'll be pulled off of (assuming none are returned)
getResult()
- Method in class org.sidoh.wwf_api.game_state.
Move
getResultingWords()
- Method in class org.sidoh.wwf_api.game_state.
Move.Result
getRow()
- Method in class org.sidoh.wwf_api.game_state.
Move
getRowFromIndex(int)
- Static method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
getScore(User, GameState)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
getScore(long, GameState)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
getScore()
- Method in class org.sidoh.wwf_api.game_state.
Move.Result
getScoreStatus(User, GameState)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Gets the score status for a GameState.
getScoreStatus(long, GameState)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Gets the score status for a GameState.
getSlot(int)
- Method in class org.sidoh.wwf_api.game_state.
Board
getSlot(int, int)
- Method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
Return the slot located at the provided location
getSlot(int)
- Method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
Return the slot located at the provided location
getSlotBuilders(String)
- Static method in class org.sidoh.wwf_api.game_state.
Board
getSlotSafe(int)
- Method in class org.sidoh.wwf_api.game_state.
Board
getStorage()
- Method in class org.sidoh.wwf_api.game_state.
Board
getText()
- Method in class org.sidoh.wwf_api.
RequestGenerator.PlayParams
getTile(String)
- Static method in class org.sidoh.wwf_api.game_state.
TileBuilder
getTile(String, int)
- Static method in class org.sidoh.wwf_api.game_state.
TileBuilder
getTiles()
- Method in class org.sidoh.wwf_api.game_state.
Move
getTiles()
- Method in class org.sidoh.wwf_api.game_state.
TileBagBuilder
getTileWithId(int)
- Static method in class org.sidoh.wwf_api.
Bag
Fetch the Tile with the provided id.
getToX()
- Method in class org.sidoh.wwf_api.
RequestGenerator.PlayParams
getToY()
- Method in class org.sidoh.wwf_api.
RequestGenerator.PlayParams
getUnreadChats(String, long)
- Method in class org.sidoh.wwf_api.
ApiProvider
Return a list of chat messages assigned to a particular game
getUnreadChats(String, long)
- Method in class org.sidoh.wwf_api.
Communication
Fetch all unread chats for a particular game
getUnreadChats(long)
- Method in class org.sidoh.wwf_api.
StatefulApiProvider
Return a list of chat messages assigned to a particular game
getUnreadChatsUrl(long)
- Static method in class org.sidoh.wwf_api.
Communication
Get the URL to be used when requesting chats for a game.
getUrl(String)
- Static method in class org.sidoh.wwf_api.
Communication
Wrap a URI represented as a string in a URL object.
getWordScore(int, List<SlotModifier>)
- Static method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
Apply word modifiers to a base score to determine the overall score.
H
hasAdjacentTiles(Integer, WordOrientation)
- Method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
Convenience method used to determine if a provided location has tiles placed next to it in a particular orientation (either vertical or horizontal)
hasAnyTouching()
- Method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
hashCode()
- Method in class org.sidoh.wwf_api.game_state.
Move
hasNext()
- Method in class org.sidoh.wwf_api.game_state.
SlotIterator.Iterator
hasTiles()
- Method in class org.sidoh.wwf_api.game_state.
Board
lol
I
InvalidGameStateException
- Exception in
org.sidoh.wwf_api.game_state
InvalidGameStateException(String, Throwable)
- Constructor for exception org.sidoh.wwf_api.game_state.
InvalidGameStateException
InvalidGameStateException(String)
- Constructor for exception org.sidoh.wwf_api.game_state.
InvalidGameStateException
isWordModifier(SlotModifier)
- Static method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
iterator()
- Method in class org.sidoh.wwf_api.game_state.
SlotIterator
L
left()
- Method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
login(AccessTokenRetriever.Context)
- Method in class org.sidoh.wwf_api.
AccessTokenRetriever
Login to Facebook by finding the login form on the front page, filling it out, and submitting it.
M
main(String[])
- Static method in class org.sidoh.wwf_api.
ApiServer
main(String[])
- Static method in class org.sidoh.wwf_api.examples.
GameList
main(String[])
- Static method in class org.sidoh.wwf_api.util.
MersenneTwister
Tests the code.
makeMove(String, GameState, MoveSubmission)
- Method in class org.sidoh.wwf_api.
ApiProvider
Submit a move.
makeMove(String, <any>)
- Method in class org.sidoh.wwf_api.
Communication
Submit a move for a particular game.
makeMove(GameState, MoveSubmission)
- Method in class org.sidoh.wwf_api.
StatefulApiProvider
Submit a move.
makeRequest(URL, String)
- Method in class org.sidoh.wwf_api.
Communication
Send an HTTP GET request.
MersenneTwister
- Class in
org.sidoh.wwf_api.util
from sidoh (chris@sidoh.org) -- I moved this to the org.sidoh package so that everything in my maven project could live under one package.
MersenneTwister()
- Constructor for class org.sidoh.wwf_api.util.
MersenneTwister
Constructor using the default seed.
MersenneTwister(long)
- Constructor for class org.sidoh.wwf_api.util.
MersenneTwister
Constructor using a given seed.
MersenneTwister(int[])
- Constructor for class org.sidoh.wwf_api.util.
MersenneTwister
Constructor using an array of integers as seed.
Move
- Class in
org.sidoh.wwf_api.game_state
move(Move)
- Method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
Makes and scores move
Move.Result
- Class in
org.sidoh.wwf_api.game_state
Encapsulates information about a move.
Move.Result(int, int, String, List<String>)
- Constructor for class org.sidoh.wwf_api.game_state.
Move.Result
moveBack()
- Method in class org.sidoh.wwf_api.game_state.
Move
moveForward()
- Method in class org.sidoh.wwf_api.game_state.
Move
N
next()
- Method in class org.sidoh.wwf_api.game_state.
SlotIterator.Iterator
next(int)
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
Returns an integer with
bits
bits filled with a random number.
nextBoolean()
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
This method is missing from jdk 1.0.x and below.
nextBoolean(float)
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
This generates a coin flip with a probability
probability
of returning true, else returning false.
nextBoolean(double)
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
This generates a coin flip with a probability
probability
of returning true, else returning false.
nextByte()
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
For completeness' sake, though it's not in java.util.Random.
nextBytes(byte[])
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
A bug fix for all versions of the JDK.
nextChar()
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
For completeness' sake, though it's not in java.util.Random.
nextDouble()
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
A bug fix for versions of JDK 1.1 and below.
nextDouble(boolean, boolean)
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
Returns a double in the range from 0.0 to 1.0, possibly inclusive of 0.0 and 1.0 themselves.
nextFloat()
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
A bug fix for versions of JDK 1.1 and below.
nextFloat(boolean, boolean)
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
Returns a float in the range from 0.0f to 1.0f, possibly inclusive of 0.0f and 1.0f themselves.
nextGaussian()
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
A bug fix for all JDK code including 1.2.
nextInt(int)
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
This method is missing from JDK 1.1 and below.
nextLong(long)
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
This method is for completness' sake.
nextShort()
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
For completeness' sake, though it's not in java.util.Random.
nextUnsignedI32()
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
O
offset()
- Method in class org.sidoh.wwf_api.game_state.
SlotIterator.Iterator
opposite(WordOrientation)
- Static method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
Convenience method for swapping horizontal/vertical.
org.sidoh.wwf_api
- package org.sidoh.wwf_api
org.sidoh.wwf_api.examples
- package org.sidoh.wwf_api.examples
org.sidoh.wwf_api.game_state
- package org.sidoh.wwf_api.game_state
org.sidoh.wwf_api.util
- package org.sidoh.wwf_api.util
P
parseChatMessage(Reader)
- Method in class org.sidoh.wwf_api.
ResponseParser
parseDictionaryLookupResponse(Reader)
- Method in class org.sidoh.wwf_api.
ResponseParser
Parses the response to a dictionary lookup request.
parseGameIndex(Reader)
- Method in class org.sidoh.wwf_api.
ResponseParser
parseGameMeta(JSONObject)
- Method in class org.sidoh.wwf_api.
ResponseParser
Parses the game data for a particular game
parseGameState(Reader)
- Method in class org.sidoh.wwf_api.
ResponseParser
Parses game state.
parseMove(JSONObject)
- Method in class org.sidoh.wwf_api.
ResponseParser
Parse a single move
parseMoveType(String)
- Method in class org.sidoh.wwf_api.
ResponseParser
parseUnreadChats(Reader)
- Method in class org.sidoh.wwf_api.
ResponseParser
parseUser(JSONObject)
- Method in class org.sidoh.wwf_api.
ResponseParser
parseWords(JSONArray)
- Method in class org.sidoh.wwf_api.
ResponseParser
Parse an array of strings.
pass()
- Static method in class org.sidoh.wwf_api.game_state.
Move
Get a move representing a pass
play(List<Tile>, int, int, WordOrientation)
- Static method in class org.sidoh.wwf_api.game_state.
Move
Get a move representing a play
playBack(Tile)
- Method in class org.sidoh.wwf_api.game_state.
Move
playFront(Tile)
- Method in class org.sidoh.wwf_api.game_state.
Move
playWord(List<Tile>, int, int, WordOrientation, boolean)
- Method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
Play a word on the board.
postRequest(URL, String, String, Object...)
- Method in class org.sidoh.wwf_api.
Communication
Send an HTTP POST request.
postRequest(URL, String, String)
- Method in class org.sidoh.wwf_api.
Communication
Send an HTTP POST request.
promptForAccessToken()
- Method in class org.sidoh.wwf_api.
AccessTokenRetriever
Retrieves access token by prompting user for facebook login credentials and calling getAccessToken(String, String).
pullTile()
- Method in class org.sidoh.wwf_api.
Bag
Remove and return a single tile from the bag
pullTiles(int)
- Method in class org.sidoh.wwf_api.
Bag
Remove and return a provided number of tiles
R
readState(DataInputStream)
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
Reads the entire state of the MersenneTwister RNG from the stream
reconstructBag(GameState)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Reconstruct the tile bag from the state.
reconstructState(GameState)
- Method in class org.sidoh.wwf_api.
StateReconstructor
Reconstructs the game state from a list of rules.
remove()
- Method in class org.sidoh.wwf_api.game_state.
SlotIterator.Iterator
RequestGenerator
- Class in
org.sidoh.wwf_api
Responsible for generating request data for things that require complicated generation, like moves.
RequestGenerator()
- Constructor for class org.sidoh.wwf_api.
RequestGenerator
RequestGenerator.MoveRequestParam
- Enum in
org.sidoh.wwf_api
RequestGenerator.PlayParams
- Class in
org.sidoh.wwf_api
RequestGenerator.PlayParams(int, int, int, int, String)
- Constructor for class org.sidoh.wwf_api.
RequestGenerator.PlayParams
RequestGenerator.RequestParam
- Interface in
org.sidoh.wwf_api
ResponseParser
- Class in
org.sidoh.wwf_api
Responsible for parsing raw JSON returned by the Communication class and constructing thrift types that represent that data.
ResponseParser()
- Constructor for class org.sidoh.wwf_api.
ResponseParser
returnTile(Tile)
- Method in class org.sidoh.wwf_api.
Bag
Return a single tile to the bag
returnTiles(Iterable<Tile>)
- Method in class org.sidoh.wwf_api.
Bag
Return the provided tiles to the bag
reverse()
- Method in class org.sidoh.wwf_api.game_state.
SlotIterator
right()
- Method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
S
scoreMove(Move)
- Method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
Scores a move without actually making it
serialize(<any>, File)
- Method in class org.sidoh.wwf_api.util.
ThriftSerializationHelper
Write the provided object to the provided file
serialize(<any>, OutputStream)
- Method in class org.sidoh.wwf_api.util.
ThriftSerializationHelper
Serialize the provided byte array and write it the specified output stream
serialize(<any>)
- Method in class org.sidoh.wwf_api.util.
ThriftSerializationHelper
Serialize the provided object and return it as a byte array
setBottomLeft(Slot)
- Method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
setBottomMiddle(Slot)
- Method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
setBottomRight(Slot)
- Method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
setCenter(Slot)
- Method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
setHeaders(URLConnection, String)
- Method in class org.sidoh.wwf_api.
Communication
Sets headers for a given HTTP request.
setLeft(Slot)
- Method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
setResult(Move.Result)
- Method in class org.sidoh.wwf_api.game_state.
Move
setRight(Slot)
- Method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
setSeed(long)
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
Initalize the pseudo random number generator.
setSeed(int[])
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
Sets the seed of the MersenneTwister using an array of integers.
setStartPosition(int, int)
- Method in class org.sidoh.wwf_api.game_state.
SlotIterator
setTopLeft(Slot)
- Method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
setTopMiddle(Slot)
- Method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
setTopRight(Slot)
- Method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
size
- Variable in class org.sidoh.wwf_api.game_state.
Board
SlotIterator
- Class in
org.sidoh.wwf_api.game_state
A convenient way to iterate over slots in play order.
SlotIterator(int, int, int, WordOrientation, Direction)
- Constructor for class org.sidoh.wwf_api.game_state.
SlotIterator
SlotIterator(int, int, int, int, WordOrientation, Direction)
- Constructor for class org.sidoh.wwf_api.game_state.
SlotIterator
SlotIterator.Iterator
- Class in
org.sidoh.wwf_api.game_state
SlotIterator.Iterator(int, int, int, int, WordOrientation, Direction)
- Constructor for class org.sidoh.wwf_api.game_state.
SlotIterator.Iterator
stateEquals(Object)
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
StatefulApiProvider
- Class in
org.sidoh.wwf_api
Ties together Communication, RequestGenerator, and ResponseParser.
StatefulApiProvider(String)
- Constructor for class org.sidoh.wwf_api.
StatefulApiProvider
StateReconstructor
- Class in
org.sidoh.wwf_api
StateReconstructor()
- Constructor for class org.sidoh.wwf_api.
StateReconstructor
stepBackwards()
- Method in class org.sidoh.wwf_api.game_state.
SlotIterator.Iterator
stepForwards()
- Method in class org.sidoh.wwf_api.game_state.
SlotIterator.Iterator
storage
- Variable in class org.sidoh.wwf_api.game_state.
Board
submitChatMessage(String, long, String)
- Method in class org.sidoh.wwf_api.
ApiProvider
Submit a chat message
submitChatMessage(String, long, String)
- Method in class org.sidoh.wwf_api.
Communication
Send a chat message to your opponent from a particular game.
submitChatMessage(long, String)
- Method in class org.sidoh.wwf_api.
StatefulApiProvider
Submit a chat message
submitLoginForm(AccessTokenRetriever.Context, HtmlForm)
- Method in class org.sidoh.wwf_api.
AccessTokenRetriever
Fill out and submit a login form
swap(List<Tile>)
- Static method in class org.sidoh.wwf_api.game_state.
Move
Get a move representing a swap
T
ThriftSerializationHelper
- Class in
org.sidoh.wwf_api.util
TILE_VALUES
- Static variable in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
A map going from tile character -> # of points that tile is worth
TileBagBuilder
- Class in
org.sidoh.wwf_api.game_state
TileBagBuilder()
- Constructor for class org.sidoh.wwf_api.game_state.
TileBagBuilder
TileBuilder
- Class in
org.sidoh.wwf_api.game_state
TileBuilder(int, String, int)
- Constructor for class org.sidoh.wwf_api.game_state.
TileBuilder
tileIsBlank(Tile)
- Method in class org.sidoh.wwf_api.game_state.
GameStateHelper
Check if the provided tile represents a BLANK.
TILES
- Static variable in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
The tiles in the bag at the start of a game.
TILES_PER_PLAYER
- Static variable in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
Number of tiles each player has
tilesAreSame(List<Tile>, List<Tile>)
- Static method in class org.sidoh.wwf_api.game_state.
Move
When checking move equality, tile IDs don't matter.
tilesHashCode(List<Tile>)
- Static method in class org.sidoh.wwf_api.game_state.
Move
tilesLeft()
- Method in class org.sidoh.wwf_api.
Bag
TIMESTAMP_DATE_FORMAT
- Static variable in class org.sidoh.wwf_api.game_state.
GameStateHelper
topLeft()
- Method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
topMiddle()
- Method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
topRight()
- Method in class org.sidoh.wwf_api.game_state.
AdjacentSlots
toString()
- Method in class org.sidoh.wwf_api.game_state.
Move.Result
toString()
- Method in class org.sidoh.wwf_api.game_state.
Move
toString()
- Method in class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
U
urlEncodeSafe(String)
- Static method in class org.sidoh.wwf_api.
Communication
urlencode data
V
validateMove(GameState, MoveSubmission)
- Method in class org.sidoh.wwf_api.
ApiProvider
Validates the provided move, ensuring that it's legal.
valueOf(String)
- Static method in enum org.sidoh.wwf_api.game_state.
Direction
Returns the enum constant of this type with the specified name.
valueOf(String)
- Static method in enum org.sidoh.wwf_api.game_state.
GameScoreStatus
Returns the enum constant of this type with the specified name.
valueOf(String)
- Static method in enum org.sidoh.wwf_api.
RequestGenerator.MoveRequestParam
Returns the enum constant of this type with the specified name.
values()
- Static method in enum org.sidoh.wwf_api.game_state.
Direction
Returns an array containing the constants of this enum type, in the order they are declared.
values()
- Static method in enum org.sidoh.wwf_api.game_state.
GameScoreStatus
Returns an array containing the constants of this enum type, in the order they are declared.
values()
- Static method in enum org.sidoh.wwf_api.
RequestGenerator.MoveRequestParam
Returns an array containing the constants of this enum type, in the order they are declared.
W
withDirection(Direction)
- Method in class org.sidoh.wwf_api.game_state.
SlotIterator.Iterator
wordsWithFriendsBoard()
- Static method in class org.sidoh.wwf_api.game_state.
Board
WordsWithFriendsBoard
- Class in
org.sidoh.wwf_api.game_state
Implements the logic and layout of the WWF play board.
WordsWithFriendsBoard()
- Constructor for class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
Use default values.
WordsWithFriendsBoard(BoardStorage)
- Constructor for class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard
WordsWithFriendsBoard.Builder
- Class in
org.sidoh.wwf_api.game_state
WordsWithFriendsBoard.Builder()
- Constructor for class org.sidoh.wwf_api.game_state.
WordsWithFriendsBoard.Builder
writeState(DataOutputStream)
- Method in class org.sidoh.wwf_api.util.
MersenneTwister
Writes the entire state of the MersenneTwister RNG to the stream
A
B
C
D
E
F
G
H
I
L
M
N
O
P
R
S
T
U
V
W
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes