private bool searchPlaneNode(TreeNode <CreationTreeNode> current_node, CreationTreeNode value) { if (current_node.Value.Character == "a") { if (current_node.Parent.Parent.Value.MythObject == value.MythObject) { if (current_node.Parent.Value.Character == "p") { return(true); } else { return(false); } } else { return(false); } } else { return(false); } }
private bool compareNode(TreeNode <CreationTreeNode> current_node, CreationTreeNode tree_node_value) { if (current_node.Value.MythObject == tree_node_value.MythObject) { return(true); } else { return(false); } }
private void addDeityToCreationTree(TreeNode <CreationTreeNode> current_node, CreationTreeNode node) { if (current_node.Value.UnderConstruction) { if (current_node.Value.Creator == node.MythObject) { PrimordialForce taker = (PrimordialForce)node.MythObject; current_node.Value.MythObject = taker.CreadedDeity; current_node.Value.UnderConstruction = false; } } }