コード例 #1
0
ファイル: Gyanbura.cs プロジェクト: sukhrajd/FasterShuriken
        public bool betting(int amount, int bittingVampire)
        {
            this.genzaiGyanburu = new Gyanburu()
            {
                Betto_gaku = amount, shuriken = bittingVampire
            };

            if (amount <= okane)
            {
                okane        -= amount;
                activity.Text = this.na + " has placed $" + amount + " on Vampire #" + bittingVampire;
                this.UpdateActivity();
                return(true);
            }
            else
            {
                MessageBox.Show(this.na + " doesn't have enough money to cover for the bet!");
                this.genzaiGyanburu = null;
                return(false);
            }
        }
コード例 #2
0
ファイル: Gyanbura.cs プロジェクト: sukhrajd/FasterShuriken
 public void ResetStats()
 {
     genzaiGyanburu = null;
     activity.Text  = na + " has't placed a bet.";
 }