summaryrefslogtreecommitdiff
path: root/client/activity-demo/Piztor/src/com/example/piztor/Controller.java
blob: d6e75d72ed231014504c3583bc9f0bbf4c360ce2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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);
	}
}