public GameStatsDisplay(PlayerHMI player) { InitializeComponent(); _player = player; _actionPoints.SetBinding(Label.ContentProperty, new Binding("Action") { Source = _player.Joueur }); _spaceshipsNumber.SetBinding(Label.ContentProperty, new Binding("SpaceshipsOwned") { Source = _player }); }
/// <summary> /// Function using DAL class to create Uris for map sprites /// </summary> private void LoadAssets() { Dictionary <string, Uri> tempPathes = new Dictionary <string, Uri>(); _unitsFileLoader = new ImageLoader(_path + "\\files\\images\\question_mark.png"); _unitsFileLoader.Load(unitsNames, _path + "\\files\\images\\sprites\\"); _hexagonsFileLoader = new ImageLoader(_path + "\\files\\images\\question_mark.png"); _hexagonsFileLoader.Load(hexagonsNames, _path + "\\files\\images\\sprites\\hexagons\\"); //------------------------------------------------------------------------------------// _game = new Game(new Jeu(), this); _map = _game.Map; _player = new PlayerHMI(new Joueur(_map.Map)); UnitFactory.AddFileLoader(_unitsFileLoader); UnitFactory.AddMap(_map); _urisLoaded = true; }