Uses of Class
io.sockit.gameserver.bot.Player
| 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 Player in io.sockit.gameserver.bot
Methods in io.sockit.gameserver.bot that return Player Modifier and Type Method Description PlayerRoom. getCurTurnPlayer()Returns the player whose turn is the current turnPlayerRoom. getNextPlayer(int prevSeatNo)Returns the next player seated after the specified seat numberPlayerRoom. getNextPlayer(Player prevPlayer)Returns the next player seated after the specified playerPlayerBot. getPlayer()Returns the player object associated with this Bot or null if the Bot is not seatedPlayerRoom. getPlayerBySeatNo(int seatNo)Returns the player seated at the specified seat numberPlayerRoom. getPlayerByUserId(String userId)Returns the player whose userId matches the specified userIdMethods in io.sockit.gameserver.bot that return types with arguments of type Player Modifier and Type Method Description Iterator<Player>Room. iterator()Returns an iterator which iterates through all the players in the roomMethods in io.sockit.gameserver.bot with parameters of type Player Modifier and Type Method Description PlayerRoom. getNextPlayer(Player prevPlayer)Returns the next player seated after the specified playervoidBotEventAdapter. 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. 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. 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. 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