Example #1
0
        public void Overhead(MiMFa_Dynasty grandParent)
        {
            MiMFa_Dynasty dyn = this;

            while (dyn.Parent != null)
            {
                dyn = dyn.Parent;
            }
            dyn.Parent = grandParent;
        }
Example #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);
        }
Example #3
0
 public static bool IsGrandParent(MiMFa_Dynasty inThisParent, MiMFa_Dynasty thisDynasty)
 {
     return(IsGrandParent(inThisParent, thisDynasty.ID));
 }
Example #4
0
 public bool IsGrandParent(MiMFa_Dynasty dynasty)
 {
     return(IsGrandParent(dynasty.ID));
 }
Example #5
0
 public void Append(MiMFa_Dynasty grandChildren)
 {
     this.Childs.Add(grandChildren);
 }