Ejemplo n.º 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] ");
                    }
                }
            }
        }
Ejemplo n.º 2
0
 public override bool Use(player P)
 {
     Console.WriteLine(" !!!!!!!!!!!!   tu as une nouvelle épée   !!!!!!!!!!!!");
     return(base.Use(P));
 }
Ejemplo n.º 3
0
 public EpeeDebut(string nameEquip, string desciptEquip, int indiceEpeeDebut, int xx, int yy, player P) : base(nameEquip, desciptEquip, indiceEpeeDebut, xx, yy, P)
 {
 }
Ejemplo n.º 4
0
 public override bool Use(player P)
 {
     UsePotionEnergie(Player);
     return(base.Use(P));
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 6
0
 public IndiceTresor(string nameEquip, string desciptEquip, int Indice, int X, int Y, player player) : base(nameEquip, desciptEquip, Indice, X, Y, player)
 {
 }
Ejemplo n.º 7
0
 public override void attack(player P)
 {
     base.attack(P);
     coup(P);
 }
Ejemplo n.º 8
0
 public Onepiece(string nameEquip, string desciptEquip, int Indice, int X, int Y, player player) : base(nameEquip, desciptEquip, Indice, X, Y, player)
 {
 }
Ejemplo n.º 9
0
 public virtual void attack(player P)
 {
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 11
0
 public override void attack(player P)
 {
     base.attack(P);
     ultralaser(P);
 }
Ejemplo n.º 12
0
 public virtual bool Use(player P)
 {
     Console.WriteLine("!!!!!! !! Vous avez utilisé : " + nom + "  !!!!!!!!");
     return(true);
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 14
0
        //  List<Equipement> List = new List<Equipement>();

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