Commit e20f496c authored by Mamadou Saliou DIALLO's avatar Mamadou Saliou DIALLO
Browse files

fix rebase modifications

parent 0deb14b9
include "common.thrift"
namespace java fr.univnantes.alma.thrift
namespace js common
//namespace js
enum PlayerState {
UNBLOCKED = 0,
BLOCKED
}
struct PlayerStateResponse {
1: PlayerState state,
2: string message
}
struct Player {
1: i32 id,
2: string name,
3: PlayerState state,
4: optional list<HuntCard> huntCards,
5: optional list<PlaceCard> placeCards,
}
struct Winner {
1: Player winner,
2: string message
}
struct HuntCard {
1: i32 phase,
2: string name,
3: bool visible
}
struct PlaceCard {
1: i32 number,
2: string name,
3: bool visible
}
struct BoardGameState {
1: i32 assimilationTokenPosition,
2: i32 rescuePawnPosition,
3: optional bool isBoardFacing,
4: list<Player> players
}
service PlayerService {
void startGame(i32 gameId)
bool ping() throws (1:common.InvalidOperationException e)
string startGame(BoardGameState boardGameState)
PlayerStateResponse blockActions()
PlayerStateResponse unblockActions()
void showPlayedCard()
string updatedGameBoard(BoardGameState bordGameState)
string endGame(Winner winner);
}
......@@ -170,4 +170,4 @@ interface Player {
updateGameBoard(string boardGameState): String
endGame(): String
}
....
\ No newline at end of file
....
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment