diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/esieequest/model/entities/Player.java | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/esieequest/model/entities/Player.java b/src/esieequest/model/entities/Player.java index 16ac612..aaa6651 100644 --- a/src/esieequest/model/entities/Player.java +++ b/src/esieequest/model/entities/Player.java | |||
@@ -5,6 +5,11 @@ import java.util.Stack; | |||
5 | import esieequest.model.items.Inventory; | 5 | import esieequest.model.items.Inventory; |
6 | import esieequest.model.map.Room; | 6 | import esieequest.model.map.Room; |
7 | 7 | ||
8 | /** | ||
9 | * | ||
10 | * @author Pacien TRAN-GIRARD | ||
11 | * @author BenoƮt LUBRANO DI SBARAGLIONE | ||
12 | */ | ||
8 | public class Player { | 13 | public class Player { |
9 | 14 | ||
10 | private Room currentRoom; | 15 | private Room currentRoom; |
@@ -12,7 +17,7 @@ public class Player { | |||
12 | 17 | ||
13 | private final Inventory inventory; | 18 | private final Inventory inventory; |
14 | private final int maxCarryWeight; | 19 | private final int maxCarryWeight; |
15 | 20 | ||
16 | private int nbSteps; | 21 | private int nbSteps; |
17 | private int maxNbSteps; | 22 | private int maxNbSteps; |
18 | 23 | ||
@@ -22,7 +27,7 @@ public class Player { | |||
22 | 27 | ||
23 | this.inventory = new Inventory(); | 28 | this.inventory = new Inventory(); |
24 | this.maxCarryWeight = maxCarryWeight; | 29 | this.maxCarryWeight = maxCarryWeight; |
25 | 30 | ||
26 | this.nbSteps = 0; | 31 | this.nbSteps = 0; |
27 | this.maxNbSteps = 0; | 32 | this.maxNbSteps = 0; |
28 | } | 33 | } |
@@ -80,7 +85,8 @@ public class Player { | |||
80 | } | 85 | } |
81 | 86 | ||
82 | /** | 87 | /** |
83 | * @param nbSteps the nbSteps to set | 88 | * @param nbSteps |
89 | * the nbSteps to set | ||
84 | */ | 90 | */ |
85 | public void setNbSteps(int nbSteps) { | 91 | public void setNbSteps(int nbSteps) { |
86 | this.nbSteps = nbSteps; | 92 | this.nbSteps = nbSteps; |
@@ -94,7 +100,8 @@ public class Player { | |||
94 | } | 100 | } |
95 | 101 | ||
96 | /** | 102 | /** |
97 | * @param maxNbSteps the maxNbSteps to set | 103 | * @param maxNbSteps |
104 | * the maxNbSteps to set | ||
98 | */ | 105 | */ |
99 | public void setMaxNbSteps(int maxNbSteps) { | 106 | public void setMaxNbSteps(int maxNbSteps) { |
100 | this.maxNbSteps = maxNbSteps; | 107 | this.maxNbSteps = maxNbSteps; |