예제 #1
0
 public static void AssignColor([Domain("triangle")] Side s, [Domain("colors")] Color c)
 {
     s.color = c;
 }
예제 #2
0
 public static bool AssignColorEnabled(Side s)
 {
     return((mode == Mode.Coloring) && (s.color.Equals(Color.unassigned)));
 }
예제 #3
0
 static void Init()
 {
     triangle = new Set <Side>(Side.Create(), Side.Create(), Side.Create());
     colors   = new Set <Color>(Color.BLUE, Color.RED);
     mode     = Mode.Coloring;
 }