/** * Convenience method to remove the first occurence of the MapNode from the nodes list. Null parameters are not allowed. * If the list is null, just return false. * * * @return True if removed. False otherwise * @param node The MapNode to remove from the nodes list * @throws ArgumentNullException If node is null */ public bool RemoveNode(MapNode node) { return(nodes.Remove(node)); }
/** * Convenience method to remove the first occurence of the MapNode from the containedNodes list. Null parameters are not allowed. * If the list is null, just return false. * * * @return True if removed. False otherwise * @param node The MapNode to remove from the containedNodes list * @throws ArgumentNullException If node is null */ public bool RemoveContainedNode(MapNode node) { return(containedNodes.Remove(node)); }
/** * Convenience method to add a MapNode to the nodes list. Null parameters are not allowed. * If the list is null, just create a new instance and add to it. * * * @param node The MapNode to add to the nodes list * @throws ArgumentNullException If node is null */ public void AddNode(MapNode node) { nodes.Add(node); }
/** * Convenience method to add a MapNode to the containedNodes list. Null parameters are not allowed. * If the list is null, just create a new instance and add to it. * * * @param node The MapNode to add to the containedNodes list * @throws ArgumentNullException If node is null */ public void AddContainedNode(MapNode node) { containedNodes.Add(node); }