/// <summary> /// initialize the game /// </summary> private void InitializeGame() { _usingGame = true; _gameKingdom = new Kingdom(); _gameOgre = new Ogre(); _gameConsoleView = new ConsoleView(_gameOgre, _gameKingdom); _gameDragon = new Dragon(); }
public static List <string> StatusBox(Player player, Kingdom kingdom) { List <string> statusBoxText = new List <string>(); statusBoxText.Add($"Experience Points: {player.ExperiencePoints}\n"); statusBoxText.Add($"Health: {player.Health}\n"); statusBoxText.Add($"Lives: {player.Lives}\n"); return(statusBoxText); }
/// <summary> /// initialize the major game objects /// </summary> private void InitializeGame() { _gamePlayer = new Player(); _gameKingdom = new Kingdom(); _gameConsoleView = new ConsoleView(_gamePlayer, _gameKingdom); _playingGame = true; // //add initial items to player inventory // _gamePlayer.Inventory.Add(_gameKingdom.GetGameObjectById(12) as PlayerObject); _gamePlayer.MapLocationID = 1; Console.CursorVisible = false; }