private void MoveNorthButton_Click(object sender, RoutedEventArgs e) { if (_gameSessionViewModel.CurrentLocation.XCORD == 1) { if (_gameSessionViewModel.CurretLocation.XP > 10) { _gameSessionViewModel.MoveNorth(); CurrentLocationName.Text = _gameSessionViewModel.CurrentLocationName; MessageBox.Text = _gameSessionViewModel.CurrentLocation.Message; EastLocation.Visibility = Visibility.Hidden; WestLocation.Visibility = Visibility.Hidden; MoveEastButton.IsEnabled = false; MoveWestButton.IsEnabled = false; } else { MessageBox.Text = "Allas! \n\nYour XPs are less than 10 and you do not have enough allies"; } } else { if (NorthLocation.Text == "Location Not Accessible") { MessageBox.Text = "Selected Location is Not Accessible"; } else { _gameSessionViewModel.MoveNorth(); CurrentLocationName.Text = _gameSessionViewModel.CurrentLocationName; MessageBox.Text = _gameSessionViewModel.CurrentLocation.Message; } } }
private void NorthTravelButton_Click(object sender, RoutedEventArgs e) { _gameSessionViewModel.MoveNorth(); }
private void MoveNorthButton_Click(object sender, RoutedEventArgs e) { _gameSessionViewModel.MoveNorth(); CurrentLocationName.Text = _gameSessionViewModel.CurrentLocationName; }