aboutsummaryrefslogtreecommitdiff
path: root/report
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-02-24 21:13:41 +0100
committerPacien TRAN-GIRARD2014-02-24 21:13:41 +0100
commit4a2aee7ace78482e9a77055da42ab24739844ed5 (patch)
tree4fd35219c3ed01d6bb9db5a04393fe85895799a0 /report
parent3c2c22601ce76cbec09478b99c97100e0f041948 (diff)
parentad5f4828e308a24a04562c19659eaf1181720fa7 (diff)
downloadesieequest-4a2aee7ace78482e9a77055da42ab24739844ed5.tar.gz
Merge branch 'master' of https://gitlab.pacien.net/pacien/a3p-esieequest
Diffstat (limited to 'report')
-rw-r--r--report/progression.tex39
1 files changed, 37 insertions, 2 deletions
diff --git a/report/progression.tex b/report/progression.tex
index da5e34e..f015634 100644
--- a/report/progression.tex
+++ b/report/progression.tex
@@ -114,11 +114,46 @@ passed to any method in any class.
114 114
115\subsection{Game, GameEngine, UserInterface} 115\subsection{Game, GameEngine, UserInterface}
116 116
117The following methods was implemented as part of commit 54e102463.
118
119\subsubsection{Game}
120
121The constructor of this class instantiates the GameEngine and the UserInterface,
122and set the output of the first to the second.
123
124\subsubsection{GameEngine}
125
126This class contains the attributes and methods previously contained in the Game
127class.
128
129Instead of printing to the standard console output, it prints to the GUI.
130
131\subsubsection{UserInterface}
132
133This class implements the graphical user interface of the game. It basically
134creates the different window components and provides methods to
135interact with them.
136
117\subsection{Parser/Scanner} 137\subsection{Parser/Scanner}
118 138
119\subsection{UserInterface.addActionListener()} 139Since commands are entered through a text field instead of the console, the
140use of Scanner that read from the standard system input is not required anymore.
141
142\subsection{addActionListener() and actionPerformed()}
143
144The addActionListener() of an object x takes as parameter an object y that have
145a actionPerformed() method. When an action event occurs on x, this method on y
146is called and an ActionEvent is passed as parameter.
147
148The actionPerformed() method then does the appropriate action according to the
149event that happened.
150
151\subsection{Add a button}
120 152
121\subsection{UserInterface.actionPerformed()} 153A help button was added with commit 7f153a4c1. The processCommand() method was
154modified to take the command String as parameter instead of reading it only from
155the text field, and the actionPerformed() method was modified accordingly to
156forward the command.
122 157
123 158
124\section{Zuul MVC} 159\section{Zuul MVC}