class Monstre { private int pointsDeVie; private int pos_x; // position du monstre en (x,y) private int pos_y; public int Pos_x { get { return pos_x; } } public int Pos_y { get { return pos_y; } } public int PointDeVie { get { return pointsDeVie; } set { pointsDeVie = value; } } public void SeDeplace(int x, int y) { pos_x = x; pos_y = y; } public void EstTouche(int degats) { pointsDeVie -= degats; } public void Affiche() { Console.WriteLine($"{nom} : x={pos_x}, y={pos_y}, points de vie={pointsDeVie}"); } }