aboutsummaryrefslogtreecommitdiff
path: root/report
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-04-06 13:23:02 +0000
committerPacien TRAN-GIRARD2014-04-06 13:23:02 +0000
commit7cec06bea8172ceb7d819f4d2d4474585200c74d (patch)
treef1187e4160d8ef8abff7e99fa772656b8179d750 /report
parent52b649c665ac9f35b3e4d553bd964442dc5224c1 (diff)
parent013f9175a9ad8f103d439e1b7e61efd1e2cd43e0 (diff)
downloadesieequest-7cec06bea8172ceb7d819f4d2d4474585200c74d.tar.gz
Merge branch 'zuul-with-items' into 'master'
Zuul With Items
Diffstat (limited to 'report')
-rw-r--r--report/progression.tex28
1 files changed, 28 insertions, 0 deletions
diff --git a/report/progression.tex b/report/progression.tex
index 24c5d7a..94cc5b5 100644
--- a/report/progression.tex
+++ b/report/progression.tex
@@ -266,20 +266,48 @@ to win the game.
266 266
267\subsection{Player} 267\subsection{Player}
268 268
269The current room and the previous rooms were moved from Game to Player with
270commit 92f671b84.
271
269\subsection{take, drop} 272\subsection{take, drop}
270 273
274The take and drop commands were implemented as part of the commit number
2755ddb6df63. An Inventory interface, used by the Room and Player classes, was
276added. Items are stored using HashMaps, and a moveItem procedure was added to
277the Performer.
278
271\subsection{Carry several items} 279\subsection{Carry several items}
272 280
281Multiple items carrying was already implemented in the commit number 5ddb6df63.
282
273\subsection{ItemList} 283\subsection{ItemList}
274 284
285The ItemList was implemented as the Inventory class in commit number db2c22c9b.
286The Inventory is no longer an interface.
287
275\subsection{Maximum weight} 288\subsection{Maximum weight}
276 289
290The maximum carryable weight was implement with the commit number b8771ccb2.
291In order to achieve this, a getTotalWeight() function was added to the Inventory
292class.
293
277\subsection{Inventory} 294\subsection{Inventory}
278 295
296The player's inventory items listing was implemented with the commit number
297a3f6ce16e, using the recently added listing utility class.
298
279\subsection{Magic cookie} 299\subsection{Magic cookie}
280 300
301Since there are already too many commands, the carryable weight
302expansion was implemented in a smarter way using a negative weight
303item in the commit number 35ee3b1ee.
304We could have instead increased the maximum carryable weight with a setter on
305the Player class, called by the Performer with the ``eat'' command.
306
281\subsection{Tests} 307\subsection{Tests}
282 308
309The commands test file was updated in the commit number 7b610fc05.
310
283 311
284\section{Zuul with enums} 312\section{Zuul with enums}
285 313