diff options
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} |