Ajout de commentaire SHOULDDO pour client/future refacto
Clement Colmerauer

Clement Colmerauer commited on 2024-12-13 10:04:13
Showing 2 changed files, with 2 additions and 2 deletions.

... ...
@@ -6,7 +6,7 @@ import java.util.Random;
6 6
 public class Manager {
7 7
 
8 8
     public final static String[] objectList = {"Magic bow : Heal by 1/8th of your HP","Lookout Ring : Prevents surprise attacks","Scroll of Stupidity : INT-2 when applied to an enemy", "Draupnir : Increases XP gained by 100%", "Magic Charm : Magic +10 for 5 rounds", "Rune Staff of Curse : May burn your ennemies... Or yourself. Who knows?", "Combat Edge : Well, that's an edge", "Holy Elixir : Recover your HP"
9
-    };
9
+    }; //SHOULDDO : Create an item class
10 10
 
11 11
     // majFinDeTour met à jour les points de vie
12 12
     public static void majFinDeTour(Player player) {
... ...
@@ -19,7 +19,6 @@ public class Player {
19 19
 
20 20
     private String playerName;
21 21
     private String avatarName;
22
-    //private String avatarClass;
23 22
     public Jobs avatarClass;
24 23
 
25 24
     private Natural money;
... ...
@@ -30,6 +29,7 @@ public class Player {
30 29
     private Natural xp;
31 30
 
32 31
     private final HashMap<Ability, Integer> abilities; //Ability = stat
32
+                                                       //SHOULDDO : have another hashmap to have contextual modifier (items,...)
33 33
     private ArrayList<String> inventory;
34 34
 
35 35
     public Player(String playerName, String avatar_name, Jobs avatarClass, int money, ArrayList<String> inventory) {
36 36