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] "); } } } }
public override bool Use(player P) { Console.WriteLine(" !!!!!!!!!!!! tu as une nouvelle épée !!!!!!!!!!!!"); return(base.Use(P)); }
public EpeeDebut(string nameEquip, string desciptEquip, int indiceEpeeDebut, int xx, int yy, player P) : base(nameEquip, desciptEquip, indiceEpeeDebut, xx, yy, P) { }
public override bool Use(player P) { UsePotionEnergie(Player); return(base.Use(P)); }
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; }
public IndiceTresor(string nameEquip, string desciptEquip, int Indice, int X, int Y, player player) : base(nameEquip, desciptEquip, Indice, X, Y, player) { }
public override void attack(player P) { base.attack(P); coup(P); }
public Onepiece(string nameEquip, string desciptEquip, int Indice, int X, int Y, player player) : base(nameEquip, desciptEquip, Indice, X, Y, player) { }
public virtual void attack(player P) { }
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; }
public override void attack(player P) { base.attack(P); ultralaser(P); }
public virtual bool Use(player P) { Console.WriteLine("!!!!!! !! Vous avez utilisé : " + nom + " !!!!!!!!"); return(true); }
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; }
// List<Equipement> List = new List<Equipement>(); public Game(map P, player Pl) { player = Pl; plateau = P; }