/* * 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); }
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(); }
// 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); } }
/* ***CONSTRUCTORS*** */ public AI(diff d) { random = new Random(); difficulty = d; time = new Stopwatch(); }