public bool WillAffectCard(CardInZhibo card) { if (!ZhiboBuffManager.isCardAffectBuff(bInfo)) { return(false); } if (!card.ca.ApplyFilter(filter)) { return(false); } return(false); }
public override void Init() { mUIMgr = GameMain.GetInstance().GetModule <UIMgr>(); mResLoader = GameMain.GetInstance().GetModule <ResLoader>(); mCardMdl = GameMain.GetInstance().GetModule <CardDeckModule>(); pRoleMgr = GameMain.GetInstance().GetModule <RoleModule>(); state = new ZhiboGameState(); state.stats = new RoleStats(pRoleMgr.GetStats()); state.BadLevel = pRoleMgr.GetBadLevel(); state.ZhiboBuffs.Clear(); state.Cards.Clear(); state.Danmus.Clear(); mBuffManager = new ZhiboBuffManager(this); mEmergencyManager = new ZhiboEmergencyManager(this); state.TurnLeft = 12; state.TurnTimeLeft = 30f; state.Score = 0; state.MaxScore = 100; state.Qifen = 300; state.Tili = 10; spdRate = 1.0f; lastTick = 0; nextTick = 0; bigOneNext = 3; bigOneCount = 0; LoadDanmuDict(); LoadCard(); mUICtrl = mUIMgr.ShowPanel("ZhiboPanel") as ZhiboUI; //NextTurn(); NextTurnCaller(); }