1
2 /**
3 IMPORTANT !!!
4
5 DO NOT EDIT THIS FILE. IT IS GENERATED FROM approriate xml file in xmlresources/gbcommands BY
6 THE JavaClassesGenerator.xslt. MODIFY THESE FILES INSTEAD OF THIS ONE.
7
8 IMPORTANT END !!!
9 */
10 package
11 cz.cuni.amis.pogamut.udk.communication.messages.gbcommands;
12 import java.util.*;
13 import javax.vecmath.*;
14 import cz.cuni.amis.pogamut.base.communication.messages.*;
15 import cz.cuni.amis.pogamut.base.communication.worldview.*;
16 import cz.cuni.amis.pogamut.base.communication.worldview.event.*;
17 import cz.cuni.amis.pogamut.base.communication.worldview.object.*;
18 import cz.cuni.amis.pogamut.base.communication.translator.event.*;
19 import cz.cuni.amis.pogamut.base3d.worldview.object.*;
20 import cz.cuni.amis.pogamut.base3d.worldview.object.event.*;
21 import cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId;
22 import cz.cuni.amis.pogamut.udk.communication.messages.*;
23 import cz.cuni.amis.pogamut.udk.communication.worldview.objects.*;
24 import cz.cuni.amis.pogamut.udk.communication.translator.itemdescriptor.*;
25 import cz.cuni.amis.pogamut.udk.communication.messages.ItemType.Category;
26 import cz.cuni.amis.utils.exception.*;
27 import cz.cuni.amis.pogamut.base.communication.translator.event.IWorldObjectUpdateResult.Result;
28 import cz.cuni.amis.utils.SafeEquals;
29 import cz.cuni.amis.pogamut.multi.communication.worldview.object.*;
30
31
32 /**
33
34 Without any parameters. Will drop your current weapon (if it is
35 possible) and will change to best weapon available. If done
36 successfully, message THROWN will come right away.
37
38 Corresponding GameBots command is
39 THROW.
40
41 */
42
43 public class
44 Throw extends
45 CommandMessage
46
47 {
48
49 /**
50 Creates new instance of command Throw.
51
52 Without any parameters. Will drop your current weapon (if it is
53 possible) and will change to best weapon available. If done
54 successfully, message THROWN will come right away.
55 Corresponding GameBots message for this command is
56 THROW.
57 */
58 public Throw(
59 ) {
60
61 }
62
63
64
65 /////// Properties BEGIN
66
67 /////// Properties END
68
69 /////// Extra Java code BEGIN
70
71 /////// Additional code from xslt BEGIN
72
73
74
75 /////// Additional code from xslt END
76
77 /////// Extra Java from XML BEGIN
78
79 /////// Extra Java from XML END
80
81 /////// Extra Java code END
82
83
84
85 /**
86 * Cloning constructor.
87 */
88 public Throw(Throw original) {
89
90 }
91
92
93
94
95 public String toString() {
96 return
97
98 toMessage();
99
100 }
101
102 public String toHtmlString() {
103 return super.toString() +
104 "";
105 }
106
107
108
109 public String toMessage() {
110 StringBuffer buf = new StringBuffer();
111 buf.append("THROW");
112
113 return buf.toString();
114 }
115
116 }
117
118