public ViewModelResultGame(ViewModelMainWindow mainWindow, int winner, Game g)
 {
     this.refMain  = mainWindow;
     winMess       = "Winner : " + g.ListPlayer[winner].Name;
     this.endGame  = g;
     this.winnerNb = winner;
 }
Exemple #2
0
 public ViewModelGame(Game g, ViewModelMainWindow main)
 {
     this.mainRef = main;
     game         = g;
     fightingBox  = "";
     itemList     = new ObservableCollection <ITile>();
 }
Exemple #3
0
 public ViewModelReplayGame(Game g, ViewModelMainWindow mainWindow) : base(g, mainWindow)
 {
     objThread = new ReplayAuxThread(this);
     auxThread = new Thread(objThread.DoWork);
     IsPlaying = false;
     ReloadMap();
     OnPropertyChanged("PlayOrPause");
 }
 public ViewModelSelectPlayerInfo(ViewModelMainWindow mainWindow, GameBuilder gb)
 {
     this.refMain     = mainWindow;
     this.gameBuilder = gb;
     player1          = new Player("Joueur 1", "centaur");
     player2          = new Player("Joueur 2", "cyclops");
     cmbContent       = new List <String>();
     cmbContent.Add("centaur");
     cmbContent.Add("cerberus");
     cmbContent.Add("cyclops");
 }
Exemple #5
0
 public ViewModelNewGame(ViewModelMainWindow mainWindow)
 {
     this.refMain = mainWindow;
     gb           = new GameBuilderUnsaved();
 }
Exemple #6
0
 public ViewModelGamePlay(Game g, ViewModelMainWindow main) : base(g, main)
 {
     this.Game = g;
     ReloadMap();
 }
 public ViewModelMainPage(ViewModelMainWindow mainWindow)
 {
     this.refMain = mainWindow;
 }