diff options
author | Pacien TRAN-GIRARD | 2014-02-24 17:36:12 +0100 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2014-02-24 17:36:12 +0100 |
commit | c87745f6f72d914fbddad511cae2847e5793fbd2 (patch) | |
tree | 09d59c06404c93ed01706f89515d4b068561a363 /report | |
parent | eef1285004b9bdf608002f9431905c0df329b870 (diff) | |
download | esieequest-c87745f6f72d914fbddad511cae2847e5793fbd2.tar.gz |
Add descriptions of methods
Diffstat (limited to 'report')
-rw-r--r-- | report/progression.tex | 29 |
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 | |||
119 | The constructor of this class instantiates the GameEngine and the UserInterface, | ||
120 | and set the output of the first to the second. | ||
121 | |||
122 | \subsubsection{GameEngine} | ||
123 | |||
124 | This class contains the attributes and methods previously contained in the Game | ||
125 | class. | ||
126 | |||
127 | Instead of printing to the standard console output, it prints to the GUI. | ||
128 | |||
129 | \subsubsection{UserInterface} | ||
130 | |||
131 | This class implements the graphical user interface of the game. It basically | ||
132 | creates the different window components and provides methods to | ||
133 | interact with them. | ||
134 | |||
117 | \subsection{Parser/Scanner} | 135 | \subsection{Parser/Scanner} |
118 | 136 | ||
119 | \subsection{UserInterface.addActionListener()} | 137 | Since commands are entered through a text field instead of the console, the |
138 | use 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()} | 142 | The addActionListener() of an object x takes as parameter an object y that have |
143 | a actionPerformed() method. When an action event occurs on x, this method on y | ||
144 | is called and an ActionEvent is passed as parameter. | ||
122 | 145 | ||
146 | The actionPerformed() method then does the appropriate action according to the | ||
147 | event that happened. | ||
123 | 148 | ||
124 | \section{Zuul MVC} | 149 | \section{Zuul MVC} |
125 | 150 | ||