Beispiel #1
0
 public End(IQuickMenu menu, IXleGameControl gameControl, XleSystemState systemState, IGamePersistance gamePersistance)
 {
     this.menu            = menu;
     this.gameControl     = gameControl;
     this.systemState     = systemState;
     this.gamePersistance = gamePersistance;
 }
Beispiel #2
0
        public FileMenu(IGamePersistance gamePersistance)
        {
            files.AddRange(gamePersistance.FindExistingGames());

            filesWindow.Location = new Point(11, 8);

            Windows.Add(filesWindow);
        }
Beispiel #3
0
        public NewGame(IGamePersistance gamePersistance)
        {
            Colors.BackColor           = XleColor.Green;
            Colors.FrameColor          = XleColor.LightGray;
            Colors.FrameHighlightColor = XleColor.Yellow;
            Colors.BorderColor         = XleColor.LightGreen;

            Title = " Start a new game ";

            ResetUpperWindow();
            ResetLowerWindow();
            ResetEntryWindow();

            Windows.Add(upperWindow);
            Windows.Add(lowerWindow);
            Windows.Add(entryWindow);
            this.gamePersistance = gamePersistance;
        }
Beispiel #4
0
        public Introduction(string enteredName, LotaStory story, IGamePersistance gamePersistance)
        {
            this.enteredName = enteredName;
            Title            = " start a new game ";

            Colors.BorderColor         = XleColor.Blue;
            Colors.BackColor           = XleColor.DarkGray;
            Colors.FrameColor          = XleColor.LightGray;
            Colors.FrameHighlightColor = XleColor.Yellow;

            Windows.Add(window);
            window.Location = new Point(2, 4);

            SetFirstWindow();

            this.story           = story;
            this.gamePersistance = gamePersistance;
            Prompt = "(Press key/button to continue)";
        }
Beispiel #5
0
        public LoadGame(IGamePersistance gamePersistance) : base(gamePersistance)
        {
            Colors.FrameColor          = XleColor.LightGray;
            Colors.FrameHighlightColor = XleColor.Yellow;
            Colors.BackColor           = XleColor.Brown;
            Colors.BorderColor         = XleColor.Red;

            Title = " Restart a game ";

            var instruction = new TextWindow();

            instruction.Location = new Point(3, 21);
            instruction.WriteLine("(Select by joystick or number keys)", XleColor.Yellow);

            Windows.Add(instruction);

            var prompt = new TextWindow();

            prompt.Location = new Point(9, 5);
            prompt.WriteLine("Restart which character?");

            Windows.Add(prompt);
            this.gamePersistance = gamePersistance;
        }