예제 #1
0
        public MainWindow()
        {
            InitializeComponent();
            Pages.EditPage  editPage  = new Pages.EditPage();
            Pages.FightPage fightPage = new Pages.FightPage();
            Pages.RegPage   regPage   = new Pages.RegPage(frame, editPage);
            frame.Navigate(regPage);
            //Player Insur = new Player("Insur", "Black");
            //Player Alexandr = new Player("Leha", "Red");

            //Alexandr.map.SetShip(5, 4, "right", 3);
            //Insur.map.SetShip(2, 1, "right", 3);

            //Alexandr.Ready = true;
            //Insur.Ready = true;

            //Insur.PlayerAtack(Alexandr, 3, 3);
            //Alexandr.PlayerAtack(Insur, 4, 4);
            //Insur.PlayerAtack(Alexandr, 6, 3);

            //MapShow(Insur, TextBlock);
            //MapShow(Alexandr, TextBlock1);
        }
예제 #2
0
 public RegPage(Frame frame, EditPage editPage)
 {
     this.editPage = editPage;
     this.frame    = frame;
     InitializeComponent();
 }