public GameObject inputField2; //ID to sell a property

    void Start()
    {
        DeactivateButtons();

        theDiceRoller = GameObject.FindObjectOfType <DiceRoller>();

        nbPlayer = SetParameters.GetInstance().NotNullCounter();
        //We create the array of palyers
        listPlayer = new Player[nbPlayer];
        for (int i = 0; i < this.nbPlayer; i++)
        {
            listPlayer[i] = new Player(SetParameters.GetInstance().ListUsernames()[i]);
        }

        plateau = new Board(file);

        tourMax = SetParameters.GetInstance().LapNumber();
        tour    = 1;

        idPlayerPlaying     = 0;
        idPlayerToMove      = 1;
        initialPosition     = listPlayer[idPlayerPlaying].Position;
        doubleCounter       = 0;
        infosToPlayer       = " ";
        playerHasProperties = false;

        victory = false;

        UpdateDisplay();
    }
Ejemplo n.º 2
0
        private SetParameters ParseCommand(string cmd)
        {
            var parameters = new SetParameters();

            string sansCommand = cmd.Split(new[] { ' ' }, 2)[1];
            string[] splitByEquals = sansCommand.Split(new[] { '=' }, 2);
            string[] splitByDot = splitByEquals[0].Split(new[] { '.' }, 2);

            parameters.Value = splitByEquals[1].Trim();
            parameters.Property = splitByDot[1].Trim();
            parameters.GameObjectName = splitByDot[0].Trim();
            return parameters;
        }
Ejemplo n.º 3
0
    // Start is called before the first frame update
    void Start()
    {
        notNullCounter = 0;

        //We use the singleton pattern to create only one instance of the main menu

        if (instance != null)
        {
            //Someone else is the singleton already
            //So let's jsut destroy ourselevs before we cause trouble.
            Destroy(this.gameObject);
            return;
        }
        // If we get here , then we are "the one and only"
        instance = this;
        GameObject.DontDestroyOnLoad(this.gameObject); //Become "immortal"
    }
Ejemplo n.º 4
0
 public void SendRequest()
 {
     ResponseData = SetParameters.SetRequestAndGetResponse();
 }
Ejemplo n.º 5
0
 public void SetPostData(string payloadId)
 {
     SetParameters.SetPostOrPutData(payloadId);
 }
Ejemplo n.º 6
0
 public void SetEndpointParameters(string endpointParameters)
 {
     SetParameters.SetEndPointParameters(endpointParameters);
 }
Ejemplo n.º 7
0
        public void SetHeader(string authorizationType, string headerParameters)
        {
            string authType = authorizationType.ToUpper();

            SetParameters.SetHeaders(authType, headerParameters);
        }
Ejemplo n.º 8
0
 public void GenerateOAuth2(string oauthEndpoint, string oAuthParameters)
 {
     SetParameters.GenerateOAuth2Token(oauthEndpoint, oAuthParameters);
 }
Ejemplo n.º 9
0
 public void GivenISetApiRequestMethodTo(string apiMethod)
 {
     SetParameters.SetApiMethod(apiMethod);
 }
Ejemplo n.º 10
0
 public void GivenIHaveForEndpoint(string resource)
 {
     SetParameters.SetResource(Resource.GetResource(resource));
 }
Ejemplo n.º 11
0
 public void SetEndpoint(string application)
 {
     SetParameters.SetEndpoint(EndPoint.GetEndpoint(application));
 }
Ejemplo n.º 12
0
        public void VerifyJsonWebToken()
        {
            var isTokenValid = SetParameters.CheckValidityOfJwToken(JsonWebToken);

            Assert.IsTrue(isTokenValid, $"Generated JWToken is not valid");
        }
Ejemplo n.º 13
0
 public void GenerateJwToken(string jsonWebTokenParameters)
 {
     JsonWebToken = SetParameters.SetJwtParametersAndGetJwToken(jsonWebTokenParameters);
 }
Ejemplo n.º 14
0
 public PropertySetter(Type type, PropertyInfo[] properties, SetParameters setParameters)
 {
     Type          = type;
     Properties    = properties;
     SetParameters = setParameters;
 }