Beispiel #1
0
 public static void AssignColor([Domain("triangle")] Side s, [Domain("colors")] Color c)
 {
     s.color = c;
 }
Beispiel #2
0
 public static bool AssignColorEnabled(Side s)
 {
     return((mode == Mode.Coloring) && (s.color.Equals(Color.unassigned)));
 }
Beispiel #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;
 }