1 package net.sourceforge.basher.events;
2
3
4
5
6
7 public class TickEvent extends BasherEvent
8 {
9 private final long _tick;
10
11 public TickEvent(final long tick)
12 {
13 _tick = tick;
14 }
15
16 public long getTick()
17 {
18 return _tick;
19 }
20
21
22 public String toString()
23 {
24 return "TickEvent{" +
25 "_tick=" + _tick +
26 '}';
27 }
28
29 public boolean equals(final Object o)
30 {
31 if (this == o)
32 {
33 return true;
34 }
35 if (o == null || getClass() != o.getClass())
36 {
37 return false;
38 }
39
40 final TickEvent event = (TickEvent) o;
41
42 if (_tick != event._tick)
43 {
44 return false;
45 }
46
47 return true;
48 }
49
50 public int hashCode()
51 {
52 return (int) (_tick ^ (_tick >>> 32));
53 }
54 }