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 game being replayed.
29   */
30  public class DebugIsReplayingGameChanged extends DefConEvent {
31      /**
32       * Is debug replay running?
33       */
34      private Boolean debugIsReplayingGame = null;
35  
36  /**
37                            Creates new instance of message DebugIsReplayingGameChanged.
38                            
39                  Informs about game being replayed.
40          
41                       @param
42                        debugIsReplayingGame Is debug replay running?
43              @param time
44                   */
45      public DebugIsReplayingGameChanged(Boolean debugIsReplayingGame, double time) {
46          super(time);
47  
48          this.debugIsReplayingGame = debugIsReplayingGame;
49      }
50  
51      /**
52       * Is debug replay running?
53       *
54       * @return Boolean
55       */
56      public Boolean getDebugIsReplayingGame() {
57          return this.debugIsReplayingGame;
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 "DebugIsReplayingGameChanged[" + getStringizedFields() +
68          "; DebugIsReplayingGame = " + this.debugIsReplayingGame + "]";
69      }
70  
71      /**
72       * Returns message in html format.
73       *
74       * @return html message
75       */
76      public String toHtmlString() {
77          return "<p><b>DebugIsReplayingGameChanged:</b></p>" + "<p><i>DebugIsReplayingGame:</i> " +
78          this.debugIsReplayingGame + "</p>";
79      }
80  }