Esempio n. 1
0
        public string CheckBlock() //Check were Current Player is and if It OWned or not
        {
            int MVaule = Convert.ToInt16(Ploc[PlayerTurn]);
            int PLM    = Convert.ToInt16(playermoney[PlayerTurn]);

            if (playerOwned[PlayerTurn, MVaule] == BlockId[MVaule]) //Checks if Current Player Owns this
            {
                MessageBox.Show("You Allready Own this Welcome Back");
            }
            else if (!(OwnedList[MVaule] == BlockId[MVaule])) //Charege any other Player
            {
                ChargePlayer();                               // Calling Methods
            }
            else if (Ploc[PlayerTurn] == 3 || Ploc[PlayerTurn] == 9 || Ploc[PlayerTurn] == 14)
            {
                GetMoneyBlock();
            }
            else if (!(Convert.ToInt16(BlockRent[MVaule]) == 0))//Ask to buy a House
            {
                WYLB.Show();
                BLVaule.Show();
                btnYes.Show();
                btnNo.Show();
            }

            return("");
        }
Esempio n. 2
0
 private void btnNo_Click(object sender, EventArgs e) //No Button
 {
     MessageBox.Show("Allright.:(");
     Clear();
     Display();
     btnYes.Hide();
     btnNo.Hide();
     WYLB.Hide();
     BLVaule.Hide();
 }
Esempio n. 3
0
 private void btnYes_Click(object sender, EventArgs e) //Yes Button
 {
     DoBlock();
     Clear();
     Display();
     btnYes.Hide();
     btnNo.Hide();
     WYLB.Hide();
     BLVaule.Hide();
 }
Esempio n. 4
0
 //_______________________________________________________________________________________________________________
 public GameBoard()
 {
     //Clear();
     InitializeComponent();
     InitializeSpritesArray();
     getBlockId();
     Display();
     btnYes.Hide();
     btnNo.Hide();
     WYLB.Hide();
     BLVaule.Hide();
     // btnDebug.Hide();
 }
Esempio n. 5
0
 private void btnNext_Click(object sender, EventArgs e) //Next Button
 {
     if (Move == 0)
     {
         MessageBox.Show("RollDice");
     }
     else
     {
         PlayerTurn++; if (PlayerTurn > 3)
         {
             PlayerTurn = 0;
         }
         Move     = 0;
         stopMove = 0;
         Display();
         btnYes.Hide();
         btnNo.Hide();
         WYLB.Hide();
         BLVaule.Hide();
         Clear();
         Display();
         OPVaule.Text = "";
     }
 }