aboutsummaryrefslogtreecommitdiff
path: root/report
diff options
context:
space:
mode:
Diffstat (limited to 'report')
-rw-r--r--report/progression.tex31
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
13This code duplication has been previously avoided with the printRoomInfo()
14method.
15It has been renamed to printLocationInfo(), as part of the commit e52a34789, to
16match the exercise.
17
13\subsection{getExit} 18\subsection{getExit}
14 19
20The exit attributes have been made private and a getter was added in commit
2153c427ff3. A switch statement has been used instead of multiple if statements.
22
15\subsection{getExitString} 23\subsection{getExitString}
16 24
25This method has been added as part of commit ca65af2e2.
26
17\subsection{HashMap, setExit} 27\subsection{HashMap, setExit}
18 28
29Room exits are now stored in an HashMap since commit c9d890b9b. The setExits()
30method 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} 34In commit 4145a5e8c, the getExitString() method has been modified to be able to
35print the availability of the new exits, used in the stairwell at wing 3. Due
36to the architecture of these rooms, the side exits that were previously settled
37to link them have been kept.
38
39\subsection{keySet ?}
40
41The keySet() method of the class HashMap returns a Set of the keys contained in
42the map.
22 43
23\subsection{getExitString ?} 44\subsection{getExitString ?}
24 45
46The getExitString() method returns a String listing the room's exits.
47To achieve that, it iterates through the exits Map's keys, that is a Set of
48Strings, appending each one to the String that it returns.
49
25\subsection{getLongDescription} 50\subsection{getLongDescription}
26 51
52The Room class now uses the previously explained getExitString() method and
53includes the getLongDescription() method that returns the full description of
54the 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}