Exemplo n.º 1
0
 /*
  *  Adds results of current game to History data. Is called by another script
  *  upon completion of the level.
  */
 public void addResult(diff difficulty, int score, int time, int coll)
 {
     diffs.Add(difficulty);
     scores.Add(score);
     times.Add(time);
     collisions.Add(coll);
 }
Exemplo n.º 2
0
        public void Main(string[] args)
        {
            diff sam = new diff();
            nest n   = new nest();

            nest.inner ni = new nest.inner();
            ni.innermethod();

            Console.WriteLine(nest.inner.x);
            sam.sample();
        }
Exemplo n.º 3
0
 // Menu functions
 private void choiceDiff()
 {
     if (currentDiff == diff.Easy)
     {
         currentDiff          = diff.Medium;
         Difficulty.Text      = "Difficulty : Medium";
         chooseMap.currentMap = ChooseMap.Maps.DuneMap;
         chooseMap.loadTileMap(chooseMap.currentMap);
     }
     else if (currentDiff == diff.Medium)
     {
         currentDiff          = diff.Hard;
         Difficulty.Text      = "Difficulty : Hard";
         chooseMap.currentMap = ChooseMap.Maps.StairMap;
         chooseMap.loadTileMap(chooseMap.currentMap);
     }
     else
     {
         currentDiff          = diff.Easy;
         Difficulty.Text      = "Difficulty : Easy";
         chooseMap.currentMap = ChooseMap.Maps.FlatMap;
         chooseMap.loadTileMap(chooseMap.currentMap);
     }
 }
Exemplo n.º 4
0
 /* ***CONSTRUCTORS*** */
 public AI(diff d)
 {
     random     = new Random();
     difficulty = d;
     time       = new Stopwatch();
 }