Ejemplo n.º 1
0
        public Schnittstelle()
        {
            this.MyZustand = Schnittstelle.Zustand.KeinKampf;

            this.SuspendLayout();

            Konsole = new Konsole();
            SituationAuswahl = new SituationAuswahl(this);
            KampfBild = new KampfBild(this);
            Grafik = KampfBild.Grafik;
            SheduleText = new Label();
            SheduleText.AutoSize = true;
            ScrollSchedule = new ScrollBox(SheduleText);

            Timer = new Timer();
            Timer.Interval = 1000 / 60;
            Timer.Tick += (sender, e) => KampfBild.Mal();

            Controls.Add(ScrollSchedule);
            Controls.Add(KampfBild);
            Controls.Add(SituationAuswahl);
            Controls.Add(Konsole);

            this.ResumeLayout(false);
            this.ClientSize = new Size(1000, 1000);
            this.StartMenu = new StartMenu(this);
            this.ViewMenu = new ViewMenu(this);
            this.ZugMenu = new FigurZugMenu(this);
            this.MausZielMenu = new MausZielMenu(this);
            this.ShowMenu(StartMenu);
        }
Ejemplo n.º 2
0
 public Grafik(KampfBild KampfBild)
 {
     Font = new Font("Calibri", 15);
     SmallFont = new Font("Calibri", 11);
     this.KampfBild = KampfBild;
 }