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   * Invalid object from the world.
29   */
30  public class InvalidObject extends DefConObject {
31  /**
32                                    Creates new instance of object InvalidObject with specific id.
33                                    
34                  Invalid object from the world.
35          
36                                    @param id        Game id of this object.
37                            
38                @param time Time of last update of this object (time of first spotting in this case). 
39                           */
40      public InvalidObject(int id, double time) {
41          super(id, UnitType.INVALID, time);
42      }
43  
44  /**
45                                   * Cloning constructor...
46                                   * @param original
47                                   */
48      public InvalidObject(InvalidObject original) {
49          super(original);
50      }
51  
52      /**
53       * Returns human readable serialization of the message.
54       *
55       * @return human readable string
56       */
57      @Override
58      public String toString() {
59          return "InvalidObject[" + getStringizedFields() + "]";
60      }
61  
62      /**
63       * Returns message in html format.
64       *
65       * @return html message
66       */
67      public String toHtmlString() {
68          return "<p><b>InvalidObject:</b></p>";
69      }
70  }