public void Step()
        {
            SubCheckLines.UnionWith(CheckLines);
            CheckLines.Clear();
            foreach (var CheckLine in SubCheckLines)
            {
                CheckLine.Step();
            }
            SubCheckLines.Clear();

            foreach (var CheckLoc in CheckLocations)
            {
                CheckLoc.Process();
            }
            CheckLocations.Clear();
        }
Exemple #2
0
        public void Step()
        {
            SubCheckLines.UnionWith(CheckLines);
            CheckLines.Clear();
            foreach (var CheckLine in SubCheckLines)
            {
                CheckLine.Step();
            }
            SubCheckLines.Clear();

            foreach (var explosionNode in CheckLocations.ToArray())
            {
                CheckLocations.Remove(explosionNode);                 //lets not create infinite explosions in the case of a runtime
                explosionNode.Process();
            }
        }