aboutsummaryrefslogtreecommitdiff
path: root/PunchingBag/src/uk/ac/open/punchingbag/Contact.java
diff options
context:
space:
mode:
Diffstat (limited to 'PunchingBag/src/uk/ac/open/punchingbag/Contact.java')
-rw-r--r--PunchingBag/src/uk/ac/open/punchingbag/Contact.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/PunchingBag/src/uk/ac/open/punchingbag/Contact.java b/PunchingBag/src/uk/ac/open/punchingbag/Contact.java
new file mode 100644
index 0000000..b33ef53
--- /dev/null
+++ b/PunchingBag/src/uk/ac/open/punchingbag/Contact.java
@@ -0,0 +1,23 @@
+package uk.ac.open.punchingbag;
+
+
+ public class Contact {
+ // Height of bag is
+
+ public final long time; // Time of the contact with the bag (in millis)
+ public final int x;
+ public final int y;
+ public final int force; // 0 - 100
+
+ Contact(long time, int x, int y, int force) {
+ this.time = time;
+ this.x = x;
+ this.y = y;
+ this.force = force;
+ }
+
+ public String toString() {
+ return "X: " + x + " Y: " + y + " Force: " + force;
+ }
+
+ } \ No newline at end of file