public End(IQuickMenu menu, IXleGameControl gameControl, XleSystemState systemState, IGamePersistance gamePersistance) { this.menu = menu; this.gameControl = gameControl; this.systemState = systemState; this.gamePersistance = gamePersistance; }
public FileMenu(IGamePersistance gamePersistance) { files.AddRange(gamePersistance.FindExistingGames()); filesWindow.Location = new Point(11, 8); Windows.Add(filesWindow); }
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; }
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)"; }
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; }