Main repository of MikuMikuStudio
Révision | b48a4732d6a463b3ac28d2e9a7b26a4dade11cff (tree) |
---|---|
l'heure | 2003-10-28 06:34:53 |
Auteur | mojomonkey <mojomonkey@75d0...> |
Commiter | mojomonkey |
finish is now public so the application can be shut down externally.
git-svn-id: http://jmonkeyengine.googlecode.com/svn/trunk@123 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
@@ -47,7 +47,7 @@ import com.jme.util.LoggingSystem; | ||
47 | 47 | * continues to run until finish is called. |
48 | 48 | * |
49 | 49 | * @author Mark Powell |
50 | - * @version $Id: AbstractGame.java,v 1.1 2003-10-02 15:01:17 mojomonkey Exp $ | |
50 | + * @version $Id: AbstractGame.java,v 1.2 2003-10-27 21:34:53 mojomonkey Exp $ | |
51 | 51 | */ |
52 | 52 | |
53 | 53 | public abstract class AbstractGame { |
@@ -150,6 +150,14 @@ public abstract class AbstractGame { | ||
150 | 150 | noDialog = value; |
151 | 151 | dialogRequested = false; |
152 | 152 | } |
153 | + | |
154 | + /** | |
155 | + * <code>finish</code> is called to break out of the main game loop. This | |
156 | + * method is final and cannot be overridden. | |
157 | + */ | |
158 | + public final void finish() { | |
159 | + finished = true; | |
160 | + } | |
153 | 161 | |
154 | 162 | /** |
155 | 163 | * <code>quit</code> is called to exit the program. By default it simply |
@@ -161,14 +169,6 @@ public abstract class AbstractGame { | ||
161 | 169 | } |
162 | 170 | |
163 | 171 | /** |
164 | - * <code>finish</code> is called to break out of the main game loop. This | |
165 | - * method is final and cannot be overridden. | |
166 | - */ | |
167 | - protected final void finish() { | |
168 | - finished = true; | |
169 | - } | |
170 | - | |
171 | - /** | |
172 | 172 | * <code>update</code> is called each frame and is intended to update |
173 | 173 | * the game state. That is run physics for game entities, check scores, |
174 | 174 | * etc. |