add the ability to lock entities against purging
[potlatch2.git] / net / systemeD / halcyon / connection / Way.as
index d64dec43bdbe89a91af926413eee0ac0c8d2da41..8ca13f2c0031db3f5738e6bb6f36f337cadd0497 100644 (file)
@@ -81,6 +81,13 @@ package net.systemeD.halcyon.connection {
                public function hasOnceOnly(node:Node):Boolean {
                        return nodes.indexOf(node)==nodes.lastIndexOf(node);
                }
+               
+               public function hasLockedNodes():Boolean {
+                       for each (var node:Node in nodes) {
+                               if (node.locked) { return true; }
+                       }
+                       return false;
+               }
 
                public function removeNode(node:Node, performAction:Function):void {
                        performAction(new RemoveNodeFromWayAction(this, node, nodes));