private void setUpPage() { //Idle Animation Begin IdleAnimation.Begin(); //Create Monster and Player value Enemy = new Monster("Axalf", "Dire Dimunitive Drawf", 50, 20); You = new Player("You", 100, 50); //Creating and adding attacks to monster Attack Bite = new Attack("Bite", 1, 10, 18); Attack Stomp = new Attack("Stomp", 5, 10, 15); Enemy.addAttack(Bite); Enemy.addAttack(Stomp); //Creating and adding items to player Item Potion = new Item("Potion", 20); Item MegaPotion = new Item("Mega Potion", 50); You.addItem(Potion); You.addItem(MegaPotion); //Creating and adding spells to player Spell Fire = new Spell("Fire", 2, 7, 20, 10); Spell Thunder = new Spell("Thunder", 3, 10, 18, 15); You.addSpell(Fire); You.addSpell(Thunder); //Display Monster and Player value pageTitle.Text = Enemy.getSubtitle() + ": " + Enemy.getName(); monsterName.Text = Enemy.getName(); monsterHPText.Text = Enemy.getHPStart().ToString(); monsterMPText.Text = Enemy.getMPStart().ToString(); yourName.Text = You.getName(); yourHPText.Text = You.getHPStart().ToString(); yourMPText.Text = You.getMPStart().ToString(); }
private void setUpPage() { //Idle Animation Begin IdleAnimation.Begin(); //Create Monster and Player value Enemy = new Monster("Alondite", "Elder Lord", 200, 20); You = new Player("You", 100, 100); //Creating and adding attacks to monster Attack Smash = new Attack("Smash", 1, 10, 15); Attack Crush = new Attack("Crush", 2, 10, 20); Attack Obliterate = new Attack("Obliterate", 1, 20, 20); Attack Claw = new Attack("Claw", 3, 10, 15); Enemy.addAttack(Smash); Enemy.addAttack(Crush); Enemy.addAttack(Obliterate); Enemy.addAttack(Claw); //Creating and adding items to player Item Potion = new Item("Potion", 20); Item MegaPotion = new Item("Mega Potion", 50); Item UltraPotion = new Item("Ultra Potion", 100); You.addItem(Potion); You.addItem(Potion); You.addItem(Potion); You.addItem(MegaPotion); You.addItem(MegaPotion); You.addItem(UltraPotion); You.addItem(UltraPotion); //Creating and adding spells to player Spell Fire = new Spell("Fire", 2, 15, 25, 15); Spell Water = new Spell("Water", 3, 20, 30, 20); Spell Earth = new Spell("Earth", 3, 25, 35, 25); Spell Air = new Spell("Air", 3, 30, 40, 30); You.addSpell(Fire); You.addSpell(Water); You.addSpell(Earth); You.addSpell(Air); //Change player default attack Attack defaultAttack = new Attack("Attack", 3, 10, 20); You.setDefaultAttack(defaultAttack); //Display Monster and Player value pageTitle.Text = Enemy.getSubtitle() + ": " + Enemy.getName(); monsterName.Text = Enemy.getName(); monsterHPText.Text = Enemy.getHPStart().ToString(); monsterMPText.Text = Enemy.getMPStart().ToString(); yourName.Text = You.getName(); yourHPText.Text = You.getHPStart().ToString(); yourMPText.Text = You.getMPStart().ToString(); }