Ejemplo n.º 1
0
 public CharacterCreation(ref Player p1)
 {
     InitializeComponent();
     this.p1 = p1;
     playerStats.DataContext = p1;
     characterName.DataContext = p1;
     completeButton.IsEnabled = false;
 }
Ejemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();
            p1 = new Player();
            hookUpInterface();

            
            startGame();
        }
Ejemplo n.º 3
0
 public CombatGUI(ref FinalGame.Classes.Character.Player p1, int floorNumber)
 {
     InitializeComponent();
     this.p1          = p1;
     this.floorNumber = floorNumber;
     BossFloor        = floorNumber % 5 == 0;
     generateMonster();
     generateBack();
 }
Ejemplo n.º 4
0
 public CombatGUI(ref FinalGame.Classes.Character.Player p1, int floorNumber)
 {
     InitializeComponent();
     this.p1 = p1;
     this.floorNumber = floorNumber;
     BossFloor = floorNumber % 5 == 0;
     generateMonster();
     generateBack();
 }
Ejemplo n.º 5
0
        public void startNewGame()
        {
            if (playSound)
            {
                sp.SoundLocation = "Resources/HDATE Main Theme.wav";
                sp.PlayLooping();
            }
            currentScene = Scenes.CharacterCreation;

            p1 = new Player();
            hookUpInterface();


            clearPlayArea();
            screenArea.Children.Add(charCreation);
        }
Ejemplo n.º 6
0
 private void loadGame_Click(object sender, RoutedEventArgs e)
 {
     sp.Stop();
     p1 = loadPlayer();
     if(p1 != null)
         startLoadedGame();
 }