summary refs log tree commit diff stats
path: root/src/com/fourisland/fourpuzzle/gamestate/GameOverGameState.java
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-01-24 15:25:58 -0500
committerStarla Insigna <hatkirby@fourisland.com>2009-01-24 15:25:58 -0500
commitcd6b39590b8aced78fc2f6ed0c345fb9af1960c0 (patch)
tree807bc48adeb2a78a3f1d9b93f3471012509b5e51 /src/com/fourisland/fourpuzzle/gamestate/GameOverGameState.java
parenta581d9b4136bb633771e5e881bbee5a36247b0e0 (diff)
downloadfourpuzzle-cd6b39590b8aced78fc2f6ed0c345fb9af1960c0.tar.gz
fourpuzzle-cd6b39590b8aced78fc2f6ed0c345fb9af1960c0.tar.bz2
fourpuzzle-cd6b39590b8aced78fc2f6ed0c345fb9af1960c0.zip
Replaced checked exceptions with RuntimeException
Diffstat (limited to 'src/com/fourisland/fourpuzzle/gamestate/GameOverGameState.java')
-rw-r--r--src/com/fourisland/fourpuzzle/gamestate/GameOverGameState.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/com/fourisland/fourpuzzle/gamestate/GameOverGameState.java b/src/com/fourisland/fourpuzzle/gamestate/GameOverGameState.java index ebff457..48706ad 100644 --- a/src/com/fourisland/fourpuzzle/gamestate/GameOverGameState.java +++ b/src/com/fourisland/fourpuzzle/gamestate/GameOverGameState.java
@@ -22,17 +22,18 @@ import java.util.logging.Logger;
22 */ 22 */
23public class GameOverGameState implements GameState { 23public class GameOverGameState implements GameState {
24 24
25 public void initalize() throws Exception 25 public void initalize()
26 { 26 {
27 Audio.playMusic("GameOver"); 27 Audio.playMusic("GameOver");
28 } 28 }
29 29
30 public void deinitalize() throws Exception 30 public void deinitalize()
31 { 31 {
32 Audio.stopMusic(); 32 Audio.stopMusic();
33 } 33 }
34 34
35 public void processInput() throws Exception { 35 public void processInput()
36 {
36 if ((Game.getKey().getKeyCode() == KeyEvent.VK_ENTER) || (Game.getKey().getKeyCode() == KeyEvent.VK_SPACE)) 37 if ((Game.getKey().getKeyCode() == KeyEvent.VK_ENTER) || (Game.getKey().getKeyCode() == KeyEvent.VK_SPACE))
37 { 38 {
38 Game.setSaveFile(new SaveFile()); 39 Game.setSaveFile(new SaveFile());
@@ -49,11 +50,13 @@ public class GameOverGameState implements GameState {
49 } 50 }
50 } 51 }
51 52
52 public void doGameCycle() throws Exception { 53 public void doGameCycle()
54 {
53 // Do nothing 55 // Do nothing
54 } 56 }
55 57
56 public void render(Graphics2D g) throws Exception { 58 public void render(Graphics2D g)
59 {
57 g.drawImage(ObjectLoader.getImage("Picture", "GameOver"), 0, 0, null); 60 g.drawImage(ObjectLoader.getImage("Picture", "GameOver"), 0, 0, null);
58 } 61 }
59 62