blob: d6e75d72ed231014504c3583bc9f0bbf4c360ce2 (
plain) (
tree)
|
|
package com.example.piztor;
public class Controller {
String userToken;
Running run;
Controller() {
run = null;
userToken = null;
}
void setRun(Running run) {
this.run = run;
}
void recieveInfo(Myrespond r) {
if (r.wrong != null) {
System.out.println(r.wrong);
} else {
System.out.println("yeal!");
}
}
void recieveLocation(double x, double y) {
System.out.println(x + " xxxx " + y);
run.v.changMyLocation(x, y);
}
}
|