DoodleJump.GameMainWindow.StepsGet C# (CSharp) Method

StepsGet() private method

private StepsGet ( ) : void
return void
        private void StepsGet()
        {
            _steps = new List<Step>[_maxstep + 1];

            for (int j = 0; j <= _maxstep; j++)
            {
                _steps[j] = new List<Step>();
            }
            foreach (Control p in Controls)
            {
                if ((p.Name != DoodleJumper.Name) && (p.GetType() == typeof(Label)))
                {
                    for (int j = 0; j <= _maxstep; j++)
                    {
                        if (p.Top / ApplicationSettings.StepsCount == j)
                        {
                            _steps[j].Add(new Step(p.Location.X, p.Location.X + ApplicationSettings.StepsLength, p.Location.Y, (Label)p, p.BackColor == Color.Black, false));
                        }

                    }
                }

            }
        }