diff options
Diffstat (limited to 'report')
-rw-r--r-- | report/progression.tex | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/report/progression.tex b/report/progression.tex index 2f25aea..da5e34e 100644 --- a/report/progression.tex +++ b/report/progression.tex | |||
@@ -73,16 +73,42 @@ The eat command has been added with the commit 40b9b4816. | |||
73 | 73 | ||
74 | \subsection{showAll, showCommands} | 74 | \subsection{showAll, showCommands} |
75 | 75 | ||
76 | This modifications are part of the commit 79d33230b. | ||
77 | |||
76 | \subsection{Adding commands} | 78 | \subsection{Adding commands} |
77 | 79 | ||
80 | Adding new commands would not require modifying the printHelp() method anymore. | ||
81 | However, adding new commands and related functions would still require editing | ||
82 | the Game class and its processCommand() method. | ||
83 | |||
78 | \subsection{getCommandList} | 84 | \subsection{getCommandList} |
79 | 85 | ||
86 | The command list is not printed in the CommandWords class anymore. Instead, this | ||
87 | class returns a String, forwarded by the Parser class, that is then printed in | ||
88 | the Game class, thanks to commit 5f1d0ada2. | ||
89 | |||
80 | \subsection{Comparison with reference} | 90 | \subsection{Comparison with reference} |
81 | 91 | ||
92 | The printLocationInfo() method, used only twice, has been trimmed by the commit | ||
93 | 590a932e5 and has been replaced by a call to the getLongDescription() method of | ||
94 | the Room class. | ||
95 | |||
96 | A missing getter for the Room description has been added as part of the commit | ||
97 | f84606424. | ||
98 | |||
99 | The loop building the command list String has been modified to use an Iterator | ||
100 | with the commit 0c5793abf. | ||
101 | |||
82 | \subsection{StringBuilder} | 102 | \subsection{StringBuilder} |
83 | 103 | ||
104 | The command list and the exit list are now created using a StringBuilder since | ||
105 | commit ee5ec33aa. This avoids the creation of a new String object at each | ||
106 | concatenation, and thus allows better performances. | ||
107 | |||
84 | \subsection{Room objects} | 108 | \subsection{Room objects} |
85 | 109 | ||
110 | Rooms are now stored in an HashMap since commit f64f1ffb0, so they can be | ||
111 | passed to any method in any class. | ||
86 | 112 | ||
87 | \section{Zuul with images} | 113 | \section{Zuul with images} |
88 | 114 | ||