diff options
author | Pacien TRAN-GIRARD | 2014-02-23 18:46:48 +0000 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-02-23 18:46:48 +0000 |
commit | 48a842e6d4fada66c6cbfdbc5cb411163b6a5987 (patch) | |
tree | d2fb33a402f70d2fb11dea52f12d24173b247505 /report | |
parent | a09f50675a10f1c06eaf47772594cd932d4e4920 (diff) | |
parent | 1b4b8c7e5bbe05f05f6cfc7aa16ad0570af4f2ca (diff) | |
download | esieequest-48a842e6d4fada66c6cbfdbc5cb411163b6a5987.tar.gz |
Merge branch 'zuul-better-v1' into 'master'
Zuul Better V1
Diffstat (limited to 'report')
-rw-r--r-- | report/progression.tex | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/report/progression.tex b/report/progression.tex index cef3a50..15709c5 100644 --- a/report/progression.tex +++ b/report/progression.tex | |||
@@ -10,20 +10,49 @@ | |||
10 | 10 | ||
11 | \subsection{printLocationInfo} | 11 | \subsection{printLocationInfo} |
12 | 12 | ||
13 | This code duplication has been previously avoided with the printRoomInfo() | ||
14 | method. | ||
15 | It has been renamed to printLocationInfo(), as part of the commit e52a34789, to | ||
16 | match the exercise. | ||
17 | |||
13 | \subsection{getExit} | 18 | \subsection{getExit} |
14 | 19 | ||
20 | The exit attributes have been made private and a getter was added in commit | ||
21 | 53c427ff3. A switch statement has been used instead of multiple if statements. | ||
22 | |||
15 | \subsection{getExitString} | 23 | \subsection{getExitString} |
16 | 24 | ||
25 | This method has been added as part of commit ca65af2e2. | ||
26 | |||
17 | \subsection{HashMap, setExit} | 27 | \subsection{HashMap, setExit} |
18 | 28 | ||
29 | Room exits are now stored in an HashMap since commit c9d890b9b. The setExits() | ||
30 | method has been replaced by setExit() which takes advantages of the HashMap. | ||
31 | |||
19 | \subsection{Vertical direction} | 32 | \subsection{Vertical direction} |
20 | 33 | ||
21 | \subsection{keySet} | 34 | In commit 4145a5e8c, the getExitString() method has been modified to be able to |
35 | print the availability of the new exits, used in the stairwell at wing 3. Due | ||
36 | to the architecture of these rooms, the side exits that were previously settled | ||
37 | to link them have been kept. | ||
38 | |||
39 | \subsection{keySet ?} | ||
40 | |||
41 | The keySet() method of the class HashMap returns a Set of the keys contained in | ||
42 | the map. | ||
22 | 43 | ||
23 | \subsection{getExitString ?} | 44 | \subsection{getExitString ?} |
24 | 45 | ||
46 | The getExitString() method returns a String listing the room's exits. | ||
47 | To achieve that, it iterates through the exits Map's keys, that is a Set of | ||
48 | Strings, appending each one to the String that it returns. | ||
49 | |||
25 | \subsection{getLongDescription} | 50 | \subsection{getLongDescription} |
26 | 51 | ||
52 | The Room class now uses the previously explained getExitString() method and | ||
53 | includes the getLongDescription() method that returns the full description of | ||
54 | the room since commit e510b08d0. | ||
55 | |||
27 | \subsection{Object diagram} | 56 | \subsection{Object diagram} |
28 | 57 | ||
29 | \subsubsection{Changes on execution} | 58 | \subsubsection{Changes on execution} |