Пример #1
0
        public SplashScreen(DelegateCreateOutputMethod createView)
        {
            this.createView = createView;

            intro = new string[]
            {
                "\n\n                ____              _ _ ____\n",
                "               / ___| _ __   __ _(_) |  _ \\ __ _  ___ ___\n",
                "               \\___ \\| '_ \\ / _` | | | |_) / _` |/ __/ _ \\\n",
                "                ___) | | | | (_| | | |  _ < (_| | (_|  __/\n",
                "               |____/|_| |_|\\__,_|_|_|_| \\_\\__,_|\\___\\___|\n",
                "\n\n",
                "                          Press any key to begin..."
            };

            gameOver = new string[]
            {
                "\n\n                ____                         ___\n",
                "               / ___| __ _ _ __ ___   ___   / _ \\__   _____ _ __\n",
                "              | |  _ / _` | '_ ` _ \\ / _ \\ | | | \\ \\ / / _ \\ '__|\n",
                "              | |_| | (_| | | | | | |  __/ | |_| |\\ V /  __/ |\n",
                "               \\____|\\__,_|_| |_| |_|\\___|  \\___/  \\_/ \\___|_|\n",
                "\n\n",
                "                          Sorry, you ran out of money!\n",
                "\n",
                "                             (Press any key to exit)"
            };
        }
Пример #2
0
        public RaceViewer(int speed, DelegateCreateOutputMethod createView)
        {
            this.speed = speed;
            this.createView = createView;

            this.startLine  = new string[] { "S", "T", "A", "R", "T" };
            this.finishLine = new string[] { " ", "E", "N", "D" };
            this.topMargin  = "\n\n\n\n";
            this.leftMargin = "          ";

            this.drawTrackLock = new object();
        }
Пример #3
0
 public BookieInput(DelegateCreateBet createBet, DelegateCreateOutputMethod createView)
 {
     this.createBet  = createBet;
     this.createView = createView;
     this.leftMargin = "          ";
 }