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 Player
Room. getCurTurnPlayer()
Returns the player whose turn is the current turnPlayer
Room. getNextPlayer(int prevSeatNo)
Returns the next player seated after the specified seat numberPlayer
Room. getNextPlayer(Player prevPlayer)
Returns the next player seated after the specified playerPlayer
Bot. getPlayer()
Returns the player object associated with this Bot or null if the Bot is not seatedPlayer
Room. getPlayerBySeatNo(int seatNo)
Returns the player seated at the specified seat numberPlayer
Room. 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 Player
Room. getNextPlayer(Player prevPlayer)
Returns the next player seated after the specified playervoid
BotEventAdapter. onAvtarChangedOfOtherPlayer(Bot bot, Player player, int newAvtarId, Room room)
void
BotEventListener. onAvtarChangedOfOtherPlayer(Bot bot, Player player, int newAvtarId, Room room)
Event-Handler/Callback called when the avtar of another player is changedvoid
BotEventAdapter. onNextTurn(Bot bot, Player turnPlayer, JsonObject turnData, Room room, boolean isSelfTurn)
void
BotEventListener. onNextTurn(Bot bot, Player turnPlayer, JsonObject turnData, Room room, boolean isSelfTurn)
Event-Handler/Callback called when a new turn beginsvoid
BotEventAdapter. onNotEligibleToPlay(Bot bot, Player player, Room room, String reason)
void
BotEventListener. 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 startingvoid
BotEventAdapter. onOutOfTurnPlayed(Bot bot, Player outOfTurnPlayer, String playerAction, JsonObject actionData, Room room, boolean isSelf)
void
BotEventListener. 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 playervoid
BotEventAdapter. onSeatLeft(Bot bot, Player playerLeft, Room room, boolean isSelf)
void
BotEventListener. onSeatLeft(Bot bot, Player playerLeft, Room room, boolean isSelf)
Event-Handler/Callback called when any user leaves a seat in the room.void
BotEventAdapter. onSeatTaken(Bot bot, Player playerSeated, Room room, boolean isSelf)
void
BotEventListener. onSeatTaken(Bot bot, Player playerSeated, Room room, boolean isSelf)
Event-Handler/Callback called when any user takes a seat in the room.void
BotEventAdapter. onTurnPlayed(Bot bot, Player turnPlayer, String playerAction, JsonObject actionData, Room room, boolean isSelf)
void
BotEventListener. onTurnPlayed(Bot bot, Player turnPlayer, String playerAction, JsonObject actionData, Room room, boolean isSelf)
Event-Handler/Callback called when a player plays his/her turn