/// <summary> /// 虚拟牌的使用 /// </summary> /// <param name="p"></param> /// <param name="toP"></param> public void Use(AbstractPlayer p, AbstractPlayer toP) { CardSha cs = new CardSha(); //// 调用杀 //ViewManagement.getInstance().printBattleMsg( // p.getInfo().getName() + "对" + toP.getInfo().getName() // + "使用了杀" ); //try { // SwingUtilities.invokeAndWait(new Runnable() { // @Override // public void run() { // p.refreshView(); // PaintService.drawEffectImage(cs.getEffectImage(),p); // PaintService.drawLine(p,toP); // } // }); //} catch (InterruptedException e) { // e.printStackTrace(); //} catch (InvocationTargetException e) { // e.printStackTrace(); //} cs.ExecuteSha(p, toP); }
/// <summary> /// 是否回避杀 /// </summary> /// <param name="murder"></param> /// <param name="card"></param> /// <returns></returns> public bool AvoidSha(AbstractPlayer murder, CardSha card) { return(false); }