public static void ShowHero(OrderType orderType, HeroItem heroItem, int quality, short level, sbyte job, int atk, int hp, int recover) { switch (orderType) { //入手顺序排序 case OrderType.Time: heroItem.ShowByLvl(level); break; //武将职业排序 case OrderType.Job: heroItem.ShowByJob(atk); break; //武将稀有度排序 case OrderType.Rarity: heroItem.ShowByQuality(quality); break; //照队伍顺序排序 case OrderType.Team: heroItem.ShowByLvl(level); break; //攻击力排序 case OrderType.Attack: heroItem.ShowByJob(atk); break; //HP排序 case OrderType.Health: heroItem.ShowByHp(hp); break; //回复力排序 case OrderType.Recover: heroItem.ShowByRecover(recover); break; //等级排序 case OrderType.Level: heroItem.ShowByLvl(level); break; } }