pokerthproto.lobby module

All functionality related to the lobby where information about running games, players etc. is presented.

class pokerthproto.lobby.GameInfo(gameName=None)[source]

Bases: object

Wrapper object for pokerth_pb2.PNetGameInfo

This object is needed in order to create an own game.

addPlayer(player)[source]
adminPlayerId
allowSpectators
delPlayer(player)[source]
delayBetweenHands
endRaiseMode
endRaiseSmallBlindValue
fillWithComputerPlayers
firstSmallBlind
gameId
gameMode
gameName
getMsg()[source]
isPrivate
manualBlinds
maxNumPlayers
netGameType
playerActionTimeout
players
proposedGuiSpeed
raiseEveryHands
raiseIntervalMode
setInfo(gameInfo)[source]
startMoney
class pokerthproto.lobby.Lobby[source]

Bases: object

addGameInfo(gameInfo)[source]
addPlayer(playerId)[source]
addPlayerToGame(playerId, gameId)[source]
delPlayer(playerId)[source]
delPlayerFromGame(playerId, gameId)[source]
gameInfos
getGameInfo(gameId)[source]
getGameInfoId(gameName)[source]
getPlayer(playerId)[source]
players
setPlayerInfo(playerId, infoData)[source]
exception pokerthproto.lobby.LobbyError[source]

Bases: exceptions.Exception