示例#1
0
 // 更新被击状态
 public void updateCardAttackedState(GameOpState opt)
 {
     foreach (SceneCardBase cardItem in m_sceneCardList.list)
     {
         cardItem.updateCardAttackedState(opt);
     }
 }
示例#2
0
 // 更新卡牌是否可以被击
 public void updateCardAttackedState(GameOpState opt)
 {
     if (opt.canAttackOp(this, opt.curOp))
     {
         m_sceneCardBaseData.m_effectControl.updateCardAttackedState();
     }
 }
示例#3
0
 // 更新被击者标志
 virtual public void updateCardAttackedState(GameOpState opt)
 {
     // 场牌
     outSceneCardList.updateCardAttackedState(opt);
     // 英雄卡
     m_centerHero.updateCardAttackedState(opt);
     // 技能卡
     m_sceneSkillCard.updateCardAttackedState(opt);
 }
示例#4
0
        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();
        }
示例#5
0
        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();
        }
示例#6
0
 // 更新被击状态
 public void updateCardAttackedState(GameOpState opt)
 {
     foreach (SceneCardBase cardItem in m_sceneCardList.list)
     {
         cardItem.updateCardAttackedState(opt);
     }
 }
示例#7
0
 // 更新卡牌是否可以被击
 public void updateCardAttackedState(GameOpState opt)
 {
     if (opt.canAttackOp(this, opt.curOp))
     {
         m_sceneCardBaseData.m_effectControl.updateCardAttackedState();
     }
 }
示例#8
0
 // 更新被击者标志
 virtual public void updateCardAttackedState(GameOpState opt)
 {
     // 场牌
     outSceneCardList.updateCardAttackedState(opt);
     // 英雄卡
     m_centerHero.updateCardAttackedState(opt);
     // 技能卡
     m_sceneSkillCard.updateCardAttackedState(opt);
 }