makeValidatedEnumeration(Message, { "Pong": (), "RequestState": (), "SendChat": (str,), "SendWhisper": (str, str), "WhisperError": (), "Join": (), "RequestName": (str,), "Rejoin": (str,), "RequestBoardName": (), "RequestPlayerList": (), "RequestChatHistory": (), "RequestOwnershipList": (), "RequestCardList": (), "RequestCurrentPlayer": (), "RequestRemainingTroops": (), "ChangeName": (str,), "ChangeColor": (int, int, int), "ReadyToPlay": (), "ClaimTerritory": (str,), "ExchangeCards": (int, int, int), "Draft": (str, int), "Attack": (str, str, int), "EndAttack": (), "Fortify": (str, str, int), "EndTurn": (), "Ping": (), "CurrentState": (int,), "StateChanged": (int, int,), "ReceiveChat": (str, str, long), "ReceiveWhisper": (str, str, str, long), "JoinSuccess": (), "NameTaken": (), "NameAccepted": (str,str), "PlayerJoined": (str, int, int, int), "GameInProgress": (), "IncorrectPassword": (), "RejoinSuccess": (str,), "PlayerRejoined": (str,), "BeginPlayerList": (), "PlayerInfo": (str, int, int, int, int), "EndPlayerList": (), "LoadBoard": (str,), "BeginOwnershipList": (), "Ownership": (str, str, int), "EndOwnershipList": (), "BeginCardList": (), "Card": (str, int), "EndCardList": (), "CurrentPlayer": (str,), "PlayerLeft": (str,), "PlayerLeftDuringGame": (str,), "ColorChanged": (str, int, int, int), "NameChangeTaken": (), "NameChangeSuccess": (str,), "NameChanged": (str, str), "TurnChanged": (str,), "TerritoryUpdated": (str, str, int,), "RemainingTroopsChanged": (int,), "MustExchangeCards": (), "CardsExchanged": (str, int, int, int), "Attacked": (str, str, str), "ReceiveCard": (str, int), "CardAwarded": (str,), "PlayerEliminated": (str,), })
AddPlayer -- Add a player to the game. Args: player name RemovePlayer -- Remove a player from the game. Args: player name StartGame -- Start the game. ExchangeCards -- Exchange cards for troops. Args: indexes of the three cards PlaceTroops -- Place troops in a territory. Args: territory name, number of troops Attack -- Attack an enemy territory. Args: attacking territory name, target territory name, number of troops EndAttack -- End the attack phase. EndTurn -- End the current player's turn.""" pass makeValidatedEnumeration(Action, { "AddPlayer": (str,), "RemovePlayer": (str,), "StartGame": (), "ExchangeCards": (int, int, int), "PlaceTroops": (str, int), "Attack": (str, str, int), "EndAttack": (), "Fortify": (str, str, int), "EndTurn": (), }) class SM(QObject): stateChanged = pyqtSignal(int, int) turnChanged = pyqtSignal(str) territoryUpdated = pyqtSignal(str, str, int) remainingTroopsChanged = pyqtSignal(int) attacked = pyqtSignal(str, str, str) cardAwarded = pyqtSignal(str, str, int) cardsExchanged = pyqtSignal(str, int, int, int) mustExchangeCards = pyqtSignal(str)