diff options
Diffstat (limited to 'client/activity-demo/Piztor/src/com/example/piztor/Controller.java')
-rw-r--r-- | client/activity-demo/Piztor/src/com/example/piztor/Controller.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/client/activity-demo/Piztor/src/com/example/piztor/Controller.java b/client/activity-demo/Piztor/src/com/example/piztor/Controller.java new file mode 100644 index 0000000..d6e75d7 --- /dev/null +++ b/client/activity-demo/Piztor/src/com/example/piztor/Controller.java @@ -0,0 +1,29 @@ +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); + } +} |