blob: b33ef53411b45680f4a94ab8a791398d95dd0d85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
}
}
|