diff options
author | Pacien TRAN-GIRARD | 2014-03-12 09:57:28 +0000 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-03-12 09:57:28 +0000 |
commit | 2603c3643d180bf33748af87be668c5cb6e0b430 (patch) | |
tree | fc1ea01afe75e544bf77c939a9d6b94258f1105e /report/progression.tex | |
parent | 9e42ce69208d1b496b96c1a2473993e215c06352 (diff) | |
parent | 07c3d56b24c9693ec060399823dd233184c054a3 (diff) | |
download | esieequest-2603c3643d180bf33748af87be668c5cb6e0b430.tar.gz |
Merge branch 'zuul-with-history' into 'master'
Zuul With History
Diffstat (limited to 'report/progression.tex')
-rw-r--r-- | report/progression.tex | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/report/progression.tex b/report/progression.tex index 6600430..cf4f3d2 100644 --- a/report/progression.tex +++ b/report/progression.tex | |||
@@ -204,12 +204,27 @@ to perform actions on a particular one (take, drop, use, etc\ldots). | |||
204 | 204 | ||
205 | \subsection{back} | 205 | \subsection{back} |
206 | 206 | ||
207 | The back command was implemented as part of commit f218bf5fa. | ||
208 | |||
207 | \subsection{back test} | 209 | \subsection{back test} |
208 | 210 | ||
211 | The back command works even with any parameter. We will check this later with | ||
212 | "zuul-with-enums". | ||
213 | |||
209 | \subsection{back back} | 214 | \subsection{back back} |
210 | 215 | ||
216 | When the user enters back twice, he goes two rooms backward. This is working | ||
217 | correctly. | ||
218 | |||
211 | \subsection{Stack} | 219 | \subsection{Stack} |
212 | 220 | ||
221 | The Stack class represents a last-in-first-out (LIFO) stack of objects. The push() | ||
222 | method allows to add and element at the top of the stack and the pop() method | ||
223 | allows to retrieve the top item and removes it. | ||
224 | |||
225 | A condition checks whether the Stack is empty before calling the pop() method, | ||
226 | so that the program does not throw an Exception. This resolve the case when the | ||
227 | player is at the starting point. | ||
213 | 228 | ||
214 | \section{Zuul with tests} | 229 | \section{Zuul with tests} |
215 | 230 | ||