basic multipolygon rendering
[potlatch2.git] / net / systemeD / halcyon / connection / Relation.as
index 6049c458b555a87cbcbbd07a3a8e11071508a894..5cab4047149e9046a8884735b8b5761e34f77b2d 100644 (file)
@@ -60,6 +60,14 @@ package net.systemeD.halcyon.connection {
                        markDirty();
         }
 
+               public function findMembersByRole(role:String):Array {
+                       var a:Array=[];
+            for (var index:uint = 0; index < members.length; index++) {
+                if (members[index].role==role) { a.push(members[index].entity); }
+            }
+                       return a;
+               }
+
         public function insertMember(index:uint, member:RelationMember, performAction:Function):void {
             performAction(new AddMemberToRelationAction(this, index, member, members));
         }