From bd639caa0bbf010c415d197b93d0f30a6cb8f1e4 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Thu, 27 Feb 2014 14:53:05 +0100 Subject: Code refactoring to match MVC --- .classpath | 1 + res/res/img/placeholder.jpg | Bin 0 -> 77504 bytes res/res/img/placeholder.svg | 725 +++++++++++++++++++++ .../wordpress/tipsforjava/swing/StretchIcon.java | 372 +++++++++++ src/esieequest/Command.java | 70 -- src/esieequest/CommandWords.java | 45 -- src/esieequest/Game.java | 29 - src/esieequest/GameEngine.java | 271 -------- src/esieequest/Main.java | 44 +- src/esieequest/Parser.java | 60 -- src/esieequest/Room.java | 111 ---- src/esieequest/UserInterface.java | 151 ----- src/esieequest/controller/GameEngine.java | 51 ++ src/esieequest/controller/Interpreter.java | 68 ++ src/esieequest/controller/Parser.java | 31 + src/esieequest/controller/Performer.java | 73 +++ src/esieequest/controller/package-info.java | 8 + src/esieequest/model/Game.java | 223 +++++++ src/esieequest/model/Room.java | 109 ++++ src/esieequest/model/command/Command.java | 35 + src/esieequest/model/command/CommandWord.java | 43 ++ src/esieequest/model/command/package-info.java | 8 + src/esieequest/model/package-info.java | 8 + src/esieequest/package-info.java | 10 +- src/esieequest/view/Applet.java | 27 + src/esieequest/view/Console.java | 61 ++ src/esieequest/view/UserInterface.java | 247 +++++++ src/esieequest/view/View.java | 23 + src/esieequest/view/Window.java | 35 + src/esieequest/view/package-info.java | 8 + .../nikiroo/utils/gui/JBackgroundPanel.java | 308 +++++++++ website/assets/js/script.js | 2 +- 32 files changed, 2511 insertions(+), 746 deletions(-) create mode 100644 res/res/img/placeholder.jpg create mode 100644 res/res/img/placeholder.svg create mode 100644 src/com/wordpress/tipsforjava/swing/StretchIcon.java delete mode 100644 src/esieequest/Command.java delete mode 100644 src/esieequest/CommandWords.java delete mode 100644 src/esieequest/Game.java delete mode 100644 src/esieequest/GameEngine.java delete mode 100644 src/esieequest/Parser.java delete mode 100644 src/esieequest/Room.java delete mode 100644 src/esieequest/UserInterface.java create mode 100644 src/esieequest/controller/GameEngine.java create mode 100644 src/esieequest/controller/Interpreter.java create mode 100644 src/esieequest/controller/Parser.java create mode 100644 src/esieequest/controller/Performer.java create mode 100644 src/esieequest/controller/package-info.java create mode 100644 src/esieequest/model/Game.java create mode 100644 src/esieequest/model/Room.java create mode 100644 src/esieequest/model/command/Command.java create mode 100644 src/esieequest/model/command/CommandWord.java create mode 100644 src/esieequest/model/command/package-info.java create mode 100644 src/esieequest/model/package-info.java create mode 100644 src/esieequest/view/Applet.java create mode 100644 src/esieequest/view/Console.java create mode 100644 src/esieequest/view/UserInterface.java create mode 100644 src/esieequest/view/View.java create mode 100644 src/esieequest/view/Window.java create mode 100644 src/esieequest/view/package-info.java create mode 100644 src/net/homelinux/nikiroo/utils/gui/JBackgroundPanel.java diff --git a/.classpath b/.classpath index fb565a5..32d0130 100644 --- a/.classpath +++ b/.classpath @@ -1,6 +1,7 @@ + diff --git a/res/res/img/placeholder.jpg b/res/res/img/placeholder.jpg new file mode 100644 index 0000000..a837f76 Binary files /dev/null and b/res/res/img/placeholder.jpg differ diff --git a/res/res/img/placeholder.svg b/res/res/img/placeholder.svg new file mode 100644 index 0000000..679edec --- /dev/null +++ b/res/res/img/placeholder.svg @@ -0,0 +1,725 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +