Uses of Class
io.sockit.gameserver.bot.Bot
| Package | Description |
|---|---|
| io.sockit.gameserver.bot |
This is the core package for the Sockit Game Bot and provides the classes necessary to create bots running on the server side of a multiplayer turn based game.
|
-
Uses of Bot in io.sockit.gameserver.bot
Methods in io.sockit.gameserver.bot with parameters of type Bot Modifier and Type Method Description booleanPlayer. isSameAsBot(Bot bot)Returns true if the player belongs to the specified botvoidBotEventAdapter. onAvtarChangedOfOtherPlayer(Bot bot, Player player, int newAvtarId, Room room)voidBotEventListener. onAvtarChangedOfOtherPlayer(Bot bot, Player player, int newAvtarId, Room room)Event-Handler/Callback called when the avtar of another player is changedvoidBotEventAdapter. onAvtarChangedOfSelf(Bot bot, int newAvtarId)voidBotEventListener. onAvtarChangedOfSelf(Bot bot, int newAvtarId)Event-Handler/Callback called when the avtar of the user loggedIn via this bot changesvoidBotEventAdapter. onError(Bot bot, int errorCode, String errorDesc)voidBotEventListener. onError(Bot bot, int errorCode, String errorDesc)Event-Handler/Callback called when an error is triggered on the server.voidBotEventAdapter. onGameAction(Bot bot, String gameAction, JsonObject actionData, Room room)voidBotEventListener. onGameAction(Bot bot, String gameAction, JsonObject actionData, Room room)Event-Handler/Callback called when a game action occurs in the game.voidBotEventAdapter. onGamePlayEnded(Bot bot, Room room, JsonObject endGameData)voidBotEventListener. onGamePlayEnded(Bot bot, Room room, JsonObject endGameData)Event-Handler/Callback called when game play ends in the roomvoidBotEventAdapter. onGamePlayStarted(Bot bot, Room room)voidBotEventListener. onGamePlayStarted(Bot bot, Room room)Event-Handler/Callback called when game play starts in the roomvoidBotEventAdapter. onGetLocations(Bot bot, String gameName, List<String> locations)voidBotEventListener. onGetLocations(Bot bot, String gameName, List<String> locations)Event-Handler/Callback called when the Bot receives the location list from the ServervoidBotEventAdapter. onGetRooms(Bot bot, String gameName, String location, RoomType roomtype, List<RoomInfo> rooms)voidBotEventListener. onGetRooms(Bot bot, String gameName, String location, RoomType roomtype, List<RoomInfo> rooms)Event-Handler/Callback called when the Bot receives the room list from the ServervoidBotEventAdapter. onInvalidAction(Bot bot, String action, String description, JsonObject errorData, Room room, boolean isOutOfTurn)voidBotEventListener. onInvalidAction(Bot bot, String action, String description, JsonObject errorData, Room room, boolean isOutOfTurn)Event-Handler/Callback called when an action played by the Bot is not validvoidBotEventAdapter. onLoggedIn(Bot bot)voidBotEventListener. onLoggedIn(Bot bot)Event-Handler/Callback called when the Bot successfully logins into the servervoidBotEventAdapter. onLoggedOut(Bot bot)voidBotEventListener. onLoggedOut(Bot bot)Event-Handler/Callback called when the Bot successfully logouts from the servervoidBotEventAdapter. onMessageReceivedBytes(Bot bot, String command, byte[] data)voidBotEventListener. onMessageReceivedBytes(Bot bot, String command, byte[] data)Event-Handler/Callback called when the Bot receives a custom binary message from the servervoidBotEventAdapter. onMessageReceivedJson(Bot bot, String command, JsonObject data)voidBotEventListener. onMessageReceivedJson(Bot bot, String command, JsonObject data)Event-Handler/Callback called when the Bot receives a custom Json message from the servervoidBotEventAdapter. onMessageReceivedString(Bot bot, String command, String data)voidBotEventListener. onMessageReceivedString(Bot bot, String command, String data)Event-Handler/Callback called when the Bot receives a custom text message from the servervoidBotEventAdapter. onNextTurn(Bot bot, Player turnPlayer, JsonObject turnData, Room room, boolean isSelfTurn)voidBotEventListener. onNextTurn(Bot bot, Player turnPlayer, JsonObject turnData, Room room, boolean isSelfTurn)Event-Handler/Callback called when a new turn beginsvoidBotEventAdapter. onNotEligibleToPlay(Bot bot, Player player, Room room, String reason)voidBotEventListener. onNotEligibleToPlay(Bot bot, Player player, Room room, String reason)Event-Handler/Callback called when the Bot is not eligible to play the new game play that is startingvoidBotEventAdapter. onOutOfTurnPlayed(Bot bot, Player outOfTurnPlayer, String playerAction, JsonObject actionData, Room room, boolean isSelf)voidBotEventListener. onOutOfTurnPlayed(Bot bot, Player outOfTurnPlayer, String playerAction, JsonObject actionData, Room room, boolean isSelf)Event-Handler/Callback called when an action is played out of turn by a playervoidBotEventAdapter. onRoomDestroyed(Bot bot, Room room)voidBotEventListener. onRoomDestroyed(Bot bot, Room room)Event-Handler/Callback called when the room joined by this bot is destroyedvoidBotEventAdapter. onRoomJoined(Bot bot, Room room)voidBotEventListener. onRoomJoined(Bot bot, Room room)Event-Handler/Callback called when the Bot joins a roomvoidBotEventAdapter. onRoomLeft(Bot bot)voidBotEventListener. onRoomLeft(Bot bot)Event-Handler/Callback called when the Bot leaves the roomvoidBotEventAdapter. onRoomRefreshedFromServer(Bot bot, Room room)voidBotEventListener. onRoomRefreshedFromServer(Bot bot, Room room)Event-Handler/Callback called when the room state is refreshed from the server.voidBotEventAdapter. onSeatLeft(Bot bot, Player playerLeft, Room room, boolean isSelf)voidBotEventListener. onSeatLeft(Bot bot, Player playerLeft, Room room, boolean isSelf)Event-Handler/Callback called when any user leaves a seat in the room.voidBotEventAdapter. onSeatTaken(Bot bot, Player playerSeated, Room room, boolean isSelf)voidBotEventListener. onSeatTaken(Bot bot, Player playerSeated, Room room, boolean isSelf)Event-Handler/Callback called when any user takes a seat in the room.voidBotEventAdapter. onServerShutdown(Bot bot)voidBotEventListener. onServerShutdown(Bot bot)Event-Handler/Callback called when the server shutsdownvoidBotEventAdapter. onSessionTimedOut(Bot bot)voidBotEventListener. onSessionTimedOut(Bot bot)Event-Handler/Callback called when the Bot's session times out on the servervoidBotEventAdapter. onTurnPlayed(Bot bot, Player turnPlayer, String playerAction, JsonObject actionData, Room room, boolean isSelf)voidBotEventListener. onTurnPlayed(Bot bot, Player turnPlayer, String playerAction, JsonObject actionData, Room room, boolean isSelf)Event-Handler/Callback called when a player plays his/her turn