// 更新被击状态 public void updateCardAttackedState(GameOpState opt) { foreach (SceneCardBase cardItem in m_sceneCardList.list) { cardItem.updateCardAttackedState(opt); } }
// 更新卡牌是否可以被击 public void updateCardAttackedState(GameOpState opt) { if (opt.canAttackOp(this, opt.curOp)) { m_sceneCardBaseData.m_effectControl.updateCardAttackedState(); } }
// 更新被击者标志 virtual public void updateCardAttackedState(GameOpState opt) { // 场牌 outSceneCardList.updateCardAttackedState(opt); // 英雄卡 m_centerHero.updateCardAttackedState(opt); // 技能卡 m_sceneSkillCard.updateCardAttackedState(opt); }
public void init() { m_sceneDZAreaArr[(int)EnDZPlayer.ePlayerSelf] = new SelfDZArea(this, EnDZPlayer.ePlayerSelf); m_sceneDZAreaArr[(int)EnDZPlayer.ePlayerEnemy] = new EnemyDZArea(this, EnDZPlayer.ePlayerEnemy); m_sceneDZAreaArr[(int)EnDZPlayer.ePlayerSelf].init(); m_sceneDZAreaArr[(int)EnDZPlayer.ePlayerEnemy].init(); m_historyArea = new HistoryArea(UtilApi.GoFindChildByPObjAndName(CVSceneDZPath.HistoryGo)); m_historyArea.m_sceneDZData = this; m_attackArrow = new AttackArrow(this); m_gameOpState = new GameOpState(this); m_sceneDZAreaArr[(int)EnDZPlayer.ePlayerSelf].crystalPtPanel.findWidget(); m_sceneDZAreaArr[(int)EnDZPlayer.ePlayerEnemy].crystalPtPanel.findWidget(); }