aboutsummaryrefslogtreecommitdiff
path: root/report
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-02-24 17:36:12 +0100
committerPacien TRAN-GIRARD2014-02-24 17:36:12 +0100
commitc87745f6f72d914fbddad511cae2847e5793fbd2 (patch)
tree09d59c06404c93ed01706f89515d4b068561a363 /report
parenteef1285004b9bdf608002f9431905c0df329b870 (diff)
downloadesieequest-c87745f6f72d914fbddad511cae2847e5793fbd2.tar.gz
Add descriptions of methods
Diffstat (limited to 'report')
-rw-r--r--report/progression.tex29
1 files changed, 27 insertions, 2 deletions
diff --git a/report/progression.tex b/report/progression.tex
index da5e34e..bb5a548 100644
--- a/report/progression.tex
+++ b/report/progression.tex
@@ -114,12 +114,37 @@ passed to any method in any class.
114 114
115\subsection{Game, GameEngine, UserInterface} 115\subsection{Game, GameEngine, UserInterface}
116 116
117\subsubsection{Game}
118
119The constructor of this class instantiates the GameEngine and the UserInterface,
120and set the output of the first to the second.
121
122\subsubsection{GameEngine}
123
124This class contains the attributes and methods previously contained in the Game
125class.
126
127Instead of printing to the standard console output, it prints to the GUI.
128
129\subsubsection{UserInterface}
130
131This class implements the graphical user interface of the game. It basically
132creates the different window components and provides methods to
133interact with them.
134
117\subsection{Parser/Scanner} 135\subsection{Parser/Scanner}
118 136
119\subsection{UserInterface.addActionListener()} 137Since commands are entered through a text field instead of the console, the
138use of Scanner that read from the standard system input is not required anymore.
139
140\subsection{addActionListener() and actionPerformed()}
120 141
121\subsection{UserInterface.actionPerformed()} 142The addActionListener() of an object x takes as parameter an object y that have
143a actionPerformed() method. When an action event occurs on x, this method on y
144is called and an ActionEvent is passed as parameter.
122 145
146The actionPerformed() method then does the appropriate action according to the
147event that happened.
123 148
124\section{Zuul MVC} 149\section{Zuul MVC}
125 150