View Javadoc

1   /*
2      IMPORTANT !!!
3   
4      DO NOT EDIT THIS FILE. IT IS GENERATED FROM APPROPRIATE XML FILE
5      BY THE MessagesGenerator.xslt.
6      MODIFY THAT FILE INSTEAD OF THIS ONE.
7   
8    */
9   package cz.cuni.amis.pogamut.defcon.communication.messages.infos;
10  
11  import cz.cuni.amis.pogamut.base.communication.messages.*;
12  import cz.cuni.amis.pogamut.base.communication.worldview.*;
13  import cz.cuni.amis.pogamut.base.communication.worldview.object.*;
14  import cz.cuni.amis.pogamut.defcon.base3d.worldview.object.DefConLocation;
15  import cz.cuni.amis.pogamut.defcon.communication.messages.*;
16  import cz.cuni.amis.pogamut.defcon.communication.messages.commands.*;
17  import cz.cuni.amis.pogamut.defcon.communication.messages.infos.*;
18  import cz.cuni.amis.pogamut.defcon.consts.*;
19  import cz.cuni.amis.pogamut.defcon.consts.state.*;
20  import cz.cuni.amis.utils.exception.*;
21  
22  import java.util.*;
23  
24  import javabot.*;
25  
26  
27  /**
28   * Informs about change in running state of victory time.
29   */
30  public class VictoryTimerActiveChanged extends DefConEvent {
31      /**
32       * Is victory timer active?
33       */
34      private Boolean victoryTimerActive = null;
35  
36  /**
37                            Creates new instance of message VictoryTimerActiveChanged.
38                            
39                  Informs about change in running state of victory time.
40          
41                       @param
42                        victoryTimerActive Is victory timer active?
43              @param time
44                   */
45      public VictoryTimerActiveChanged(Boolean victoryTimerActive, double time) {
46          super(time);
47  
48          this.victoryTimerActive = victoryTimerActive;
49      }
50  
51      /**
52       * Is victory timer active?
53       *
54       * @return Boolean
55       */
56      public Boolean getVictoryTimerActive() {
57          return this.victoryTimerActive;
58      }
59  
60      /**
61       * Returns human readable serialization of the message.
62       *
63       * @return human readable string
64       */
65      @Override
66      public String toString() {
67          return "VictoryTimerActiveChanged[" + getStringizedFields() + "; VictoryTimerActive = " +
68          this.victoryTimerActive + "]";
69      }
70  
71      /**
72       * Returns message in html format.
73       *
74       * @return html message
75       */
76      public String toHtmlString() {
77          return "<p><b>VictoryTimerActiveChanged:</b></p>" + "<p><i>VictoryTimerActive:</i> " +
78          this.victoryTimerActive + "</p>";
79      }
80  }