update javadoc

This commit is contained in:
MitchWeaver
2016-07-28 18:05:19 -05:00
parent efea91b26f
commit 0826fa0bfc
8 changed files with 15 additions and 14 deletions

View File

@@ -24,7 +24,7 @@ import sjgs.utils.tools.Timer;
class __PhysicsDemonstration extends Engine {
public __PhysicsDemonstration(final int WIDTH, final int HEIGHT, final String title) { super(WIDTH, HEIGHT, title); }
public static void main(final String[] args) {
engine = new __PhysicsDemonstration(1280, 720, "Physics Demonstration");
}

View File

@@ -111,8 +111,8 @@ public abstract class GameObject implements Serializable {
public boolean facingRight() { return bounds.facingRight(); }
public void setFacing(final Facing facing) { bounds.setFacing(facing); }
public Type getType() { return bounds.getType(); }
public PyFunction createPyFunction(String funcName) { return PyUtils.createPyFunction(funcName); }
public PyFunction createPyFunction(final String funcName) { return PyUtils.createPyFunction(funcName); }
public Point2f getTopRight() { return getBounds().getTopRight(); }
public Point2f getTopLeft() { return getBounds().getTopLeft(); }

View File

@@ -34,9 +34,9 @@ public abstract class PlayerBase extends GameObject implements Serializable {
@Override
protected void removeFromHandler() { Handler.removePlayer(this); }
public void setLookingUp(boolean b) { this.lookingUp = b; }
public void setLookingUp(final boolean b) { lookingUp = b; }
public boolean getLookingUp() { return lookingUp; }
public void setLookingDown(boolean b) { this.lookingDown = b; }
public void setLookingDown(final boolean b) { lookingDown = b; }
public boolean getLookingDown() { return lookingDown; }
public void setJumping(final boolean jumping) { this.jumping = jumping; }
public boolean getJumping() { return jumping; }

View File

@@ -37,7 +37,7 @@ public abstract class Engine extends Canvas implements Runnable, Serializable {
public final JFrame frame;
public final JPanel panel;
public final Camera camera;
public final PyObject self;
public Engine(final int WIDTH, final int HEIGHT, final String title) {
@@ -55,13 +55,13 @@ public abstract class Engine extends Canvas implements Runnable, Serializable {
}).run();
new Jython().__init__();
createWindow(WIDTH, HEIGHT, title);
camera = new Camera(this);
init();
self = java2py(this);
pool.runTask(this);

View File

@@ -1,5 +1,6 @@
package sjgs.utils.multithreading;
public class Runner extends Thread {
private final Executable e;

View File

@@ -25,8 +25,8 @@ public class PyUtils {
Jython.pi.execfile(filename);
try { in.close(); in = null; } catch (final Exception e) { e.printStackTrace(); }
}
public static PyFunction createPyFunction(String funcName) { return pi.get(funcName, PyFunction.class); }
public static PyFunction createPyFunction(final String funcName) { return pi.get(funcName, PyFunction.class); }
public static PyObject java2py(final Object o) { return Py.java2py(o); }
public static PyInteger int2py(final int i) { return new PyInteger(i); }

View File

@@ -1,7 +1,7 @@
package sjgs.world_generation;
public interface Action {
public abstract void run(int x, int y);
}