コード例 #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);
 }