Skip navigation links
A B C D E F G H I J L M N O P Q R S T U V W 

A

Actions - Interface in pl.joegreen.sergeants.framework
 
asVisibleField() - Method in class pl.joegreen.sergeants.framework.model.Field
Converts to a VisibleField instance that exposes more details about the field.
asVisibleField() - Method in class pl.joegreen.sergeants.framework.model.VisibleField
 
attack(int, int, boolean) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 

B

Bot - Interface in pl.joegreen.sergeants.framework
 

C

canEqual(Object) - Method in class pl.joegreen.sergeants.framework.model.api.GameStartedApiResponseImpl
 
canEqual(Object) - Method in class pl.joegreen.sergeants.framework.model.api.UpdatableGameState
 
ChatMessage - Class in pl.joegreen.sergeants.framework.model
 
ChatMessage(ChatMessage.ChatType, String, String) - Constructor for class pl.joegreen.sergeants.framework.model.ChatMessage
 
ChatMessage.ChatType - Enum in pl.joegreen.sergeants.framework.model
 
ChatMessageApiResponse - Class in pl.joegreen.sergeants.api.response
 
ChatMessageApiResponse(String, int, String) - Constructor for class pl.joegreen.sergeants.api.response.ChatMessageApiResponse
 
ChatMessageListener - Interface in pl.joegreen.sergeants.api.listener
 
clearMoves() - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
clearMoves() - Method in interface pl.joegreen.sergeants.framework.Actions
Remove all moves from the move queue.
close() - Method in class pl.joegreen.sergeants.simulator.viewer.FileViewerWriter
 
close() - Method in class pl.joegreen.sergeants.simulator.viewer.NopViewerWriter
 
close() - Method in interface pl.joegreen.sergeants.simulator.viewer.ViewerWriter
 
configuration() - Static method in class pl.joegreen.sergeants.simulator.SimulatorConfiguration
 
configureUsername(GeneralsApi) - Method in class pl.joegreen.sergeants.framework.user.UserConfiguration
 
connect() - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
connect() - Method in class pl.joegreen.sergeants.api.RealSocket
 
connect() - Method in interface pl.joegreen.sergeants.api.Socket
 
connect() - Method in class pl.joegreen.sergeants.api.test.FakeSocket
 
connected() - Method in class pl.joegreen.sergeants.api.RealSocket
 
connected() - Method in interface pl.joegreen.sergeants.api.Socket
 
connected() - Method in class pl.joegreen.sergeants.api.test.FakeSocket
 
create() - Static method in class pl.joegreen.sergeants.api.GeneralsApi
 
create2PlayerMap() - Static method in class pl.joegreen.sergeants.simulator.SimulatorFactory
 
create8PlayerMap() - Static method in class pl.joegreen.sergeants.simulator.SimulatorFactory
 
createInitialGameState(GameStartApiResponse, GameUpdateApiResponse) - Static method in class pl.joegreen.sergeants.framework.model.api.UpdatableGameState
Creates the first game state just after the game is started.
createMapFromReplayFile(String) - Static method in class pl.joegreen.sergeants.simulator.SimulatorFactory
GIOReplay files can be downloaded from http://dev.generals.io/replays
createWithCustomSocket(Socket) - Static method in class pl.joegreen.sergeants.api.GeneralsApi
For testing purposes.
customGame(boolean, String) - Static method in class pl.joegreen.sergeants.framework.queue.QueueConfiguration
Joins custom game.
customGame(boolean, String, int) - Static method in class pl.joegreen.sergeants.framework.queue.QueueConfiguration
Joins custom game.

D

disconnect() - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
disconnect() - Method in class pl.joegreen.sergeants.api.RealSocket
 
disconnect() - Method in interface pl.joegreen.sergeants.api.Socket
 
disconnect() - Method in class pl.joegreen.sergeants.api.test.FakeSocket
 

E

emit(String, Object[]) - Method in class pl.joegreen.sergeants.api.RealSocket
 
emit(String, Object[]) - Method in interface pl.joegreen.sergeants.api.Socket
 
emit(String, Object[]) - Method in class pl.joegreen.sergeants.api.test.FakeSocket
 
equals(Object) - Method in class pl.joegreen.sergeants.api.response.ChatMessageApiResponse
 
equals(Object) - Method in class pl.joegreen.sergeants.api.response.GameLostApiResponse
 
equals(Object) - Method in class pl.joegreen.sergeants.api.response.GameStartApiResponse
 
equals(Object) - Method in class pl.joegreen.sergeants.api.response.GameUpdateApiResponse
 
equals(Object) - Method in class pl.joegreen.sergeants.api.response.RanksApiResponse
 
equals(Object) - Method in class pl.joegreen.sergeants.api.response.ScoreApiResponse
 
equals(Object) - Method in class pl.joegreen.sergeants.api.response.StarsApiResponse
 
equals(Object) - Method in class pl.joegreen.sergeants.api.test.FakeSocket.Event
 
equals(Object) - Method in class pl.joegreen.sergeants.framework.model.api.GameStartedApiResponseImpl
 
equals(Object) - Method in class pl.joegreen.sergeants.framework.model.api.UpdatableGameState
 
equals(Object) - Method in class pl.joegreen.sergeants.framework.model.ChatMessage
 
equals(Object) - Method in class pl.joegreen.sergeants.framework.model.GameResult
 
equals(Object) - Method in class pl.joegreen.sergeants.framework.model.Player
 
equals(Object) - Method in class pl.joegreen.sergeants.framework.model.Position
 
equals(Object) - Method in class pl.joegreen.sergeants.simulator.viewer.ViewerField
 
equals(Object) - Method in class pl.joegreen.sergeants.simulator.viewer.ViewerMapState
 
Event(String, Object...) - Constructor for class pl.joegreen.sergeants.api.test.FakeSocket.Event
 

F

FakeSocket - Class in pl.joegreen.sergeants.api.test
Class that can simulate the a for testing purposes.
FakeSocket() - Constructor for class pl.joegreen.sergeants.api.test.FakeSocket
 
FakeSocket.Event - Class in pl.joegreen.sergeants.api.test
 
Field - Class in pl.joegreen.sergeants.framework.model
 
Field(GameStateFieldContext, Position, FieldTerrainType) - Constructor for class pl.joegreen.sergeants.framework.model.Field
 
FieldTerrainType - Enum in pl.joegreen.sergeants.framework.model
 
FileViewerWriter - Class in pl.joegreen.sergeants.simulator.viewer
 
FileViewerWriter(File) - Constructor for class pl.joegreen.sergeants.simulator.viewer.FileViewerWriter
 
force - Variable in class pl.joegreen.sergeants.framework.queue.QueueConfiguration
 
forceStartCustomGameQueue(boolean, String) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
forceStartFreeForAllQueue(boolean) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
forceStartOneVsOneQueue(boolean) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
forceStartTwoVsTwoQueue(boolean) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
freeForAll(boolean) - Static method in class pl.joegreen.sergeants.framework.queue.QueueConfiguration
Joins Free For All game queue.
fromIndex(int, int) - Static method in class pl.joegreen.sergeants.framework.model.Position
 

G

GameLostApiResponse - Class in pl.joegreen.sergeants.api.response
 
GameLostApiResponse(int) - Constructor for class pl.joegreen.sergeants.api.response.GameLostApiResponse
 
GameMap - Class in pl.joegreen.sergeants.simulator
 
GameResult - Class in pl.joegreen.sergeants.framework.model
 
GameResult(GameResult.Result, GameState, Optional<String>) - Constructor for class pl.joegreen.sergeants.framework.model.GameResult
 
GameResult.Result - Enum in pl.joegreen.sergeants.framework.model
 
Games - Class in pl.joegreen.sergeants.framework
 
GameStartApiResponse - Class in pl.joegreen.sergeants.api.response
 
GameStartApiResponse(int, String, String, String, String[], Integer[]) - Constructor for class pl.joegreen.sergeants.api.response.GameStartApiResponse
 
GameStarted - Interface in pl.joegreen.sergeants.framework.model
 
GameStartedApiResponseImpl - Class in pl.joegreen.sergeants.framework.model.api
 
GameStartedApiResponseImpl(GameStartApiResponse) - Constructor for class pl.joegreen.sergeants.framework.model.api.GameStartedApiResponseImpl
 
GameState - Interface in pl.joegreen.sergeants.framework.model
 
gameStateContext - Variable in class pl.joegreen.sergeants.framework.model.Field
 
GameStateFieldContext - Interface in pl.joegreen.sergeants.framework.model
 
GameUpdateApiResponse - Class in pl.joegreen.sergeants.api.response
 
GameUpdateApiResponse(int, int[], int[], int[], int, ScoreApiResponse[], double[]) - Constructor for class pl.joegreen.sergeants.api.response.GameUpdateApiResponse
 
GeneralsApi - Class in pl.joegreen.sergeants.api
 
getArguments() - Method in class pl.joegreen.sergeants.api.test.FakeSocket.Event
 
getArmy() - Method in class pl.joegreen.sergeants.framework.model.Player
Total army owned by player.
getArmy() - Method in class pl.joegreen.sergeants.framework.model.VisibleField
 
getArmy() - Method in class pl.joegreen.sergeants.simulator.viewer.ViewerField
 
getAttackIndex() - Method in class pl.joegreen.sergeants.api.response.GameUpdateApiResponse
Officially "the attackIndex field is unnecessary for bots -- it's used by our client to show/hide attack arrows when appropriate."
getAttackIndex() - Method in class pl.joegreen.sergeants.framework.model.api.UpdatableGameState
 
getAttackIndex() - Method in interface pl.joegreen.sergeants.framework.model.GameState
Officially "the attackIndex field is unnecessary for bots -- it's used by our client to show/hide attack arrows when appropriate."
getBareApi() - Method in interface pl.joegreen.sergeants.framework.Actions
Get lower level API that potentially can make it possible to do something that is not possible by this interface.
getChatRoom() - Method in class pl.joegreen.sergeants.api.response.GameStartApiResponse
Identifier of the main chat room, useful when sending a chat message (GeneralsApi.sendChatMessage(String, String)).
getChatRoom() - Method in class pl.joegreen.sergeants.framework.model.api.GameStartedApiResponseImpl
 
getChatRoom() - Method in interface pl.joegreen.sergeants.framework.model.GameStarted
 
getChatRoom() - Method in interface pl.joegreen.sergeants.framework.model.GameState
Identifier of the main game chat room.
getCitiesDiff() - Method in class pl.joegreen.sergeants.api.response.GameUpdateApiResponse
Diff to update the array with cities representation.
getCol() - Method in class pl.joegreen.sergeants.framework.model.Position
 
getColumns() - Method in class pl.joegreen.sergeants.framework.model.api.UpdatableGameState
 
getColumns() - Method in interface pl.joegreen.sergeants.framework.model.GameState
Horizontal size of the map.
getDuel() - Method in class pl.joegreen.sergeants.api.response.RanksApiResponse
Ranking in 1v1 games.
getDuel() - Method in class pl.joegreen.sergeants.api.response.StarsApiResponse
Stars in 1v1 games.
getFfa() - Method in class pl.joegreen.sergeants.api.response.RanksApiResponse
Ranking in FFA games.
getFfa() - Method in class pl.joegreen.sergeants.api.response.StarsApiResponse
Stars in FFA games.
getFields() - Method in interface pl.joegreen.sergeants.framework.model.GameState
 
getFields() - Method in class pl.joegreen.sergeants.framework.model.Player
Number of fields owned by player.
getFields() - Method in class pl.joegreen.sergeants.simulator.viewer.ViewerMapState
 
getFieldsMap() - Method in class pl.joegreen.sergeants.framework.model.api.UpdatableGameState
 
getFieldsMap() - Method in interface pl.joegreen.sergeants.framework.model.GameState
 
getGameStartedData() - Method in class pl.joegreen.sergeants.framework.model.api.UpdatableGameState
 
getGameStartedData() - Method in interface pl.joegreen.sergeants.framework.model.GameState
 
getGenerals() - Method in class pl.joegreen.sergeants.api.response.GameUpdateApiResponse
Array of indexes of generals, indexed with player index.
getHeight() - Method in class pl.joegreen.sergeants.simulator.viewer.ViewerMapState
 
getIndex() - Method in class pl.joegreen.sergeants.api.response.ScoreApiResponse
Player index.
getIndex() - Method in class pl.joegreen.sergeants.framework.model.Field
 
getIndex() - Method in class pl.joegreen.sergeants.framework.model.Player
 
getKiller() - Method in class pl.joegreen.sergeants.api.response.GameLostApiResponse
Index of the player that killed the bot.
getKiller() - Method in class pl.joegreen.sergeants.framework.model.GameResult
Name of the player that killed the bot.
getLastGameState() - Method in class pl.joegreen.sergeants.framework.model.GameResult
Last game state received before game was finished.
getListeners() - Method in class pl.joegreen.sergeants.simulator.Simulator
 
getMapDiff() - Method in class pl.joegreen.sergeants.api.response.GameUpdateApiResponse
Diff to update the array with map (tiles/armies) representation.
getMaxTurns() - Method in class pl.joegreen.sergeants.simulator.SimulatorConfiguration
 
getMessage() - Method in class pl.joegreen.sergeants.framework.model.ChatMessage
 
getMyPlayer() - Method in interface pl.joegreen.sergeants.framework.model.GameState
 
getMyPlayerIndex() - Method in interface pl.joegreen.sergeants.framework.model.GameState
Index of bot's player.
getMyPlayerIndex() - Method in interface pl.joegreen.sergeants.framework.model.GameStateFieldContext
 
getMyTeamIndexes() - Method in interface pl.joegreen.sergeants.framework.model.GameState
 
getMyTeamIndexes() - Method in interface pl.joegreen.sergeants.framework.model.GameStateFieldContext
 
getName() - Method in class pl.joegreen.sergeants.api.test.FakeSocket.Event
 
getNeighbourPositions(Position) - Method in interface pl.joegreen.sergeants.framework.model.GameState
 
getNeighbours() - Method in class pl.joegreen.sergeants.framework.model.Field
Returns fields that can be reached from this field in one move.
getNeighbours(Field) - Method in interface pl.joegreen.sergeants.framework.model.GameState
 
getNeighbours(Field) - Method in interface pl.joegreen.sergeants.framework.model.GameStateFieldContext
 
getOwner() - Method in class pl.joegreen.sergeants.simulator.viewer.ViewerField
 
getOwnerIndex() - Method in class pl.joegreen.sergeants.framework.model.VisibleField
Index of player that owns the field.
getPlayerIndex() - Method in class pl.joegreen.sergeants.api.response.ChatMessageApiResponse
Player index of the author of the message.
getPlayerIndex() - Method in class pl.joegreen.sergeants.api.response.GameStartApiResponse
Index of bot's player.
getPlayerIndex() - Method in class pl.joegreen.sergeants.framework.model.api.GameStartedApiResponseImpl
 
getPlayerIndex() - Method in interface pl.joegreen.sergeants.framework.model.GameStarted
 
getPlayerNames() - Method in class pl.joegreen.sergeants.framework.model.GameResult
Names of all players that played in the game.
getPlayers() - Method in class pl.joegreen.sergeants.framework.model.api.UpdatableGameState
 
getPlayers() - Method in interface pl.joegreen.sergeants.framework.model.GameState
Players currently playing and those already dead.
getPosition() - Method in class pl.joegreen.sergeants.framework.model.Field
 
getPosition() - Method in class pl.joegreen.sergeants.simulator.viewer.ViewerField
 
getReceivedEventsByName(String) - Method in class pl.joegreen.sergeants.api.test.FakeSocket
 
getReplayFile() - Method in class pl.joegreen.sergeants.simulator.SimulatorConfiguration
 
getReplayId() - Method in class pl.joegreen.sergeants.api.response.GameStartApiResponse
Replay identifier.
getReplayId() - Method in class pl.joegreen.sergeants.framework.model.api.GameStartedApiResponseImpl
 
getReplayId() - Method in class pl.joegreen.sergeants.framework.model.GameResult
getReplayId() - Method in interface pl.joegreen.sergeants.framework.model.GameStarted
getReplayId() - Method in interface pl.joegreen.sergeants.framework.model.GameState
Replay identifier.
getResult() - Method in class pl.joegreen.sergeants.framework.model.GameResult
 
getRoomType() - Method in class pl.joegreen.sergeants.framework.model.ChatMessage
 
getRow() - Method in class pl.joegreen.sergeants.framework.model.Position
 
getRows() - Method in class pl.joegreen.sergeants.framework.model.api.UpdatableGameState
 
getRows() - Method in interface pl.joegreen.sergeants.framework.model.GameState
Vertical size of the map.
getScores() - Method in class pl.joegreen.sergeants.api.response.GameUpdateApiResponse
Array indexed by player index, includes things shown in the score table (titles, army, is dead).
getStars() - Method in class pl.joegreen.sergeants.api.response.GameUpdateApiResponse
 
getTeam() - Method in class pl.joegreen.sergeants.framework.model.Player
Identifier of a team that player belongs to.
getTeamChatRoom() - Method in class pl.joegreen.sergeants.api.response.GameStartApiResponse
Identifier of the team chat room, useful when sending a chat message (GeneralsApi.sendChatMessage(String, String)).
getTeamChatRoom() - Method in class pl.joegreen.sergeants.framework.model.api.GameStartedApiResponseImpl
 
getTeamChatRoom() - Method in interface pl.joegreen.sergeants.framework.model.GameStarted
 
getTeamChatRoom() - Method in interface pl.joegreen.sergeants.framework.model.GameState
Identifier of the private team chat room.
getTeams() - Method in class pl.joegreen.sergeants.api.response.GameStartApiResponse
Array if team identifiers of each player, indexed by player index.
getTerrainType() - Method in class pl.joegreen.sergeants.framework.model.Field
 
getText() - Method in class pl.joegreen.sergeants.api.response.ChatMessageApiResponse
Actual content of the message
getTick() - Method in class pl.joegreen.sergeants.simulator.viewer.ViewerMapState
 
getTiles() - Method in class pl.joegreen.sergeants.api.response.ScoreApiResponse
Number of map tiles owned.
getTotal() - Method in class pl.joegreen.sergeants.api.response.ScoreApiResponse
Total army size.
getTurn() - Method in class pl.joegreen.sergeants.api.response.GameUpdateApiResponse
 
getTurn() - Method in class pl.joegreen.sergeants.framework.model.api.UpdatableGameState
 
getTurn() - Method in interface pl.joegreen.sergeants.framework.model.GameState
"Server turn" which is increased after every update (possibility of making a move).
getTwoDimensionalArrayOfFields() - Method in interface pl.joegreen.sergeants.framework.model.GameState
 
getTwoVsTwo() - Method in class pl.joegreen.sergeants.api.response.RanksApiResponse
Ranking in 2v2 games.
getTwoVsTwo() - Method in class pl.joegreen.sergeants.api.response.StarsApiResponse
Stars in 2v2 games.
getUserId() - Method in class pl.joegreen.sergeants.framework.user.UserConfiguration
 
getUsername() - Method in class pl.joegreen.sergeants.api.response.ChatMessageApiResponse
Name of the author of the message.
getUsername() - Method in class pl.joegreen.sergeants.framework.model.ChatMessage
Name of player sending the message.
getUsername() - Method in class pl.joegreen.sergeants.framework.model.Player
 
getUsernames() - Method in class pl.joegreen.sergeants.api.response.GameStartApiResponse
Array of player names, indexed by player index.
getUsernames() - Method in class pl.joegreen.sergeants.framework.model.api.GameStartedApiResponseImpl
 
getUsernames() - Method in interface pl.joegreen.sergeants.framework.model.GameStarted
 
getVisibleFields() - Method in interface pl.joegreen.sergeants.framework.model.GameState
 
getVisibleFieldsMap() - Method in class pl.joegreen.sergeants.framework.model.api.UpdatableGameState
 
getVisibleFieldsMap() - Method in interface pl.joegreen.sergeants.framework.model.GameState
 
getVisibleNeighbours() - Method in class pl.joegreen.sergeants.framework.model.Field
Same as Field.getNeighbours() but filtered with Field.isVisible().
getWidth() - Method in class pl.joegreen.sergeants.simulator.viewer.ViewerMapState
 

H

hashCode() - Method in class pl.joegreen.sergeants.api.response.ChatMessageApiResponse
 
hashCode() - Method in class pl.joegreen.sergeants.api.response.GameLostApiResponse
 
hashCode() - Method in class pl.joegreen.sergeants.api.response.GameStartApiResponse
 
hashCode() - Method in class pl.joegreen.sergeants.api.response.GameUpdateApiResponse
 
hashCode() - Method in class pl.joegreen.sergeants.api.response.RanksApiResponse
 
hashCode() - Method in class pl.joegreen.sergeants.api.response.ScoreApiResponse
 
hashCode() - Method in class pl.joegreen.sergeants.api.response.StarsApiResponse
 
hashCode() - Method in class pl.joegreen.sergeants.api.test.FakeSocket.Event
 
hashCode() - Method in class pl.joegreen.sergeants.framework.model.api.GameStartedApiResponseImpl
 
hashCode() - Method in class pl.joegreen.sergeants.framework.model.api.UpdatableGameState
 
hashCode() - Method in class pl.joegreen.sergeants.framework.model.ChatMessage
 
hashCode() - Method in class pl.joegreen.sergeants.framework.model.GameResult
 
hashCode() - Method in class pl.joegreen.sergeants.framework.model.Player
 
hashCode() - Method in class pl.joegreen.sergeants.framework.model.Position
 
hashCode() - Method in class pl.joegreen.sergeants.simulator.viewer.ViewerField
 
hashCode() - Method in class pl.joegreen.sergeants.simulator.viewer.ViewerMapState
 
hasOwner() - Method in class pl.joegreen.sergeants.framework.model.VisibleField
 

I

idAndName(String, String) - Static method in class pl.joegreen.sergeants.framework.user.UserConfiguration
Use when you want to set the name for the given ID.
injectEvent(FakeSocket.Event) - Method in class pl.joegreen.sergeants.api.test.FakeSocket
 
isBlank() - Method in class pl.joegreen.sergeants.framework.model.VisibleField
Returns true if field is represented with a white square in the brower (not mountain, not city, no owner).
isCity() - Method in class pl.joegreen.sergeants.framework.model.VisibleField
 
isCity() - Method in class pl.joegreen.sergeants.simulator.viewer.ViewerField
 
isConnected() - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
isDead() - Method in class pl.joegreen.sergeants.api.response.ScoreApiResponse
True if player already lost.
isDead() - Method in class pl.joegreen.sergeants.framework.model.Player
True if player has already lost the game.
isGeneral() - Method in class pl.joegreen.sergeants.framework.model.VisibleField
 
isGeneral() - Method in class pl.joegreen.sergeants.simulator.viewer.ViewerField
 
isMountain() - Method in class pl.joegreen.sergeants.simulator.viewer.ViewerField
 
isMovableFrom(Position) - Method in class pl.joegreen.sergeants.framework.model.Position
 
isObstacle() - Method in class pl.joegreen.sergeants.framework.model.Field
If the field is not visible, true indicates city or mountain, if the field is visible true indicates only mountain.
isObstacle() - Method in class pl.joegreen.sergeants.framework.model.VisibleField
 
isOwnedBy(int) - Method in class pl.joegreen.sergeants.framework.model.VisibleField
 
isOwnedByEnemy() - Method in class pl.joegreen.sergeants.framework.model.VisibleField
Returns true if field has an owner but owner is not in the same team as bot.
isOwnedByMe() - Method in class pl.joegreen.sergeants.framework.model.VisibleField
 
isOwnedByMyTeam() - Method in class pl.joegreen.sergeants.framework.model.VisibleField
 
isValidPosition(Position) - Method in interface pl.joegreen.sergeants.framework.model.GameState
 
isVisible() - Method in class pl.joegreen.sergeants.framework.model.Field
Determines whether in the current round the field is visible or in the fog of war.
isVisible() - Method in class pl.joegreen.sergeants.framework.model.VisibleField
 
isVisible(int, Tile) - Method in class pl.joegreen.sergeants.simulator.GameMap
 
isVisibleFrom(Position) - Method in class pl.joegreen.sergeants.framework.model.Position
 

J

joinCustomGameQueue(String, String) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
joinFreeForAllQueue(String) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
joinOneVsOneQueue(String) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
joinQueue(GeneralsApi, String) - Method in class pl.joegreen.sergeants.framework.queue.QueueConfiguration
 
joinTwoVsTwoQueue(String, String) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 

L

leaveCustomGameQueue(String) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
leaveFreeForAllQueue() - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
leaveGame() - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
leaveGame() - Method in interface pl.joegreen.sergeants.framework.Actions
 
leaveOneVsOneQueue() - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
leaveTwoVsTwoQueue() - Method in class pl.joegreen.sergeants.api.GeneralsApi
 

M

MapPatcher - Class in pl.joegreen.sergeants.api.util
 
MapPatcher() - Constructor for class pl.joegreen.sergeants.api.util.MapPatcher
 
move(int, int) - Method in interface pl.joegreen.sergeants.framework.Actions
 
move(Field, Field) - Method in interface pl.joegreen.sergeants.framework.Actions
Direct move between fields.
move(int, int, boolean) - Method in interface pl.joegreen.sergeants.framework.Actions
 
move(Field, Field, boolean) - Method in interface pl.joegreen.sergeants.framework.Actions
Direct move between fields.

N

NoArgsListener - Interface in pl.joegreen.sergeants.api.listener
 
NopViewerWriter - Class in pl.joegreen.sergeants.simulator.viewer
 
NopViewerWriter() - Constructor for class pl.joegreen.sergeants.simulator.viewer.NopViewerWriter
 
NUMBER_TO_TERRAIN_TYPE - Static variable in enum pl.joegreen.sergeants.framework.model.FieldTerrainType
 

O

of(GameMap, Function<Actions, Bot>...) - Static method in class pl.joegreen.sergeants.simulator.SimulatorFactory
 
of(GameMap, SimulatorConfiguration, Function<Actions, Bot>...) - Static method in class pl.joegreen.sergeants.simulator.SimulatorFactory
 
on(String, Consumer<Object[]>) - Method in class pl.joegreen.sergeants.api.RealSocket
 
on(String, Consumer<Object[]>) - Method in interface pl.joegreen.sergeants.api.Socket
 
on(String, Consumer<Object[]>) - Method in class pl.joegreen.sergeants.api.test.FakeSocket
 
once(String, Consumer<Object[]>) - Method in class pl.joegreen.sergeants.api.RealSocket
 
once(String, Consumer<Object[]>) - Method in interface pl.joegreen.sergeants.api.Socket
 
once(String, Consumer<Object[]>) - Method in class pl.joegreen.sergeants.api.test.FakeSocket
 
onceConnected(NoArgsListener) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
onChatMessage(ChatMessageListener) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
onChatMessage(ChatMessage) - Method in interface pl.joegreen.sergeants.framework.Bot
Called on every chat message (game chat, team chat)
onConnected(NoArgsListener) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
onDisconnected(NoArgsListener) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
OneArgListener<T> - Interface in pl.joegreen.sergeants.api.listener
 
onEvent(String, Consumer<Object[]>, boolean) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
onEvent(String, Consumer<Object[]>) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
onEvent(String, ChatMessageApiResponse) - Method in interface pl.joegreen.sergeants.api.listener.ChatMessageListener
 
onEvent() - Method in interface pl.joegreen.sergeants.api.listener.NoArgsListener
 
onEvent(T) - Method in interface pl.joegreen.sergeants.api.listener.OneArgListener
 
oneVsOne() - Static method in class pl.joegreen.sergeants.framework.queue.QueueConfiguration
 
onGameFinished(GameResult) - Method in interface pl.joegreen.sergeants.framework.Bot
Called when game is won, lost or the connection to the server is lost.
onGameLost(OneArgListener<GameLostApiResponse>) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
onGameStarted(OneArgListener<GameStartApiResponse>) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
onGameStarted(GameStarted) - Method in interface pl.joegreen.sergeants.framework.Bot
Called when the new game is started.
onGameStateUpdate(GameState) - Method in interface pl.joegreen.sergeants.framework.Bot
Called on every game state update from server.
onGameUpdated(OneArgListener<GameUpdateApiResponse>) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
onGameWon(NoArgsListener) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
onlyUserId(String) - Static method in class pl.joegreen.sergeants.framework.user.UserConfiguration
Use when name for that ID is already set or you want to remain anonymous.
onRanksReceived(OneArgListener<RanksApiResponse>) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
onSetUsernameError(OneArgListener<String>) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
onStarsReceived(OneArgListener<StarsApiResponse>) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 

P

patch(int[], int[]) - Static method in class pl.joegreen.sergeants.api.util.MapPatcher
 
ping(int) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
ping(int) - Method in interface pl.joegreen.sergeants.framework.Actions
 
ping(Field) - Method in interface pl.joegreen.sergeants.framework.Actions
 
pl.joegreen.sergeants.api - package pl.joegreen.sergeants.api
 
pl.joegreen.sergeants.api.listener - package pl.joegreen.sergeants.api.listener
 
pl.joegreen.sergeants.api.response - package pl.joegreen.sergeants.api.response
 
pl.joegreen.sergeants.api.test - package pl.joegreen.sergeants.api.test
 
pl.joegreen.sergeants.api.util - package pl.joegreen.sergeants.api.util
 
pl.joegreen.sergeants.framework - package pl.joegreen.sergeants.framework
 
pl.joegreen.sergeants.framework.model - package pl.joegreen.sergeants.framework.model
 
pl.joegreen.sergeants.framework.model.api - package pl.joegreen.sergeants.framework.model.api
 
pl.joegreen.sergeants.framework.queue - package pl.joegreen.sergeants.framework.queue
 
pl.joegreen.sergeants.framework.user - package pl.joegreen.sergeants.framework.user
 
pl.joegreen.sergeants.simulator - package pl.joegreen.sergeants.simulator
 
pl.joegreen.sergeants.simulator.viewer - package pl.joegreen.sergeants.simulator.viewer
 
play(int, Function<Actions, Bot>, QueueConfiguration, UserConfiguration) - Static method in class pl.joegreen.sergeants.framework.Games
 
playAsynchronously(int, Function<Actions, Bot>, QueueConfiguration, UserConfiguration) - Static method in class pl.joegreen.sergeants.framework.Games
 
playAsynchronouslyWithCustomApi(GeneralsApi, int, Function<Actions, Bot>, QueueConfiguration, UserConfiguration) - Static method in class pl.joegreen.sergeants.framework.Games
 
Player - Class in pl.joegreen.sergeants.framework.model
 
Player(Integer, String, Integer, Integer, Integer, boolean) - Constructor for class pl.joegreen.sergeants.framework.model.Player
 
Position - Class in pl.joegreen.sergeants.framework.model
 
Position(int, int) - Constructor for class pl.joegreen.sergeants.framework.model.Position
 
positionFromIndex(int) - Method in interface pl.joegreen.sergeants.framework.model.GameState
 
positionToIndex(Position) - Method in interface pl.joegreen.sergeants.framework.model.GameState
 
positionToIndex(Position) - Method in interface pl.joegreen.sergeants.framework.model.GameStateFieldContext
 

Q

QueueConfiguration - Class in pl.joegreen.sergeants.framework.queue
 
QueueConfiguration(boolean) - Constructor for class pl.joegreen.sergeants.framework.queue.QueueConfiguration
 

R

random() - Static method in class pl.joegreen.sergeants.framework.user.UserConfiguration
Equal to UserConfiguration.idAndName(String, String) but creates a random ID and name.
RanksApiResponse - Class in pl.joegreen.sergeants.api.response
 
RanksApiResponse(int, int, int) - Constructor for class pl.joegreen.sergeants.api.response.RanksApiResponse
 
RealSocket - Class in pl.joegreen.sergeants.api
Socket implementation that connects to the real SocketIO GeneralsIO socket.
RealSocket() - Constructor for class pl.joegreen.sergeants.api.RealSocket
 
receivedEvents - Variable in class pl.joegreen.sergeants.api.test.FakeSocket
 
registeredListeners - Variable in class pl.joegreen.sergeants.api.test.FakeSocket
 
requestStarsAndRank(String) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 

S

ScoreApiResponse - Class in pl.joegreen.sergeants.api.response
 
ScoreApiResponse(int, int, int, boolean) - Constructor for class pl.joegreen.sergeants.api.response.ScoreApiResponse
 
sendChat(String) - Method in interface pl.joegreen.sergeants.framework.Actions
 
sendChatMessage(String, String) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
sendTeamChat(String) - Method in interface pl.joegreen.sergeants.framework.Actions
 
serializeToString() - Method in class pl.joegreen.sergeants.simulator.viewer.ViewerField
 
serializeToString() - Method in class pl.joegreen.sergeants.simulator.viewer.ViewerMapState
 
setTeamInCustomGame(String, int) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
setUsername(String, String) - Method in class pl.joegreen.sergeants.api.GeneralsApi
 
Simulator - Class in pl.joegreen.sergeants.simulator
An offline local server simulator of one generals.io game.
SimulatorConfiguration - Class in pl.joegreen.sergeants.simulator
 
SimulatorConfiguration() - Constructor for class pl.joegreen.sergeants.simulator.SimulatorConfiguration
 
SimulatorFactory - Class in pl.joegreen.sergeants.simulator
Factory class for creating simulations
Socket - Interface in pl.joegreen.sergeants.api
SocketIO proxy interface that is needed to allow testing with fake sockets.
StarsApiResponse - Class in pl.joegreen.sergeants.api.response
 
StarsApiResponse(double, double, double) - Constructor for class pl.joegreen.sergeants.api.response.StarsApiResponse
 
start() - Method in class pl.joegreen.sergeants.simulator.Simulator
Start simulation

T

toIndex(int) - Method in class pl.joegreen.sergeants.framework.model.Position
 
toString() - Method in class pl.joegreen.sergeants.api.response.ChatMessageApiResponse
 
toString() - Method in class pl.joegreen.sergeants.api.response.GameLostApiResponse
 
toString() - Method in class pl.joegreen.sergeants.api.response.GameStartApiResponse
 
toString() - Method in class pl.joegreen.sergeants.api.response.GameUpdateApiResponse
 
toString() - Method in class pl.joegreen.sergeants.api.response.RanksApiResponse
 
toString() - Method in class pl.joegreen.sergeants.api.response.ScoreApiResponse
 
toString() - Method in class pl.joegreen.sergeants.api.response.StarsApiResponse
 
toString() - Method in class pl.joegreen.sergeants.api.test.FakeSocket.Event
 
toString() - Method in class pl.joegreen.sergeants.framework.model.api.GameStartedApiResponseImpl
 
toString() - Method in class pl.joegreen.sergeants.framework.model.api.UpdatableGameState
 
toString() - Method in class pl.joegreen.sergeants.framework.model.ChatMessage
 
toString() - Method in class pl.joegreen.sergeants.framework.model.Field
 
toString() - Method in class pl.joegreen.sergeants.framework.model.GameResult
 
toString() - Method in class pl.joegreen.sergeants.framework.model.Player
 
toString() - Method in class pl.joegreen.sergeants.framework.model.Position
 
toString() - Method in class pl.joegreen.sergeants.framework.model.VisibleField
 
toString() - Method in class pl.joegreen.sergeants.simulator.viewer.ViewerField
 
toString() - Method in class pl.joegreen.sergeants.simulator.viewer.ViewerMapState
 
toViewerMapState(GameMap) - Static method in class pl.joegreen.sergeants.simulator.GameMap
 
twoVsTwo(String, boolean) - Static method in class pl.joegreen.sergeants.framework.queue.QueueConfiguration
Joins 2vs2 game queue.

U

UpdatableGameState - Class in pl.joegreen.sergeants.framework.model.api
 
update(GameUpdateApiResponse) - Method in class pl.joegreen.sergeants.framework.model.api.UpdatableGameState
Updates game state from previous turn with new information received from server.
UserConfiguration - Class in pl.joegreen.sergeants.framework.user
 
UserConfiguration(String) - Constructor for class pl.joegreen.sergeants.framework.user.UserConfiguration
 

V

valueOf(String) - Static method in enum pl.joegreen.sergeants.framework.model.ChatMessage.ChatType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum pl.joegreen.sergeants.framework.model.FieldTerrainType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum pl.joegreen.sergeants.framework.model.GameResult.Result
Returns the enum constant of this type with the specified name.
values() - Static method in enum pl.joegreen.sergeants.framework.model.ChatMessage.ChatType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum pl.joegreen.sergeants.framework.model.FieldTerrainType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum pl.joegreen.sergeants.framework.model.GameResult.Result
Returns an array containing the constants of this enum type, in the order they are declared.
ViewerField - Class in pl.joegreen.sergeants.simulator.viewer
 
ViewerField(Position, Integer, int, boolean, boolean, boolean) - Constructor for class pl.joegreen.sergeants.simulator.viewer.ViewerField
 
ViewerMapState - Class in pl.joegreen.sergeants.simulator.viewer
 
ViewerMapState(int, int, int, Set<ViewerField>) - Constructor for class pl.joegreen.sergeants.simulator.viewer.ViewerMapState
 
ViewerWriter - Interface in pl.joegreen.sergeants.simulator.viewer
 
VisibleField - Class in pl.joegreen.sergeants.framework.model
 
VisibleField(GameStateFieldContext, Position, FieldTerrainType, Optional<Integer>, int, boolean, boolean) - Constructor for class pl.joegreen.sergeants.framework.model.VisibleField
 

W

withArmy(Integer) - Method in class pl.joegreen.sergeants.framework.model.Player
Total army owned by player.
withCol(int) - Method in class pl.joegreen.sergeants.framework.model.Position
 
withDead(boolean) - Method in class pl.joegreen.sergeants.framework.model.Player
True if player has already lost the game.
withFields(Integer) - Method in class pl.joegreen.sergeants.framework.model.Player
Number of fields owned by player.
withIndex(Integer) - Method in class pl.joegreen.sergeants.framework.model.Player
 
withMaxTurns(int) - Method in class pl.joegreen.sergeants.simulator.SimulatorConfiguration
 
withReplayFile(File) - Method in class pl.joegreen.sergeants.simulator.SimulatorConfiguration
File where replay will be saved when simulation is run.
withRow(int) - Method in class pl.joegreen.sergeants.framework.model.Position
 
withTeam(Integer) - Method in class pl.joegreen.sergeants.framework.model.Player
Identifier of a team that player belongs to.
withUsername(String) - Method in class pl.joegreen.sergeants.framework.model.Player
 
write(GameMap) - Method in class pl.joegreen.sergeants.simulator.viewer.FileViewerWriter
 
write(GameMap) - Method in class pl.joegreen.sergeants.simulator.viewer.NopViewerWriter
 
write(GameMap) - Method in interface pl.joegreen.sergeants.simulator.viewer.ViewerWriter
 
A B C D E F G H I J L M N O P Q R S T U V W 
Skip navigation links

Copyright © 2017. All rights reserved.