Beispiel #1
0
        public GameFieldModel(Game game, GameStateInfo gameStateInfo)
        {
            serverWorker       = ServerWorker.GetServerWorker();
            this.Game          = game;
            this.GameStateInfo = gameStateInfo;

            FillGameTrajectory();
        }
Beispiel #2
0
 public GameControlsModel(GameFieldModel gameFieldModel)
 {
     this.gameFieldModel = gameFieldModel;
     serverWorker        = ServerWorker.GetServerWorker();
     _ = Prepare();
     gameFieldModel.PropertyChanged += (obj, args) => {
         if (args.PropertyName == "TurnState")
         {
             PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("TurnState"));
         }
     };
 }
Beispiel #3
0
 public GameHistoryModel()
 {
     serverWorker = ServerWorker.GetServerWorker();
 }
Beispiel #4
0
 public UserModel()
 {
     serverWorker  = ServerWorker.GetServerWorker();
     IsGameStarted = false;
 }
Beispiel #5
0
 public StandingsModel()
 {
     serverWorker = ServerWorker.GetServerWorker();
     _            = UpdateModelStandings();
 }
 public RealPlayerChoiceModel()
 {
     serverWorker = ServerWorker.GetServerWorker();
 }