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