public Round(Game game) { passedTime = 0; this.game = game; currentWave = 0; this.unitFactory = game.unitFactory; activeUnits = new List<Unit>(); }
public Game(Canvas canvas) { this.canvas = canvas; isRunning = true; unitFactory = new UnitFactory(canvas); stateFactory = new RoundStateFactory(); Score.getInstance(); inputHandler = new InputHandler(this, InputContainer.getInstance()); //create rounds createRounds(); bw = new BackgroundWorker(); bw.ProgressChanged += bw_ProgressChanged; bw.WorkerReportsProgress = true; bw.DoWork += bw_DoWork; stopwatch = new Stopwatch(); bw.RunWorkerAsync(); }