diff options
author | Christopher Baines <cbaines8@gmail.com> | 2011-09-14 10:42:54 +0100 |
---|---|---|
committer | Christopher Baines <cbaines8@gmail.com> | 2011-09-14 10:42:54 +0100 |
commit | ae8432ffe5cea8421b04068d0fe62d8e15175505 (patch) | |
tree | 118bb4c9ed8270fdf194b92ae216e1c85c0c4f6f /PunchingBag/src/uk/ac/open/punchingbag/Contact.java | |
parent | f4b220237f3e7d16618c9e95ebb03a9fb6991aa2 (diff) | |
download | punchingbag-ae8432ffe5cea8421b04068d0fe62d8e15175505.tar punchingbag-ae8432ffe5cea8421b04068d0fe62d8e15175505.tar.gz |
New package management, needs more work, not enough is public. Split
programs from the gui, these are included as examples.
Diffstat (limited to 'PunchingBag/src/uk/ac/open/punchingbag/Contact.java')
-rw-r--r-- | PunchingBag/src/uk/ac/open/punchingbag/Contact.java | 23 |
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 |