class Personnage: # utilisation d'un constructeur def __init__(self, force, localisation, experience, degats): """Construction d'un personnage : A = Personnage(force(int), localisation(str), experience(int), degats(int))""" self.setForce(force) self.setLocalisation(localisation) self.setExperience(experience) self.setDegats(degats)