private void BattleWindowOpener(string firstName, string secondName, List <List <bool> > FirstPlayerMatrix, List <List <bool> > SecondPlayerMatrix, bool hasBot) { BattleFieldWindow battleFieldWindow = new BattleFieldWindow(firstName, secondName, FirstPlayerMatrix, SecondPlayerMatrix, hasBot); battleFieldWindow.Owner = Application.Current.MainWindow; battleFieldWindow.Show(); }
/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { // TODO: Add your initialization logic here player = new Creature("Player", "Player", 50, 50, 5); enemy = new Creature("Enemy", "Enemy", 50, 50, 4); battleFieldWindow = new BattleFieldWindow(new Rectangle(350, 100, 800, 500)); battleFieldWindow.Initialize(player, enemy); base.Initialize(); }