diff options
author | Pacien TRAN-GIRARD | 2014-02-24 21:13:41 +0100 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-02-24 21:13:41 +0100 |
commit | 4a2aee7ace78482e9a77055da42ab24739844ed5 (patch) | |
tree | 4fd35219c3ed01d6bb9db5a04393fe85895799a0 /report | |
parent | 3c2c22601ce76cbec09478b99c97100e0f041948 (diff) | |
parent | ad5f4828e308a24a04562c19659eaf1181720fa7 (diff) | |
download | esieequest-4a2aee7ace78482e9a77055da42ab24739844ed5.tar.gz |
Merge branch 'master' of https://gitlab.pacien.net/pacien/a3p-esieequest
Diffstat (limited to 'report')
-rw-r--r-- | report/progression.tex | 39 |
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 | ||
117 | The following methods was implemented as part of commit 54e102463. | ||
118 | |||
119 | \subsubsection{Game} | ||
120 | |||
121 | The constructor of this class instantiates the GameEngine and the UserInterface, | ||
122 | and set the output of the first to the second. | ||
123 | |||
124 | \subsubsection{GameEngine} | ||
125 | |||
126 | This class contains the attributes and methods previously contained in the Game | ||
127 | class. | ||
128 | |||
129 | Instead of printing to the standard console output, it prints to the GUI. | ||
130 | |||
131 | \subsubsection{UserInterface} | ||
132 | |||
133 | This class implements the graphical user interface of the game. It basically | ||
134 | creates the different window components and provides methods to | ||
135 | interact with them. | ||
136 | |||
117 | \subsection{Parser/Scanner} | 137 | \subsection{Parser/Scanner} |
118 | 138 | ||
119 | \subsection{UserInterface.addActionListener()} | 139 | Since commands are entered through a text field instead of the console, the |
140 | use of Scanner that read from the standard system input is not required anymore. | ||
141 | |||
142 | \subsection{addActionListener() and actionPerformed()} | ||
143 | |||
144 | The addActionListener() of an object x takes as parameter an object y that have | ||
145 | a actionPerformed() method. When an action event occurs on x, this method on y | ||
146 | is called and an ActionEvent is passed as parameter. | ||
147 | |||
148 | The actionPerformed() method then does the appropriate action according to the | ||
149 | event that happened. | ||
150 | |||
151 | \subsection{Add a button} | ||
120 | 152 | ||
121 | \subsection{UserInterface.actionPerformed()} | 153 | A help button was added with commit 7f153a4c1. The processCommand() method was |
154 | modified to take the command String as parameter instead of reading it only from | ||
155 | the text field, and the actionPerformed() method was modified accordingly to | ||
156 | forward the command. | ||
122 | 157 | ||
123 | 158 | ||
124 | \section{Zuul MVC} | 159 | \section{Zuul MVC} |