Exemplo n.º 1
0
 public void TimerElapsed(object sender, ElapsedEventArgs e)
 {
     CurrentEvents.cleanUpEvents();
     _outputConsole.Clear();
     RenderEvents();
     RenderTracks();
 }
Exemplo n.º 2
0
        public void ShowFieldState(List <IAnimal> animals)
        {
            _stringDrawer.FillRectWithSymbol(INDENT_HORIZONTAL, INDENT_VERTICAL,
                                             _field.Size.X, _field.Size.Y, Constants.EMPTY_SYMBOL);

            foreach (var animal in animals)
            {
                _stringDrawer.PutSymbol(INDENT_HORIZONTAL + animal.Position.X, INDENT_VERTICAL + animal.Position.Y, _animalSymbolProvider.GetSymbol(animal.GetType()));
            }

            _consoleOutput.Clear();
            _consoleOutput.Write(_fieldAsStringBuilder.ToString());
        }
Exemplo n.º 3
0
 private void Clear()
 {
     consoleOutput.Clear();
 }