Exemple #1
0
        public void print(player P)
        {
            for (int i = 0; i < Largeur; i++)
            {
                Console.WriteLine();
                for (int j = 0; j < Longeur; j++)
                {
                    /*if (P.x == i && P.x == j)
                     * {
                     *  Console.Write(P.nom);
                     *
                     * }*/
                    if ((plateau[i, j].Type == Case.CaseType.Desert && (P.y == i && P.x == j)) || (plateau[i, j].Type == Case.CaseType.Foret && (P.y == i && P.x == j)) || (plateau[i, j].Type == Case.CaseType.Ocean && (P.y == i && P.x == j)))
                    {
                        Console.ForegroundColor = ConsoleColor.Red;
                        Console.Write(P.nom);
                    }
                    else if (plateau[i, j].Type == Case.CaseType.Desert)
                    {
                        Console.ForegroundColor = ConsoleColor.Yellow;
                        Console.Write(" [D] ");
                    }

                    else if (plateau[i, j].Type == Case.CaseType.Foret)
                    {
                        Console.ForegroundColor = ConsoleColor.Green;
                        Console.Write(" [F] ");
                    }

                    else if (plateau[i, j].Type == Case.CaseType.Ocean)
                    {
                        Console.ForegroundColor = ConsoleColor.Blue;
                        Console.Write(" [O] ");
                    }
                }
            }
        }
Exemple #2
0
 public override bool Use(player P)
 {
     Console.WriteLine(" !!!!!!!!!!!!   tu as une nouvelle épée   !!!!!!!!!!!!");
     return(base.Use(P));
 }
Exemple #3
0
 public EpeeDebut(string nameEquip, string desciptEquip, int indiceEpeeDebut, int xx, int yy, player P) : base(nameEquip, desciptEquip, indiceEpeeDebut, xx, yy, P)
 {
 }
Exemple #4
0
 public override bool Use(player P)
 {
     UsePotionEnergie(Player);
     return(base.Use(P));
 }
Exemple #5
0
        public PotionNRJ(string name, string descipt, map P, potioNRJtype t, int xx, int yy, player Play, int indicePV) : base(name, descipt, indicePV, xx, yy, Play)
        {
            //indicePV = 1;

            Plateau = P;
            x       = xx;
            y       = yy;
            Type    = t;
        }
Exemple #6
0
 public IndiceTresor(string nameEquip, string desciptEquip, int Indice, int X, int Y, player player) : base(nameEquip, desciptEquip, Indice, X, Y, player)
 {
 }
Exemple #7
0
 public override void attack(player P)
 {
     base.attack(P);
     coup(P);
 }
Exemple #8
0
 public Onepiece(string nameEquip, string desciptEquip, int Indice, int X, int Y, player player) : base(nameEquip, desciptEquip, Indice, X, Y, player)
 {
 }
Exemple #9
0
 public virtual void attack(player P)
 {
 }
Exemple #10
0
        public potion(string name, string descipt, map P, /*potiontype t*/ int xx, int yy, player Play, int indicePV) : base(name, descipt, indicePV, xx, yy, Play)
        {
            //indicePV = 1;

            Plateau = P;
            x       = xx;
            y       = yy;
            //Type = t;
        }
Exemple #11
0
 public override void attack(player P)
 {
     base.attack(P);
     ultralaser(P);
 }
Exemple #12
0
 public virtual bool Use(player P)
 {
     Console.WriteLine("!!!!!! !! Vous avez utilisé : " + nom + "  !!!!!!!!");
     return(true);
 }
Exemple #13
0
 public Equipement(string nameEquip, string desciptEquip, int Indice, int X, int Y, player player)
 {
     Player          = player;
     x               = X;
     y               = Y;
     indiceEqupement = Indice;
     nom             = nameEquip;
     Description     = desciptEquip;
 }
Exemple #14
0
        //  List<Equipement> List = new List<Equipement>();

        public Game(map P, player Pl)
        {
            player  = Pl;
            plateau = P;
        }