Beispiel #1
0
        public bool IsOn(ConsoleGameObject gameObject)
        {
            foreach (var segment in this.body)
            {
                if (segment.X == gameObject.X && segment.Y == gameObject.Y)
                {
                    return true;
                }
            }

            return false;
        }
        public bool IsOn(ConsoleGameObject gameObject)
        {
            foreach (var segment in this.body)
            {
                if (segment.X == gameObject.X && segment.Y == gameObject.Y)
                {
                    return(true);
                }
            }

            return(false);
        }