예제 #1
0
 private void CommonButt_Click(object sender, EventArgs e)
 {
     Gotcha = new Gotchapon();
     Gotcha.createGotcha(1);
     MainLab.Text       = $"{Gotcha.getname()}";
     AbilitiesLab1.Text = $"{Gotcha.getatt()}";
     AttackLab.Text     = $"Attack: {Gotcha.getatk()}";
     DefenceLab.Text    = $"Defence: {Gotcha.getdef()}";
     HitDiceLab.Text    = $"Hit Dice: {Gotcha.gethd()}";
     SpeedLab.Text      = $"Speed: {Gotcha.getspeed()}";
     SkillLab.Text      = $"{Gotcha.getskill()}";
 }
예제 #2
0
        public void FillPlayer1()
        {
            NameBox.Text             = $"{Player1.getname()}";
            HitDiceNumberBox.Text    = $"{Player1.getHDNum()}";
            HitDiceSizeBox.Text      = $"{Player1.getHDSize()}";
            AttackDiceNumberBox.Text = $"{Player1.getAtkNum()}";
            AttackDiceSizeBox.Text   = $"{Player1.getAtkSides()}";
            AttackModBox.Text        = $"{Player1.getAtkMod()}";
            DefenceBox.Text          = $"{Player1.getDefMod()}";

            if (Player1.getLandSpeed() <= 0)
            {
                LandSpeedBox.Text = $"";
            }
            else
            {
                LandSpeedBox.Text = $"{Player1.getLandSpeed()}";
            }

            if (Player1.getSwimSpeed() <= 0)
            {
                SwimSpeedBox.Text = $"";
            }
            else
            {
                SwimSpeedBox.Text = $"{Player1.getSwimSpeed()}";
            }

            if (Player1.getFlySpeed() <= 0)
            {
                FlySpeedBox.Text = $"";
            }
            else
            {
                FlySpeedBox.Text = $"{Player1.getFlySpeed()}";
            }

            FlameGiftCheq.Checked = Player1.getFlamegift();

            if (Player1.getGrapple() <= 0)
            {
                GrappleBox.Text = $"";
            }
            else
            {
                GrappleBox.Text = $"{Player1.getGrapple()}";
            }

            if (Player1.getChargeDiceSize() <= 0)
            {
                ChargeDiceNumberBox.Text = "";
                ChargeDiceSizeBox.Text   = "";
                ChargeModBox.Text        = "";
            }
            else
            {
                ChargeDiceNumberBox.Text = $"{Player1.getChargeDiceNum()}";
                ChargeDiceSizeBox.Text   = $"{Player1.getChargeDiceSize()}";
                ChargeModBox.Text        = $"{Player1.getAtkMod()}";
            }

            if (Player1.getRegen() <= 0)
            {
                RegenBox.Text = $"";
            }
            else
            {
                RegenBox.Text = $"{Player1.getRegen()}";
            }
        }