Ejemplo n.º 1
0
        public override string ToString()
        {
            StringBuilder builder = new StringBuilder();

            if (IsSet || HasSalt || HasFlint)
            {
                builder.Append(Found.ToString());
                if (HasSalt)
                {
                    builder.Append(", Salt");
                }
                if (HasFlint)
                {
                    builder.Append(", Flint");
                }
            }
            else if (IsUndecided)
            {
                bool first = true;
                foreach (Detected d in TileEstimate.Estimates)
                {
                    if (first)
                    {
                        first = false;
                    }
                    else
                    {
                        builder.Append(", ");
                    }
                    builder.Append(d);
                }
            }
            else
            {
            }
            return(builder.ToString());
        }