Ejemplo n.º 1
0
        private void RefreshPlayerInfo()
        {
            var Fighting = FollowerCollectLogic.GetAttack(PlayerObject.Instance.Self.FightFollower);
            var Money    = PlayerObject.Instance.Self.Money;
            var Exp      = PlayerObject.Instance.Self.Exp;

            EditNode.Text = string.Format("战斗力: + {0} +  金币 + {1} + 经验 + {2}", Fighting, Money, Exp);
        }
Ejemplo n.º 2
0
        private void RefreshPlayerInfo()
        {
            Fighting  = FollowerCollectLogic.GetAttack(PlayerObject.Instance.Self.FightFollower);
            CurrMoney = PlayerObject.Instance.Self.Money;
            CurrExp   = PlayerObject.Instance.Self.Exp;

            PlayerInfoLabel.Text = string.Format("战斗力 : {0} 金币 : {1} 经验 : {2}", Fighting, CurrMoney, CurrExp);
        }
Ejemplo n.º 3
0
 public NormalFight(FollowerCollect partyA, FollowerCollect partyB, FightEventDelegate process)
 {
     PartyA       = partyA;
     PartyB       = partyB;
     ProcessEvent = process;
     Damage       = new List <int>()
     {
         FollowerCollectLogic.GetAttack(partyA),
         FollowerCollectLogic.GetAttack(partyB)
     };
     AllHp     = new List <int>(Damage.ToArray());
     CurHp     = new List <int>(Damage.ToArray());
     CurAttack = Damage[0] >= Damage[1] ? 0 : 1;
 }
Ejemplo n.º 4
0
        public override void OnEnter()
        {
            base.OnEnter();

            RefreshPlayerInfo();
            RefreshMapInfo();
            RegisterEvent();

            var need   = FarmMapLogic.Requirement(PlayerObject.Instance.Self.CurrLevel);
            var attget = FollowerCollectLogic.GetAttack(PlayerObject.Instance.Self.FightFollower);

            if (need <= attget)
            {
                Schedule(OnTimerAnimation, 1.0f);
            }
            dispatcher.AttachListener(this);
        }