private void theLoot_Load(object sender, EventArgs e) { //获取搜刮类,搜刮类从英雄当前的地区中获得 Lootage = (defaultLoot)this.Tag; blockName.Text = Lootage.getTheBlock().getName(); lootBar.Maximum = Lootage.getMaxLootIndex(); lootBar.Value = Lootage.getLootIndex(); //将搜刮类的引用给英雄动作 HeroLootAction.setLoot(Lootage); HeroLootAction.setLootMessage(lootMsg); HeroLootAction.setAddItemAction(Lootage.getAddItemAction()); }
public void setBlockLoot(defaultLoot blockLoot) { this.blockLoot = blockLoot; }
public void setLoot(defaultLoot loot) { this.loot = loot; }