Fixed radials, refactored shuttle timer (works now), shuttleport can no longer travel to starports on other planets and vice versa...

...added almost all of the missing travel points
This commit is contained in:
Light2
2013-11-25 00:09:41 +01:00
parent a6ecdcd225
commit cf485b33b7
12 changed files with 216 additions and 51 deletions
+6
View File
@@ -45,6 +45,7 @@ public class ScriptService {
PyObject func = interpreter.get(method);
func.__call__(Py.java2py(core));*/
PythonInterpreter python = new PythonInterpreter();
python.cleanup();
python.execfile(path + module + ".py");
return python.get(method).__call__();
}
@@ -56,6 +57,7 @@ public class ScriptService {
PyObject func = interpreter.get(method);
func.__call__(Py.java2py(core), Py.java2py(arg1));*/
PythonInterpreter python = new PythonInterpreter();
python.cleanup();
python.execfile(path + module + ".py");
return python.get(method).__call__(Py.java2py(arg1));
}
@@ -67,6 +69,7 @@ public class ScriptService {
PyObject func = interpreter.get(method);
func.__call__(Py.java2py(arg1), Py.java2py(arg2));*/
PythonInterpreter python = new PythonInterpreter();
python.cleanup();
python.execfile(path + module + ".py");
return python.get(method).__call__(Py.java2py(arg1), Py.java2py(arg2));
}
@@ -78,6 +81,7 @@ public class ScriptService {
PyObject func = interpreter.get(method);
func.__call__(Py.java2py(arg1), Py.java2py(arg2), Py.java2py(arg3));*/
PythonInterpreter python = new PythonInterpreter();
python.cleanup();
python.execfile(path + module + ".py");
return python.get(method).__call__(Py.java2py(arg1), Py.java2py(arg2), Py.java2py(arg3));
@@ -90,12 +94,14 @@ public class ScriptService {
PyObject func = interpreter.get(method);
func.__call__(Py.java2py(arg1), Py.java2py(arg2), Py.java2py(arg3), Py.java2py(arg4));*/
PythonInterpreter python = new PythonInterpreter();
python.cleanup();
python.execfile(path + module + ".py");
return python.get(method).__call__(Py.java2py(arg1), Py.java2py(arg2), Py.java2py(arg3), Py.java2py(arg4));
}
public PyObject getMethod(String path, String module, String method) {
PythonInterpreter python = new PythonInterpreter();
python.cleanup();
python.execfile(path + module + ".py");
PyObject func = python.get(method);
return func;