aboutsummaryrefslogtreecommitdiff
path: root/PunchingBag/src/Contact.java
diff options
context:
space:
mode:
Diffstat (limited to 'PunchingBag/src/Contact.java')
-rw-r--r--PunchingBag/src/Contact.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/PunchingBag/src/Contact.java b/PunchingBag/src/Contact.java
new file mode 100644
index 0000000..8e8970b
--- /dev/null
+++ b/PunchingBag/src/Contact.java
@@ -0,0 +1,19 @@
+
+
+ class Contact {
+ // Height of bag is
+
+ final long time; // Time of the contact with the bag (in millis)
+ final int x;
+ final int y;
+ final int strength; // 0 - 100
+
+ Contact(long time, int x, int y, int strength) {
+ this.time = time;
+ this.x = x;
+ this.y = y;
+ this.strength = strength;
+ }
+
+
+ } \ No newline at end of file