@Override
    public void deserialize(Buffer buf) {
        int limit = buf.readUShort();
        positionsForChallengers = new short[limit];
        for (int i = 0; i < limit; i++) {
            positionsForChallengers[i] = buf.readShort();
        }
        limit = buf.readUShort();
        positionsForDefenders = new short[limit];
        for (int i = 0; i < limit; i++) {
            positionsForDefenders[i] = buf.readShort();
        }
        teamNumber = buf.readByte();
        if (teamNumber < 0)
            throw new RuntimeException("Forbidden value on teamNumber = " + teamNumber + ", it doesn't respect the following condition : teamNumber < 0");
    }