aboutsummaryrefslogtreecommitdiff
path: root/src/ch/epfl/xblast/client/XBlastComponent.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/ch/epfl/xblast/client/XBlastComponent.java')
-rw-r--r--src/ch/epfl/xblast/client/XBlastComponent.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/ch/epfl/xblast/client/XBlastComponent.java b/src/ch/epfl/xblast/client/XBlastComponent.java
index 42c7ab9..f90d6ee 100644
--- a/src/ch/epfl/xblast/client/XBlastComponent.java
+++ b/src/ch/epfl/xblast/client/XBlastComponent.java
@@ -65,7 +65,7 @@ public final class XBlastComponent extends JComponent {
65 } 65 }
66 66
67 /** 67 /**
68 * Build a list containing the positions of the elements of a line. 68 * Builds a list containing the positions of the elements of a line.
69 * 69 *
70 * @param elementDim dimension of the every element of the line 70 * @param elementDim dimension of the every element of the line
71 * @param len length of the line 71 * @param len length of the line
@@ -79,7 +79,7 @@ public final class XBlastComponent extends JComponent {
79 } 79 }
80 80
81 /** 81 /**
82 * Build the list of the positions of the scores' line elements. 82 * Builds the list of the positions of the scores' line elements.
83 * 83 *
84 * @return the list of the positions of the scores' line elements. 84 * @return the list of the positions of the scores' line elements.
85 */ 85 */
@@ -91,7 +91,7 @@ public final class XBlastComponent extends JComponent {
91 } 91 }
92 92
93 /** 93 /**
94 * Build the list of the positions of the time "line" elements. 94 * Builds the list of the positions of the time "line" elements.
95 * 95 *
96 * @return the list of the positions of the time "line" elements. 96 * @return the list of the positions of the time "line" elements.
97 */ 97 */
@@ -103,7 +103,7 @@ public final class XBlastComponent extends JComponent {
103 } 103 }
104 104
105 /** 105 /**
106 * Built the map linking the players' ID to the location of their scores on the grid. 106 * Builds the map linking the players' ID to the location of their scores on the grid.
107 * 107 *
108 * @param vShift vertical position of the scores on the grid 108 * @param vShift vertical position of the scores on the grid
109 * @return map linking the players' ID to the location of their scores on the grid 109 * @return map linking the players' ID to the location of their scores on the grid
@@ -118,7 +118,7 @@ public final class XBlastComponent extends JComponent {
118 } 118 }
119 119
120 /** 120 /**
121 * Compute the position of a player on the grid. 121 * Computes the position of a player on the grid.
122 * 122 *
123 * @param p given player 123 * @param p given player
124 * @return the player's position on the grid 124 * @return the player's position on the grid
@@ -144,7 +144,7 @@ public final class XBlastComponent extends JComponent {
144 private static final Color TXT_COLOR = Color.WHITE; 144 private static final Color TXT_COLOR = Color.WHITE;
145 145
146 /** 146 /**
147 * Draw a string on the graphic context at the given point. 147 * Draws a string on the graphic context at the given point.
148 * 148 *
149 * @param g the graphic context 149 * @param g the graphic context
150 * @param pos position on the graphic context 150 * @param pos position on the graphic context
@@ -157,7 +157,7 @@ public final class XBlastComponent extends JComponent {
157 } 157 }
158 158
159 /** 159 /**
160 * Draw an image on the graphic at the given point. 160 * Draws an image on the graphic at the given point.
161 * 161 *
162 * @param g the graphic context 162 * @param g the graphic context
163 * @param pos position on the graphic context. 163 * @param pos position on the graphic context.
@@ -168,7 +168,7 @@ public final class XBlastComponent extends JComponent {
168 } 168 }
169 169
170 /** 170 /**
171 * Draw images given their location on the graphic context. 171 * Draws images given their location on the graphic context.
172 * 172 *
173 * @param g the graphic context 173 * @param g the graphic context
174 * @param m map linking images to points on the graphic context 174 * @param m map linking images to points on the graphic context
@@ -179,7 +179,7 @@ public final class XBlastComponent extends JComponent {
179 } 179 }
180 180
181 /** 181 /**
182 * Draw strings given their location on the graphic context. 182 * Draws strings given their location on the graphic context.
183 * 183 *
184 * @param g the graphic context 184 * @param g the graphic context
185 * @param m map linking strings to their locations 185 * @param m map linking strings to their locations
@@ -203,7 +203,7 @@ public final class XBlastComponent extends JComponent {
203 } 203 }
204 204
205 /** 205 /**
206 * Sort the players in order to have the current player at first. 206 * Sorts the players in order to have the current player at first.
207 * 207 *
208 * @param players list of the players 208 * @param players list of the players
209 * @param currentPlayerID player ID of the current player (the player playing on this client) 209 * @param currentPlayerID player ID of the current player (the player playing on this client)
@@ -231,7 +231,7 @@ public final class XBlastComponent extends JComponent {
231 private PlayerID playerID; 231 private PlayerID playerID;
232 232
233 /** 233 /**
234 * Display the given GameState from the point of view of the given playerID. 234 * Displays the given GameState from the point of view of the given playerID.
235 * 235 *
236 * @param gs GameState to be displayed 236 * @param gs GameState to be displayed
237 * @param pid playerID related to the view 237 * @param pid playerID related to the view
@@ -253,7 +253,7 @@ public final class XBlastComponent extends JComponent {
253 } 253 }
254 254
255 /** 255 /**
256 * Draw the component. 256 * Draws the component.
257 * 257 *
258 * @param g0 the Graphics context 258 * @param g0 the Graphics context
259 */ 259 */