コード例 #1
0
ファイル: Entity.cs プロジェクト: mbbarange/Mascaret
 public PathSpecification getPath(string name)
 {
     if (Classifier.hasAttribute(name))
     {
         Slot prop = getProperty(name);
         if (prop != null)
         {
             return((PathSpecification)prop.getValue());
         }
     }
     return(null);
 }
コード例 #2
0
ファイル: Entity.cs プロジェクト: mbbarange/Mascaret
 public void setActiveShape(string name)
 {
     if (Classifier.hasAttribute(name))
     {
         Slot s = getProperty(name);
         if (s != null)
         {
             activeShape = (ShapeSpecification)s.getValue();
             if (activeShape != null)
             {
                 activeShape.setEntity(this);
             }
             else
             {
                 System.Console.WriteLine(this.name + ".setActiveShape(" + name + ") : the property is undefined");
             }
         }
     }
 }