Ejemplo n.º 1
0
        public void Draw(IGraphics graphics)
        {
            switch (status)
            {
            case GameManagerStatus.Title:
                title.Draw(graphics);
                break;

            case GameManagerStatus.Game:
                game.Draw(graphics);
                break;

            case GameManagerStatus.BossEnd:
                graphics.SetColor(255, 255, 255, 255);
                graphics.DrawRectangle(0, 0, Game.FieldWidth, Game.FieldHeight);
                break;

            case GameManagerStatus.GameOver:
                game.Draw(graphics);
                gameOver.Draw(graphics);
                break;

            case GameManagerStatus.Ranking:
                ranking.Draw(graphics);
                break;
            }
        }