Commit bddb7316 authored by Corentin Guillevic's avatar Corentin Guillevic
Browse files

Small correction (adress to address) in game-service.thrift and in Conversion.java

parent 55aa7ca8
......@@ -12,7 +12,7 @@ struct JoinRequest {
struct TPlayer {
1: string token,
2: string name,
3: string adress,
3: string address,
4: i32 port
}
......
......@@ -385,7 +385,7 @@ public class Conversion {
}
public static User toUser(TPlayer tPlayer) {
return new User(tPlayer.getToken(), tPlayer.getName(), tPlayer.getAdress(), tPlayer.getPort());
return new User(tPlayer.getToken(), tPlayer.getName(), tPlayer.getAddress(), tPlayer.getPort());
}
/*************************************
......
......@@ -39,7 +39,7 @@ public class GameServiceHandler implements GameService.Iface {
}
@Override
public Response sendStartGame(TPlayer tPlayer, int idCreature,TBoard board, TColor color, List<TCard> tPlaceCards) throws TException {
public Response sendStartGame(TPlayer tPlayer, int idCreature,TBoard board, TColor color, List<TCard> tPlaceCards) {
User player = toUser(tPlayer);
BoardDistribution boardDistribution = Conversion.toBoardDistribution(board);
BoardColor boardColor = Conversion.toBoardColor(color);
......
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