public PlayForm(Form mainForm) { _mainForm = mainForm; FigureDataBase = new FigureDataBase(this); Elements = new Element(this, FigureDataBase); InitializeComponent(); this.Width = _width + 300; this.Height = _height + 45; MapGenerate(); FigureDataBase.ArraysGenerate(); _timer = new Timers.Timer { AutoReset = true, Interval = 1000, Enabled = true }; _timer.Elapsed += TimerTick; _timer.Start(); }
public InteractionWitchFigure(FigureDataBase figureDataBase) { FigureDataBase = figureDataBase; }
public Element(PlayForm playForm, FigureDataBase figureDataBase) { PlayForm = playForm; FigureDataBase = figureDataBase; Interaction = new InteractionWitchFigure(figureDataBase); }