Browse Source

Remove SquidTags

smelc 7 years ago
parent
commit
85d6637afb

+ 1 - 1
.classpath

@@ -21,7 +21,7 @@
 		</attributes>
 	</classpathentry>
 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
-	<classpathentry kind="lib" path="/home/churlin/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx/1.9.6/47d1e9b890e364ec28f128e9bb3b9a12a94c164/gdx-1.9.6.jar" sourcepath="/home/churlin/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx/1.9.6/7d903ecd6b0df2ec334814b8e70618e4c93fd37c/gdx-1.9.6-sources.jar"/>
+	<classpathentry kind="lib" path="/home/churlin/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx/1.9.6/47d1e9b890e364ec28f128e9bb3b9a12a94c164/gdx-1.9.6.jar" sourcepath="/home/churlin/PERSONNEL/hgames/gdx-1.9.6-sources.jar"/>
 	<classpathentry kind="lib" path="/home/churlin/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-backend-lwjgl/1.9.6/ee7c23636ee4a942d329579daecc3ec5e517fe4c/gdx-backend-lwjgl-1.9.6.jar" sourcepath="/home/churlin/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-backend-lwjgl/1.9.6/54887b828ab0c6c55deae03b0cca70c31531bacd/gdx-backend-lwjgl-1.9.6-sources.jar"/>
 	<classpathentry kind="lib" path="/home/churlin/.gradle/caches/modules-2/files-2.1/com.badlogicgames.gdx/gdx-platform/1.9.6/6f84dd7a18dc68e4ec492dfbb0594f930babcf63/gdx-platform-1.9.6-natives-desktop.jar"/>
 	<classpathentry kind="lib" path="/home/churlin/.gradle/caches/modules-2/files-2.1/org.lwjgl.lwjgl/lwjgl/2.9.2/a9d80fe5935c7a9149f6584d9777cfd471f65489/lwjgl-2.9.2.jar" sourcepath="/home/churlin/.gradle/caches/modules-2/files-2.1/org.lwjgl.lwjgl/lwjgl/2.9.2/4d114b5ef3ad3bf571b1f090cb00855991067e0b/lwjgl-2.9.2-sources.jar"/>

+ 0 - 34
squidlib-util/src/main/java/squidpony/SquidTags.java

@@ -1,34 +0,0 @@
-package squidpony;
-
-/**
- * Tags used by SquidLib when calling libgdx's logging system. In the
- * {@code util}-part nevertheless, in case you define a {@code util}-only
- * interface that is backed up libgdx's logging system.
- * 
- * <p>
- * Tags used are gathered here, so that one can quickly the tags that SquidLib
- * use. This can be useful when analyzing logs generated by SquidLib. They are
- * all prefixed by {@code "squid"} so that one can filter the (very large)
- * output of android by the prefix of each line.
- * </p>
- * 
- * @author smelC
- */
-public class SquidTags {
-
-	/**
-	 * Use this tag when logging things about generating dungeons, monster, etc.
-	 */
-	public static final String GENERATION = "squid generation";
-
-	/**
-	 * Use this tag when logging things about the screen's layout.
-	 */
-	public static final String LAYOUT = "squid layout";
-
-	/**
-	 * Use this tag when logging things about AbstractSquidScreen or other
-	 * screen-changing methods if your display has them..
-	 */
-	public static final String SCREEN = "squid screen";
-}

+ 0 - 99
squidlib/src/main/java/squidpony/squidgrid/gui/gdx/SquidApplicationAdapter.java

@@ -1,99 +0,0 @@
-package squidpony.squidgrid.gui.gdx;
-
-import com.badlogic.gdx.ApplicationAdapter;
-import com.badlogic.gdx.Gdx;
-import com.badlogic.gdx.graphics.Color;
-import squidpony.SquidTags;
-
-/**
- * A partial application adapter that uses the Zodiac-Square fonts. It should be
- * completed as follows: the {@link #create()} method should assign
- * {@link #screen}. Then, you should implement
- * {@link AbstractSquidScreen#getNext()}; and you'll be done.
- * 
- * @author smelC
- */
-public class SquidApplicationAdapter extends ApplicationAdapter {
-
-	protected final IPanelBuilder ipb;
-
-	/** Should be assigned in {@link #create()} */
-	protected /* @Nullable */ AbstractSquidScreen<Color> screen;
-
-	/**
-	 *            An {@link IPanelBuilder} that specifies which font sizes are
-	 *            available. Use {@link IPanelBuilder.Skeleton} to help build
-	 *            this instance.
-	 */
-	public SquidApplicationAdapter() {
-		this.ipb = new SquidPanelBuilder(12, 24, 0, DefaultResources.getSCC(), null) {
-			@Override
-			protected String fontfile(int sz) {
-				if (sz == 12)
-					return "Zodiac-Square-12x12.fnt";
-				else if (sz == 24)
-					return "Zodiac-Square-24x24.fnt";
-				else
-					throw new IllegalStateException(
-							"Sorry! This panel builder only supports a square font of size 12 or 24");
-			}
-		};
-	}
-
-	@Override
-	public void render() {
-		if (screen == null) {
-			/* Weird */
-			Gdx.app.log(SquidTags.SCREEN,
-					"Unexpected state in " + getClass().getSimpleName() + ". Did create get called ?");
-			return;
-		}
-
-		if (screen.isDisposed()) {
-			screen = screen.getNext();
-			if (screen == null) {
-				/* Quit */
-				Gdx.app.exit();
-				/* This point is unreachable */
-			}
-		} else if (screen.hasPendingResize())
-			/* Rebuild a new screen */
-			screen = screen.getNext();
-		else
-			/* Normal behavior, forward */
-			screen.render(Gdx.graphics.getDeltaTime());
-	}
-
-	@Override
-	public void resize(int width, int height) {
-		if (screen == null) {
-			/* Weird */
-			Gdx.app.log(SquidTags.SCREEN,
-					"Unexpected state in " + getClass().getSimpleName() + ". Did create get called ?");
-		} else
-			/* forward */
-			screen.resize(width, height);
-	}
-
-	@Override
-	public void pause() {
-		if (screen != null)
-			/* forward */
-			screen.pause();
-	}
-
-	@Override
-	public void resume() {
-		if (screen != null)
-			/* forward */
-			screen.pause();
-	}
-
-	@Override
-	public void dispose() {
-		if (screen != null)
-			/* forward, to clean up */
-			screen.dispose();
-	}
-
-}