Exemplo n.º 1
0
 public void ChangeParentTo(Formation newParent)
 {
     if (newParent != null)
     {
         newParent.AddSubFormation(this);
     }
     else
     {
         if (GetParentFormation() != null)
         {
             GetParentFormation().RemoveSubFormation(this);
         }
     }
 }
Exemplo n.º 2
0
 private void RemoveSubFormation(Formation child)
 {
     child.Internal_SetParentFormation(null);
     GetSubFormations().Remove(child);
 }
Exemplo n.º 3
0
 public void Internal_SetParentFormation(Formation newParent)
 {
     _parent.Value = newParent;
 }