Skip to content

Commit

Permalink
removed deprecated setKeyBindings method and built jar
Browse files Browse the repository at this point in the history
  • Loading branch information
viking-sudo-rm committed Nov 23, 2016
1 parent 478112b commit 2fe9f7d
Show file tree
Hide file tree
Showing 14 changed files with 1 addition and 31 deletions.
Binary file modified bin/snorri/main/FocusedWindow.class
Binary file not shown.
Binary file modified bin/snorri/main/GamePanel.class
Binary file not shown.
Binary file modified bin/snorri/main/LoadingScreen.class
Binary file not shown.
Binary file modified bin/snorri/main/MainMenu.class
Binary file not shown.
Binary file modified bin/snorri/overlay/DeathScreen.class
Binary file not shown.
Binary file modified bin/snorri/overlay/Overlay.class
Binary file not shown.
12 changes: 0 additions & 12 deletions src/snorri/main/FocusedWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,18 +141,6 @@ public Vector getShotDirection() {

public abstract Playable getUniverse();

//TODO we can port all input to use KeyBindings instead of KeyListeners
@Override
public void setKeyBindings() {
// Main.log("key bindings set");
// for (Key k : Key.values()) {
// getInputMap().put(KeyStroke.getKeyStroke(k.getCode(), 0), "press" + k.ordinal());
// getInputMap().put(KeyStroke.getKeyStroke(k.getCode(), 0, true), "release" + k.ordinal());
// getActionMap().put("press" + k.ordinal(), new KeyAction(k.getCode(), states, true));
// getActionMap().put("release" + k.ordinal(), new KeyAction(k.getCode(), states, false));
// }
}

public KeyStates getKeyStates() {
return states;
}
Expand Down
2 changes: 0 additions & 2 deletions src/snorri/main/GamePanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,4 @@ protected long getTimestamp() {
return System.nanoTime();
}

public abstract void setKeyBindings();

}
2 changes: 1 addition & 1 deletion src/snorri/main/GameWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void paintComponent(Graphics g){
long time = getTimestamp();
double deltaTime = (time - lastRenderTime) / 1000000000d;
lastRenderTime = time;

super.paintComponent(g);

universe.getCurrentWorld().render(this, g, deltaTime, true);
Expand Down
4 changes: 0 additions & 4 deletions src/snorri/main/LoadingScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,4 @@ public void paintComponent(Graphics g) {
public void actionPerformed(ActionEvent e) {
}

@Override
public void setKeyBindings() {
}

}
4 changes: 0 additions & 4 deletions src/snorri/main/MainMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,5 @@ public void actionPerformed(ActionEvent e) {
//TODO: for continue story, look to saved campaign

}

@Override
public void setKeyBindings() {
}

}
4 changes: 0 additions & 4 deletions src/snorri/overlay/DeathScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,5 @@ public void actionPerformed(ActionEvent e) {
Main.launchMenu();
}
}

@Override
public void setKeyBindings() {
}

}
4 changes: 0 additions & 4 deletions src/snorri/overlay/Overlay.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,4 @@ public HTMLEditorKit getHTMLEditorKit() {
return kit;
}

@Override
public void setKeyBindings() {
}

}
Binary file modified thoth.jar
Binary file not shown.

0 comments on commit 2fe9f7d

Please sign in to comment.