Пример #1
0
        /// <summary>
        /// The idea behind this function is that if there is no way for
        /// the player to tell the difference between two things, the parser
        /// should just randomly pick one when deciding how to parse the command.
        /// </summary>
        /// <param name="other"></param>
        /// <returns></returns>
        public virtual bool CannotBeDistinguishedFrom(Thing other)
        {
            if (this.GetType() != other.GetType()) {
                return false; }

            if (this.name != other.name) {
                return false; }

            return true;
        }