Exemplo n.º 1
0
        public AoPlayer(PlayerBoard playerBoard, Base.LibGroup libGroup)
        {
            this.pb = playerBoard;
            this.Tuple = libGroup;

            Nick = "";
            Pets = new List<ushort>();

            TuxCount = 0;
            Weapon = 0;
            Armor = 0;
            Trove = 0;
            mExCards = new List<ushort>();
            Fakeq = new Dictionary<ushort, string>();
            Escue = new List<ushort>();
            Runes = new List<ushort>();
            mInLuggage = new List<string>();
            FolderCount = 0;

            Token = 0;
            //Peoples = new List<int>();
            mExSpCards = new List<string>();
            mPlayerTars = new List<ushort>();
            mMyFolder = new List<ushort>();
            mSkills = new List<string>();

            IsLoved = false;
            IsAlive = true;
            Immobilized = false;
            PetDisabled = false;
        }
Exemplo n.º 2
0
        private void Init()
        {
            ToolTipService.ShowDurationProperty.OverrideMetadata(
                typeof(DependencyObject), new FrameworkPropertyMetadata(Int32.MaxValue));
            PlayerBoard[] allBoards = new PlayerBoard[]{ yfPlayerO1,yfPlayerO2,
                yfPlayerO3, yfPlayerR1,yfPlayerR2,yfPlayerR3};

            foreach (PlayerBoard pb in allBoards)
            {
                pb.AD = this;
                pb.mainGrid.Checked += delegate(object sender, RoutedEventArgs e)
                {
                    if (selectedTarget != null && !selectedTarget.Contains(pb.AoPlayer.Rank))
                        selectedTarget.Add(pb.AoPlayer.Rank);
                };
                pb.mainGrid.Unchecked += delegate(object sender, RoutedEventArgs e)
                {
                    var st = selectedTarget;
                    if (st != null)
                        st.Remove(pb.AoPlayer.Rank);
                };
            }
            yfBag.AD = this;
            yfOrchis40.Orch.AD = this;
            yfPilesBar.Field.AD = this;
            yfSpeeder.AoDisplay = this;
            yfArena.AD = this;
            Mix = new AoMix(this);
            yfDeal.Visibility = Visibility.Hidden;
            yfMinami.Visibility = Visibility.Hidden;
            //selectedTarget = new ObservableCollection<ushort>();
            //selectedQard = new ObservableCollection<ushort>();
            ResetAllSelectedList();
        }
Exemplo n.º 3
0
 internal void LockSelectTarget()
 {
     PlayerBoard[] pbAll = new PlayerBoard[] {
         yfPlayerO1, yfPlayerO2, yfPlayerO3, yfPlayerR1, yfPlayerR2, yfPlayerR3 };
     foreach (PlayerBoard pb in pbAll)
     {
         if (selectedTarget.Contains(pb.AoPlayer.Rank))
             pb.SetTargetLock();
         else
         {
             pb.SetTargetActive(false);
             pb.SetTargetValid(true);
         }
     }
 }
Exemplo n.º 4
0
 //internal Image GetGivenTokenImage(ushort ut)
 //{
 //    PlayerBoard[] pbAll = new PlayerBoard[] {
 //        yfPlayerO1, yfPlayerO2, yfPlayerO3, yfPlayerR1, yfPlayerR2, yfPlayerR3 };
 //    foreach (PlayerBoard pb in pbAll)
 //    {
 //        if (pb.AoPlayer.Rank == ut)
 //            return pb.trGiven;
 //    }
 //    return null;
 //}
 internal StackPanel GetTokenStackPanel(ushort ut)
 {
     PlayerBoard[] pbAll = new PlayerBoard[] {
         yfPlayerO1, yfPlayerO2, yfPlayerO3, yfPlayerR1, yfPlayerR2, yfPlayerR3 };
     foreach (PlayerBoard pb in pbAll)
     {
         if (pb.AoPlayer.Rank == ut)
             return pb.tokenStack;
     }
     return null;
 }
Exemplo n.º 5
0
 internal void FinishSelectTarget()
 {
     PlayerBoard[] pbAll = new PlayerBoard[] {
         yfPlayerO1, yfPlayerO2, yfPlayerO3, yfPlayerR1, yfPlayerR2, yfPlayerR3 };
     foreach (PlayerBoard pb in pbAll)
     {
         pb.mainGrid.IsChecked = false;
         pb.SetTargetActive(false);
         pb.SetTargetValid(true);
     }
 }
Exemplo n.º 6
0
 internal void FinishSelectPT()
 {
     PlayerBoard[] pbs = new PlayerBoard[] { yfPlayerR1, yfPlayerR2,
         yfPlayerR3, yfPlayerO1, yfPlayerO2, yfPlayerO3 };
     foreach (PlayerBoard pb in pbs)
     {
         pb.ResumePets();
         RmvTVDict(pb.AoPlayer.Rank + "SPT");
     }
 }