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

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