public override void Attack(Character character) { Monster m = (Monster)character; MONSTERS_TYPE qwerty = m.getMonsterType(); UserInterface.DisplayInfo(false, " Vous etes en train d'attaquer un : ", qwerty.ToString()); }
public override void Attack(Character character) { Heros m_Heros = (Heros)character; UserInterface.DisplayInfo(false, monster_type.ToString(), " Vous attaque avec : ", m_Weapon.getWeaponType().ToString()); m_Heros.RemoveHealthPoints(30); }
public override void Attack(Character character) { Monster m_Monster = (Monster)character; MONSTERS_TYPE mType = m_Monster.GetMonsterType(); UserInterface.DisplayInfo(false, "You are attaking a : ", mType.ToString()); }
public override void Attack(Character character) { Heros m_Heros = (Heros)character; UserInterface.DisplayInfo(false, m_MonsterType.ToString(), " attacking you with : ", m_Weapon.getWeaponType().ToString()); m_Heros.RemoveHealthPoints(30); }
static void Main(string[] args) { UserInterface.DisplayInfo(false, "Welcome to my Dungeon ! Have fun"); Heros newHero = new Heros("Conan"); Dungeon newDungeon = new Dungeon(); newDungeon.Enter(newHero); Console.ReadLine(); }
internal void Enter(Heros newHero) { //EnterRoom(0 , newHero); UserInterface.DisplayInfo(true, "Hero enter Dungeon !"); for (int i = 0; i < m_ArrayRoom.Length; i++) { m_ArrayRoom[i].Enter(newHero); } m_DragonsLair.Enter(newHero); }
public void RemoveHealthPoints(int p_iHealthPoints) { int currentHealthPoints = m_iHealthPoints; m_iHealthPoints -= p_iHealthPoints; UserInterface.DisplayInfo(false, "You lose : ", p_iHealthPoints.ToString(), " health points !"); if (m_iHealthPoints < 0) { DeadSequence(); } else { UserInterface.DisplayInfo(false, "Passing from : ", currentHealthPoints.ToString(), " health points, to : ", m_iHealthPoints.ToString(), " health points !"); } }
private void DeadSequence() { m_bIsDead = true; UserInterface.DisplayInfo(false, "Your Dead !"); }
private void WeaponAttack() { UserInterface.DisplayInfo(false, "Lightning attack from Magician"); }
public void AttackArrow() { UserInterface.DisplayInfo(false, "C plus puissant que C++ "); }
public void AttackLightning() { UserInterface.DisplayInfo(false, "sdiufhvweijfnv "); }
private void DragonAttack() { UserInterface.DisplayInfo(false, "Fire and blood, Dragon attack !"); }
private void WeaponAttack() { UserInterface.DisplayInfo(false, "Sword attack from Brabarian"); }
private void WeaponAttack() { UserInterface.DisplayInfo(false, "Arrow attack from Thief"); }
private void AttackSword() { UserInterface.DisplayInfo(false, " La plume plus puissante que l'epee "); }