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