commit cc4e7f6cb5032327964cebd08b4b6614ba793d9a Author: Kalyax Date: Wed Sep 7 11:56:13 2022 +0200 Initial commit diff --git a/Inventaire.py b/Inventaire.py new file mode 100644 index 0000000..e69de29 diff --git a/Personnage.py b/Personnage.py new file mode 100644 index 0000000..9480794 --- /dev/null +++ b/Personnage.py @@ -0,0 +1,35 @@ +from enum import Enum + +class StatsSet(): + #HP, ATK, DEF%, CRIT, CRITRATE% + def __init__(self, hp, atk, defP, crit, critrateP): + self.hp = hp + self.atk = atk + self.defP = defP + self.crit = crit + self.critrateP = critrateP + +class ClassType(Enum): + #HP, ATK, DEF%, CRIT, CRITRATE% + SWORDMAN = StatsSet(20, 10, 12, 5, 10) + MAGE = StatsSet(16, 12, 6, 8, 15) + +#class ElementType(Enum): + #TODO: DEF% contre : water, fire, electro, ice, geo + #WATER = () + #FIRE = () + #ELECTRO = () + #ICE = () + #GEO = () + + +class Personnage: + def __init__(self, nom, class_type) -> None: + self.nom = nom + self.class_type = class_type + + self.xp = 1 + self.stats = StatsSet(0, 0, 0, 0, 0) + self.current_hp = self.class_type.hp + #self.inventaire = + #self.element = \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..e69de29