Example #1
0
        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();
        }
Example #2
0
 public InteractionWitchFigure(FigureDataBase figureDataBase)
 {
     FigureDataBase = figureDataBase;
 }
Example #3
0
 public Element(PlayForm playForm, FigureDataBase figureDataBase)
 {
     PlayForm       = playForm;
     FigureDataBase = figureDataBase;
     Interaction    = new InteractionWitchFigure(figureDataBase);
 }