rename log method to sout
This commit is contained in:
parent
68ac7f3d10
commit
cb92d45ae8
|
@ -22,7 +22,7 @@ import org.lwjgl.LWJGLException;
|
||||||
import yugecin.opsudance.core.DisplayContainer;
|
import yugecin.opsudance.core.DisplayContainer;
|
||||||
import yugecin.opsudance.errorhandling.ErrorHandler;
|
import yugecin.opsudance.errorhandling.ErrorHandler;
|
||||||
|
|
||||||
import static yugecin.opsudance.kernel.Entrypoint.log;
|
import static yugecin.opsudance.kernel.Entrypoint.sout;
|
||||||
|
|
||||||
public class OpsuDance {
|
public class OpsuDance {
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ public class OpsuDance {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void start() {
|
public void start() {
|
||||||
log("initialized");
|
sout("initialized");
|
||||||
container.init();
|
container.init();
|
||||||
while (rungame());
|
while (rungame());
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ import java.io.StringWriter;
|
||||||
import java.util.LinkedList;
|
import java.util.LinkedList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static yugecin.opsudance.kernel.Entrypoint.log;
|
import static yugecin.opsudance.kernel.Entrypoint.sout;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* based on org.newdawn.slick.AppGameContainer
|
* based on org.newdawn.slick.AppGameContainer
|
||||||
|
@ -146,7 +146,7 @@ public class DisplayContainer implements ErrorDumpable {
|
||||||
Display.create();
|
Display.create();
|
||||||
GLHelper.setIcons(new String[] { "icon16.png", "icon32.png" });
|
GLHelper.setIcons(new String[] { "icon16.png", "icon32.png" });
|
||||||
setDisplayMode(640, 480, false);
|
setDisplayMode(640, 480, false);
|
||||||
log("GL ready");
|
sout("GL ready");
|
||||||
glVersion = GL11.glGetString(GL11.GL_VERSION);
|
glVersion = GL11.glGetString(GL11.GL_VERSION);
|
||||||
glVendor = GL11.glGetString(GL11.GL_VENDOR);
|
glVendor = GL11.glGetString(GL11.GL_VENDOR);
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,7 @@ public class Entrypoint {
|
||||||
public static final long startTime = System.currentTimeMillis();
|
public static final long startTime = System.currentTimeMillis();
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
log("launched");
|
sout("launched");
|
||||||
InstanceContainerImpl.initialize().provide(OpsuDance.class).start();
|
InstanceContainerImpl.initialize().provide(OpsuDance.class).start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ public class Entrypoint {
|
||||||
return System.currentTimeMillis() - startTime;
|
return System.currentTimeMillis() - startTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void log(String message) {
|
public static void sout(String message) {
|
||||||
System.out.println(String.format("[%7d] %s", runtime(), message));
|
System.out.println(String.format("[%7d] %s", runtime(), message));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user