diff options
author | Pacien TRAN-GIRARD | 2014-04-06 13:23:02 +0000 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-04-06 13:23:02 +0000 |
commit | 7cec06bea8172ceb7d819f4d2d4474585200c74d (patch) | |
tree | f1187e4160d8ef8abff7e99fa772656b8179d750 /report/progression.tex | |
parent | 52b649c665ac9f35b3e4d553bd964442dc5224c1 (diff) | |
parent | 013f9175a9ad8f103d439e1b7e61efd1e2cd43e0 (diff) | |
download | esieequest-7cec06bea8172ceb7d819f4d2d4474585200c74d.tar.gz |
Merge branch 'zuul-with-items' into 'master'
Zuul With Items
Diffstat (limited to 'report/progression.tex')
-rw-r--r-- | report/progression.tex | 28 |
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 | ||
269 | The current room and the previous rooms were moved from Game to Player with | ||
270 | commit 92f671b84. | ||
271 | |||
269 | \subsection{take, drop} | 272 | \subsection{take, drop} |
270 | 273 | ||
274 | The take and drop commands were implemented as part of the commit number | ||
275 | 5ddb6df63. An Inventory interface, used by the Room and Player classes, was | ||
276 | added. Items are stored using HashMaps, and a moveItem procedure was added to | ||
277 | the Performer. | ||
278 | |||
271 | \subsection{Carry several items} | 279 | \subsection{Carry several items} |
272 | 280 | ||
281 | Multiple items carrying was already implemented in the commit number 5ddb6df63. | ||
282 | |||
273 | \subsection{ItemList} | 283 | \subsection{ItemList} |
274 | 284 | ||
285 | The ItemList was implemented as the Inventory class in commit number db2c22c9b. | ||
286 | The Inventory is no longer an interface. | ||
287 | |||
275 | \subsection{Maximum weight} | 288 | \subsection{Maximum weight} |
276 | 289 | ||
290 | The maximum carryable weight was implement with the commit number b8771ccb2. | ||
291 | In order to achieve this, a getTotalWeight() function was added to the Inventory | ||
292 | class. | ||
293 | |||
277 | \subsection{Inventory} | 294 | \subsection{Inventory} |
278 | 295 | ||
296 | The player's inventory items listing was implemented with the commit number | ||
297 | a3f6ce16e, using the recently added listing utility class. | ||
298 | |||
279 | \subsection{Magic cookie} | 299 | \subsection{Magic cookie} |
280 | 300 | ||
301 | Since there are already too many commands, the carryable weight | ||
302 | expansion was implemented in a smarter way using a negative weight | ||
303 | item in the commit number 35ee3b1ee. | ||
304 | We could have instead increased the maximum carryable weight with a setter on | ||
305 | the Player class, called by the Performer with the ``eat'' command. | ||
306 | |||
281 | \subsection{Tests} | 307 | \subsection{Tests} |
282 | 308 | ||
309 | The 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 | ||