Exemple #1
0
        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());
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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());
        }
Exemple #4
0
        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);
        }
Exemple #5
0
        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();
        }
Exemple #6
0
        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);
        }
Exemple #7
0
        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 !");
            }
        }
Exemple #8
0
 private void DeadSequence()
 {
     m_bIsDead = true;
     UserInterface.DisplayInfo(false, "Your Dead !");
 }
Exemple #9
0
 private void WeaponAttack()
 {
     UserInterface.DisplayInfo(false, "Lightning attack from Magician");
 }
Exemple #10
0
 public void AttackArrow()
 {
     UserInterface.DisplayInfo(false, "C plus puissant que C++ ");
 }
Exemple #11
0
 public void AttackLightning()
 {
     UserInterface.DisplayInfo(false, "sdiufhvweijfnv ");
 }
Exemple #12
0
 private void DragonAttack()
 {
     UserInterface.DisplayInfo(false, "Fire and blood, Dragon attack !");
 }
Exemple #13
0
 private void WeaponAttack()
 {
     UserInterface.DisplayInfo(false, "Sword attack from Brabarian");
 }
Exemple #14
0
 private void WeaponAttack()
 {
     UserInterface.DisplayInfo(false, "Arrow attack from Thief");
 }
Exemple #15
0
 private void AttackSword()
 {
     UserInterface.DisplayInfo(false, " La plume plus puissante que l'epee ");
 }