public static bool HasSameColor(this TraitsOfTile self, TraitsOfTile actualColorFlag) { return((!self.IsNone() && !actualColorFlag.IsNone()) && self.HasFlag(actualColorFlag.GetColorsFlags()));//&& ((self & actualColorFlag) == actualColorFlag) }
public static bool IsRock(this TraitsOfTile self) { return(self.HasFlag(TraitsOfTile.Rock)); }
public static bool IsBonus(this TraitsOfTile self) { return(self.HasFlag(TraitsOfTile.BonusHorizontal) || self.HasFlag(TraitsOfTile.BonusVertical)); }
public static bool IsTileNotSelectable(this TraitsOfTile self) { return(self.HasFlag(TraitsOfTile.Diamond) || self.HasFlag(TraitsOfTile.Rock) || self == TraitsOfTile.None); }