From ae8432ffe5cea8421b04068d0fe62d8e15175505 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Wed, 14 Sep 2011 10:42:54 +0100 Subject: New package management, needs more work, not enough is public. Split programs from the gui, these are included as examples. --- .../src/uk/ac/open/punchingbag/Contact.java | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 PunchingBag/src/uk/ac/open/punchingbag/Contact.java (limited to 'PunchingBag/src/uk/ac/open/punchingbag/Contact.java') 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 -- cgit v1.2.3