+bool LinkedColorsCondition::equals(const Condition &other) const
+{
+ const LinkedColorsCondition *other_linked = dynamic_cast<const LinkedColorsCondition *>(&other);
+ if(!other_linked)
+ return false;
+
+ for(unsigned i=0; i<7; ++i)
+ {
+ if(colors.colors[i]!=other_linked->colors.colors[i])
+ return false;
+ if(!colors.colors[i])
+ break;
+ }
+
+ return true;
+}
+