예제 #1
0
        public bool Equals(Replay r)
        {
            // If parameter is null return false:
            if ((object)r == null)
            {
                return(false);
            }

            if (!GameInit.Equals(r.GameInit))
            {
                return(false);
            }
            if (!CompareUtil.compareListCommand(CommandList, r.CommandList))
            {
                return(false);
            }

            // Return true if the fields match:
            return(true);
        }