Exemplo n.º 1
0
        public GameSessionViewModel(Player player, List <string> initialMessage, Map gameMap, GameSessionViewModel gameSessionViewModel)
        {
            _gameSessionViewModel = gameSessionViewModel;
            _player              = player;
            _gameMap             = gameMap;
            _currentLocation     = _gameMap.CurrentLocation;
            _accessobleLocations = new ObservableCollection <Location>();
            _messages            = initialMessage;

            InitializeView();
        }
Exemplo n.º 2
0
        public GameSessionViewModel(Player player, List <string> initialMessage, Map gameMap, GameSessionViewModel gameSessionViewModel)
        {
            _gameSessionViewModel = gameSessionViewModel;
            _player              = player;
            _gameMap             = gameMap;
            _currentLocation     = _gameMap.CurrentLocation;
            _accessobleLocations = new ObservableCollection <Location>();
            _messages            = initialMessage;
            MessageBoxContent    = "\tSelect a location to travel there.";

            player.Attack  = CalculateAttack();
            player.Defense = CalculateDefense();

            InitializeView();
        }
Exemplo n.º 3
0
        public GameSessionView(GameSessionViewModel gameSessionViewModel)
        {
            _gameSessionViewModel = gameSessionViewModel;

            InitializeComponent();
        }