Esempio n. 1
0
        public void Overhead(MiMFa_Dynasty grandParent)
        {
            MiMFa_Dynasty dyn = this;

            while (dyn.Parent != null)
            {
                dyn = dyn.Parent;
            }
            dyn.Parent = grandParent;
        }
Esempio n. 2
0
        public static bool IsGrandParent(MiMFa_Dynasty inThisParent, double thisDynastyID)
        {
            MiMFa_Dynasty dyn = inThisParent;

            while (dyn != null)
            {
                if (dyn.ID == thisDynastyID)
                {
                    return(true);
                }
                else
                {
                    dyn = dyn.Parent;
                }
            }
            return(false);
        }
Esempio n. 3
0
 public static bool IsGrandParent(MiMFa_Dynasty inThisParent, MiMFa_Dynasty thisDynasty)
 {
     return(IsGrandParent(inThisParent, thisDynasty.ID));
 }
Esempio n. 4
0
 public bool IsGrandParent(MiMFa_Dynasty dynasty)
 {
     return(IsGrandParent(dynasty.ID));
 }
Esempio n. 5
0
 public void Append(MiMFa_Dynasty grandChildren)
 {
     this.Childs.Add(grandChildren);
 }