summaryrefslogtreecommitdiff
path: root/client/activity-demo/src/com/example/piztor/Controller.java
blob: 6e555810fcce142f930fd927e36b37c17d0218de (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
30
package com.example.piztor;

import java.io.Serializable;
import android.content.Intent;

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) {
		run.v.drawLocation(x, y);
	}
}