Esempio n. 1
0
 public Control(int width, int height)
 {
     view   = new View(width, height);
     Width  = width;
     Height = height;
     view.InitEvent(KeyDown, MouseDown, MouseUp, MouseMove);
     view.ClearConsole();
     MapForPiсk  = new Map[5];
     seeds       = new int[5];
     HintMessage = new List <string>();
     HintMessage.Add(Messages.WumpusHint);
     HintMessage.Add(Messages.PitHint);
     HintMessage.Add(Messages.BatHint);
     HintMessage.Add(Messages.BadLuckHint);
 }
Esempio n. 2
0
 void NewGame()
 {
     for (int i = 0; i < 5; ++i)
     {
         seeds[i] = Utily.Next();
         Utily.ChangeSeed(seeds[i]);
         MapForPiсk[i] = new Map();
     }
     numPickCave   = 0;
     numDiff       = 1;
     MiniGameEnd   = true;
     minigame      = new MiniGame(Width, Height);
     player        = new Player();
     score         = new Scores(Width, Height);
     score.active  = ScoreState.Achievements;
     CheckDanger   = false;
     IsWin         = false;
     StoryMiniGame = StoryMG.Empty;
     view.UpdateImage();
     view.ClearConsole();
     seed        = "";
     state       = ControlState.PickCave;
     UseMiniGame = false;
 }