public void updata() { myHero.getHeroBag().updata(myHero); HpBar.Maximum = myHero.getMaxHp(); HpBar.Value = myHero.getHp(); HpBarShow.Text = HpBar.Value + "/" + HpBar.Maximum; HungryBar.Maximum = myHero.getMaxHungry(); HungryBar.Value = myHero.getHungry(); HungryShow.Text = HungryBar.Value + "/" + HungryBar.Maximum; ThirstyBar.Maximum = myHero.getMaxThirsty(); ThirstyBar.Value = myHero.getThirsty(); ThirstyShow.Text = ThirstyBar.Value + "/" + ThirstyBar.Maximum; PeeBar.Maximum = myHero.getMaxPee(); PeeBar.Value = myHero.getPee(); PeeeShow.Text = PeeBar.Value + "/" + PeeBar.Maximum; ShitBar.Maximum = myHero.getMaxShit(); ShitBar.Value = myHero.getShit(); ShitShow.Text = ShitBar.Value + "/" + ShitBar.Maximum; TemperBar.Maximum = (int)myHero.getMaxTemperture(); TemperBar.Value = (int)myHero.getTemperature(); TemperShow.Text = myHero.getTemperature() + "/" + myHero.getMaxTemperture() + "摄氏度"; ImmBar.Maximum = myHero.getMaxImmunity(); ImmBar.Value = myHero.getImmunity(); ImmShow.Text = ImmBar.Value + "/" + ImmBar.Maximum; BloodBar.Maximum = myHero.getMaxBlood(); BloodBar.Value = myHero.getBlood(); BloodShow.Text = BloodBar.Value + "/" + BloodBar.Maximum; PainBar.Maximum = myHero.getMaxPain(); PainBar.Value = myHero.getPain(); PainShow.Text = PainBar.Value + "/" + PainBar.Maximum; EnergyBar.Maximum = myHero.getMaxEnergy(); EnergyBar.Value = myHero.getEnergy(); EnergyShow.Text = EnergyBar.Value + "/" + EnergyBar.Maximum; BurdenBar.Maximum = (int)myHero.getMaxBurden(); BurdenBar.Value = (int)myHero.getBurden(); BurdenShow.Text = myHero.getBurden() + "/" + myHero.getMaxBurden() + "千克"; ExpBar.Maximum = myHero.getMaxExp(); ExpBar.Value = myHero.getExp(); ExpBarShow.Text = ExpBar.Value + "/" + ExpBar.Maximum; hero_level.Text = myHero.getLevel().ToString(); hero_age.Text = myHero.getHero_age().ToString() + "岁"; hero_agility.Text = myHero.getHero_agility().ToString(); hero_bloodtype.Text = tl.BloodTypeToString(myHero.getHero_bloodtype()); hero_charm.Text = myHero.getHero_charm().ToString(); hero_endurance.Text = myHero.getHero_endurance().ToString(); hero_eq.Text = myHero.getHero_eq().ToString(); hero_eye.Text = myHero.getHero_eye().ToString() + "度"; hero_face.Text = myHero.getHero_face().ToString(); hero_group.Text = tl.GroupToString(myHero.getHero_group()); hero_hair.Text = myHero.getHero_hair().ToString() + "根"; hero_height.Text = myHero.getHero_height().ToString() + "厘米"; hero_iq.Text = myHero.getHero_iq().ToString(); hero_job.Text = tl.JobToString(myHero.getHero_job()); hero_lucky.Text = myHero.getHero_lucky().ToString(); hero_money.Text = myHero.getHero_money().ToString() + "元"; hero_sex.Text = tl.SexToString(myHero.getHero_sex()); hero_strength.Text = myHero.getHero_strength().ToString(); hero_talk.Text = myHero.getHero_talk().ToString(); hero_weight.Text = myHero.getHero_weight().ToString() + "千克"; }