Skip to content

Commit

Permalink
Client: Remove AGolf class
Browse files Browse the repository at this point in the history
It only does a single thing, overriding the getAppletInfo method of its
parent class. Instead, the implementation can be moved into the parent
and the class can be removed.
  • Loading branch information
StenAL committed Nov 23, 2024
1 parent d5897e4 commit 07d96b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
8 changes: 0 additions & 8 deletions client/src/main/java/agolf/AGolf.java

This file was deleted.

5 changes: 5 additions & 0 deletions client/src/main/java/agolf/GameApplet.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ public void initApplet(Parameters parameters) {
this.aBoolean3773 = false;
}

@Override
public String getAppletInfo() {
return "-= AGolf =-\nCopyright (c) 2002-2012 Playforia (www.playforia.info)\nProgramming: Pasi Laaksonen\nGraphics: Janne Matilainen";
}

public void textsLoadedNotify(TextManager textManager) {
this.gameContainer.textManager = textManager;
}
Expand Down
4 changes: 2 additions & 2 deletions client/src/main/java/org/moparforia/client/Game.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.moparforia.client;

import agolf.AGolf;
import agolf.GameApplet;
import java.applet.Applet;
import java.applet.AppletContext;
import java.applet.AppletStub;
Expand All @@ -16,7 +16,7 @@ public class Game {

public Game(
JFrame frame, String server, int port, Locale locale, String username, boolean verbose, boolean norandom) {
Applet game = new AGolf();
Applet game = new GameApplet();

game.setStub(new Stub(server, locale, username, port, verbose, norandom));
game.setSize(WIDTH, HEIGHT);
Expand Down

0 comments on commit 07d96b8

Please sign in to comment.