refactor EditController to make it stateful, and add addWayNodes functionality with...
[potlatch2.git] / net / systemeD / halcyon / connection / Entity.as
index 1e77bd0582798cd1235d245ff2e4f60271c70072..de2983a087f24a3870d057fa15cfcc019a290c6c 100644 (file)
@@ -31,8 +31,8 @@ package net.systemeD.halcyon.connection {
             return _loaded;
         }
 
-               public function updateEntityProperties(v:uint,t:Object,l:Boolean):void {
-                       _version=v; tags=t; _loaded=l;
+               public function updateEntityProperties(version:uint, tags:Object, loaded:Boolean):void {
+                       _version=version; this.tags=tags; _loaded=loaded;
                }
 
                // Tag-handling methods
@@ -140,7 +140,11 @@ package net.systemeD.halcyon.connection {
                        for (var o:Object in parents) { a.push(o); }
                        return a;
                }
-
+               
+               public function hasParent(entity:Entity):Boolean {
+            return parents[entity] == true;
+        }
+        
                // To be overridden
 
         public function getType():String {