aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-03-10 15:55:25 +0100
committerPacien TRAN-GIRARD2014-03-10 15:55:25 +0100
commit67503963112b3d3a225ae00ebc899a34e54b6519 (patch)
treeefc2f288fd57e742c6921b5713695c54364d333f
parent44260a59df288b2c1225ec0a70cb02c215844f69 (diff)
downloadesieequest-67503963112b3d3a225ae00ebc899a34e54b6519.tar.gz
Refactoring (structure + doc)
-rw-r--r--src/com/wordpress/tipsforjava/swing/StretchIcon.java47
-rwxr-xr-xsrc/esieequest/Main.java36
-rw-r--r--src/esieequest/controller/GameEngine.java45
-rw-r--r--src/esieequest/controller/Interpreter.java41
-rw-r--r--src/esieequest/controller/Parser.java30
-rw-r--r--src/esieequest/controller/Performer.java107
-rw-r--r--src/esieequest/controller/package-info.java5
-rw-r--r--src/esieequest/model/Game.java136
-rw-r--r--src/esieequest/model/Item.java44
-rw-r--r--src/esieequest/model/Room.java141
-rw-r--r--src/esieequest/model/command/Command.java37
-rw-r--r--src/esieequest/model/command/CommandWord.java60
-rw-r--r--src/esieequest/model/command/package-info.java5
-rw-r--r--src/esieequest/model/package-info.java5
-rw-r--r--src/esieequest/package-info.java5
-rw-r--r--src/esieequest/view/View.java32
-rw-r--r--src/esieequest/view/app/Applet.java20
-rw-r--r--src/esieequest/view/app/UserInterface.java164
-rw-r--r--src/esieequest/view/app/Window.java15
-rw-r--r--src/esieequest/view/app/package-info.java5
-rw-r--r--src/esieequest/view/console/Console.java42
-rw-r--r--src/esieequest/view/console/package-info.java5
-rw-r--r--src/esieequest/view/package-info.java5
-rw-r--r--src/esieequest/view/web/Main.java16
-rw-r--r--src/esieequest/view/web/WebInterface.java223
-rw-r--r--src/esieequest/view/web/WebInterface.ui.xml25
-rw-r--r--src/esieequest/view/web/package-info.java5
-rw-r--r--war/esieequest.css1
-rw-r--r--war/esieequest.html21
29 files changed, 913 insertions, 410 deletions
diff --git a/src/com/wordpress/tipsforjava/swing/StretchIcon.java b/src/com/wordpress/tipsforjava/swing/StretchIcon.java
index 667f1cd..d41bbfe 100644
--- a/src/com/wordpress/tipsforjava/swing/StretchIcon.java
+++ b/src/com/wordpress/tipsforjava/swing/StretchIcon.java
@@ -10,6 +10,7 @@ import java.awt.Image;
10import java.awt.Insets; 10import java.awt.Insets;
11import java.awt.image.ImageObserver; 11import java.awt.image.ImageObserver;
12import java.net.URL; 12import java.net.URL;
13
13import javax.swing.ImageIcon; 14import javax.swing.ImageIcon;
14 15
15/** 16/**
@@ -44,7 +45,7 @@ public class StretchIcon extends ImageIcon {
44 * 45 *
45 * @see ImageIcon#ImageIcon(byte[]) 46 * @see ImageIcon#ImageIcon(byte[])
46 */ 47 */
47 public StretchIcon(byte[] imageData) { 48 public StretchIcon(final byte[] imageData) {
48 super(imageData); 49 super(imageData);
49 } 50 }
50 51
@@ -62,7 +63,7 @@ public class StretchIcon extends ImageIcon {
62 * 63 *
63 * @see ImageIcon#ImageIcon(byte[]) 64 * @see ImageIcon#ImageIcon(byte[])
64 */ 65 */
65 public StretchIcon(byte[] imageData, boolean proportionate) { 66 public StretchIcon(final byte[] imageData, final boolean proportionate) {
66 super(imageData); 67 super(imageData);
67 this.proportionate = proportionate; 68 this.proportionate = proportionate;
68 } 69 }
@@ -78,7 +79,7 @@ public class StretchIcon extends ImageIcon {
78 * 79 *
79 * @see ImageIcon#ImageIcon(byte[], java.lang.String) 80 * @see ImageIcon#ImageIcon(byte[], java.lang.String)
80 */ 81 */
81 public StretchIcon(byte[] imageData, String description) { 82 public StretchIcon(final byte[] imageData, final String description) {
82 super(imageData, description); 83 super(imageData, description);
83 } 84 }
84 85
@@ -99,7 +100,7 @@ public class StretchIcon extends ImageIcon {
99 * 100 *
100 * @see ImageIcon#ImageIcon(byte[], java.lang.String) 101 * @see ImageIcon#ImageIcon(byte[], java.lang.String)
101 */ 102 */
102 public StretchIcon(byte[] imageData, String description, boolean proportionate) { 103 public StretchIcon(final byte[] imageData, final String description, final boolean proportionate) {
103 super(imageData, description); 104 super(imageData, description);
104 this.proportionate = proportionate; 105 this.proportionate = proportionate;
105 } 106 }
@@ -112,7 +113,7 @@ public class StretchIcon extends ImageIcon {
112 * 113 *
113 * @see ImageIcon#ImageIcon(java.awt.Image) 114 * @see ImageIcon#ImageIcon(java.awt.Image)
114 */ 115 */
115 public StretchIcon(Image image) { 116 public StretchIcon(final Image image) {
116 super(image); 117 super(image);
117 } 118 }
118 119
@@ -128,7 +129,7 @@ public class StretchIcon extends ImageIcon {
128 * 129 *
129 * @see ImageIcon#ImageIcon(java.awt.Image) 130 * @see ImageIcon#ImageIcon(java.awt.Image)
130 */ 131 */
131 public StretchIcon(Image image, boolean proportionate) { 132 public StretchIcon(final Image image, final boolean proportionate) {
132 super(image); 133 super(image);
133 this.proportionate = proportionate; 134 this.proportionate = proportionate;
134 } 135 }
@@ -143,7 +144,7 @@ public class StretchIcon extends ImageIcon {
143 * 144 *
144 * @see ImageIcon#ImageIcon(java.awt.Image, java.lang.String) 145 * @see ImageIcon#ImageIcon(java.awt.Image, java.lang.String)
145 */ 146 */
146 public StretchIcon(Image image, String description) { 147 public StretchIcon(final Image image, final String description) {
147 super(image, description); 148 super(image, description);
148 } 149 }
149 150
@@ -161,7 +162,7 @@ public class StretchIcon extends ImageIcon {
161 * 162 *
162 * @see ImageIcon#ImageIcon(java.awt.Image, java.lang.String) 163 * @see ImageIcon#ImageIcon(java.awt.Image, java.lang.String)
163 */ 164 */
164 public StretchIcon(Image image, String description, boolean proportionate) { 165 public StretchIcon(final Image image, final String description, final boolean proportionate) {
165 super(image, description); 166 super(image, description);
166 this.proportionate = proportionate; 167 this.proportionate = proportionate;
167 } 168 }
@@ -174,7 +175,7 @@ public class StretchIcon extends ImageIcon {
174 * 175 *
175 * @see ImageIcon#ImageIcon(java.lang.String) 176 * @see ImageIcon#ImageIcon(java.lang.String)
176 */ 177 */
177 public StretchIcon(String filename) { 178 public StretchIcon(final String filename) {
178 super(filename); 179 super(filename);
179 } 180 }
180 181
@@ -191,7 +192,7 @@ public class StretchIcon extends ImageIcon {
191 * 192 *
192 * @see ImageIcon#ImageIcon(java.lang.String) 193 * @see ImageIcon#ImageIcon(java.lang.String)
193 */ 194 */
194 public StretchIcon(String filename, boolean proportionate) { 195 public StretchIcon(final String filename, final boolean proportionate) {
195 super(filename); 196 super(filename);
196 this.proportionate = proportionate; 197 this.proportionate = proportionate;
197 } 198 }
@@ -206,7 +207,7 @@ public class StretchIcon extends ImageIcon {
206 * 207 *
207 * @see ImageIcon#ImageIcon(java.lang.String, java.lang.String) 208 * @see ImageIcon#ImageIcon(java.lang.String, java.lang.String)
208 */ 209 */
209 public StretchIcon(String filename, String description) { 210 public StretchIcon(final String filename, final String description) {
210 super(filename, description); 211 super(filename, description);
211 } 212 }
212 213
@@ -225,7 +226,7 @@ public class StretchIcon extends ImageIcon {
225 * 226 *
226 * @see ImageIcon#ImageIcon(java.awt.Image, java.lang.String) 227 * @see ImageIcon#ImageIcon(java.awt.Image, java.lang.String)
227 */ 228 */
228 public StretchIcon(String filename, String description, boolean proportionate) { 229 public StretchIcon(final String filename, final String description, final boolean proportionate) {
229 super(filename, description); 230 super(filename, description);
230 this.proportionate = proportionate; 231 this.proportionate = proportionate;
231 } 232 }
@@ -238,7 +239,7 @@ public class StretchIcon extends ImageIcon {
238 * 239 *
239 * @see ImageIcon#ImageIcon(java.net.URL) 240 * @see ImageIcon#ImageIcon(java.net.URL)
240 */ 241 */
241 public StretchIcon(URL location) { 242 public StretchIcon(final URL location) {
242 super(location); 243 super(location);
243 } 244 }
244 245
@@ -254,7 +255,7 @@ public class StretchIcon extends ImageIcon {
254 * 255 *
255 * @see ImageIcon#ImageIcon(java.net.URL) 256 * @see ImageIcon#ImageIcon(java.net.URL)
256 */ 257 */
257 public StretchIcon(URL location, boolean proportionate) { 258 public StretchIcon(final URL location, final boolean proportionate) {
258 super(location); 259 super(location);