示例#1
0
 public ViewModelResultGame(ViewModelMainWindow mainWindow, int winner, Game g)
 {
     this.refMain  = mainWindow;
     winMess       = "Winner : " + g.ListPlayer[winner].Name;
     this.endGame  = g;
     this.winnerNb = winner;
 }
示例#2
0
 public ViewModelGame(Game g, ViewModelMainWindow main)
 {
     this.mainRef = main;
     game         = g;
     fightingBox  = "";
     itemList     = new ObservableCollection <ITile>();
 }
示例#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");
 }
示例#5
0
 public ViewModelNewGame(ViewModelMainWindow mainWindow)
 {
     this.refMain = mainWindow;
     gb           = new GameBuilderUnsaved();
 }
示例#6
0
 public ViewModelGamePlay(Game g, ViewModelMainWindow main) : base(g, main)
 {
     this.Game = g;
     ReloadMap();
 }
示例#7
0
 public ViewModelMainPage(ViewModelMainWindow mainWindow)
 {
     this.refMain = mainWindow;
 }