1 package cz.cuni.amis.pogamut.defcon.communication.messages.infos;
2
3 import cz.cuni.amis.pogamut.base.communication.translator.event.IWorldChangeEvent;
4 import cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEvent;
5
6 import javabot.events.IDefConBasicEvent;
7
8
9
10
11
12 public class DefConEvent implements IDefConBasicEvent, IWorldEvent {
13
14
15
16 private double time;
17
18
19
20
21 public DefConEvent() {
22 }
23
24
25
26
27
28
29 public DefConEvent(double time) {
30 this.time = time;
31 }
32
33
34
35
36
37
38 public double getTime() {
39 return time;
40 }
41
42
43
44
45
46
47 public String getStringizedFields() {
48 return "time: " + time;
49 }
50
51
52
53
54
55
56
57 @Override
58 public long getSimTime() {
59 return (long) time;
60 }
61 }