View Javadoc

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  		Will trigger some of the native animations.
35  	
36                            Corresponding GameBots command is
37                            ACT.
38                        
39               */
40              
41              public class
42              Act extends
43          CommandMessage
44  
45              {
46              
47              /**
48                Creates new instance of command Act.
49                
50  		Will trigger some of the native animations.
51  	Corresponding GameBots message for this command is
52                ACT.
53                    @param Name Name of the animation. Possible animations: gesture_beckon, gesture_cheer, gesture_halt, gesture_point, Gesture_Taunt01, PThrust, AssSmack, ThroatCut, Specific_1, Gesture_Taunt02, Idle_Character02, Idle_Character03, Gesture_Taunt03.
54                */
55               public Act(
56                  String Name) {
57                      
58                      this.Name = Name;
59                  
60                  }
61  
62              
63              		/**
64  		             Creates new instance of command Act.
65  		             
66  		Will trigger some of the native animations.
67  	Corresponding GameBots message for this command is
68  		             ACT.
69  		             <p></p>WARNING: this is empty-command constructor, you have to use setters to fill it up!
70  		             */
71              		public  Act() {
72              		}
73              	
74  
75              /////// Properties BEGIN
76              
77          /**
78          Name of the animation. Possible animations: gesture_beckon, gesture_cheer, gesture_halt, gesture_point, Gesture_Taunt01, PThrust, AssSmack, ThroatCut, Specific_1, Gesture_Taunt02, Idle_Character02, Idle_Character03, Gesture_Taunt03. */
79          protected
80           String Name =
81          	null;
82  
83          
84          /**
85          Name of the animation. Possible animations: gesture_beckon, gesture_cheer, gesture_halt, gesture_point, Gesture_Taunt01, PThrust, AssSmack, ThroatCut, Specific_1, Gesture_Taunt02, Idle_Character02, Idle_Character03, Gesture_Taunt03. */
86          public
87          String getName() {
88              return
89           Name;
90          }
91          
92  
93          
94              /**
95          Name of the animation. Possible animations: gesture_beckon, gesture_cheer, gesture_halt, gesture_point, Gesture_Taunt01, PThrust, AssSmack, ThroatCut, Specific_1, Gesture_Taunt02, Idle_Character02, Idle_Character03, Gesture_Taunt03. */
96          public Act setName(String Name) {
97              this.Name = Name;
98              return this;
99              }
100        
101             /////// Properties END
102 
103             /////// Extra Java code BEGIN
104 
105             	/////// Additional code from xslt BEGIN
106             		
107 
108 
109             	/////// Additional code from xslt END
110 
111 	            /////// Extra Java from XML BEGIN
112             		
113             	/////// Extra Java from XML END
114 
115             /////// Extra Java code END
116 
117             
118 
119             /**
120               * Cloning constructor.
121               */
122              public Act(Act original) {
123                 
124                      this.Name=original.Name;
125                 
126              }
127 
128              
129 
130                  
131             public String toString() {
132                 return
133                 
134                     	toMessage();
135                     
136              }
137 
138              public String toHtmlString() {
139                 return super.toString() +
140             
141             "<b>Name</b> : " +
142             String.valueOf(Name) +
143             " <br/> " +
144              "";
145              }
146 
147              
148              
149              	 public String toMessage() {
150               		StringBuffer buf = new StringBuffer();
151               		buf.append("ACT");
152               		
153 		    					if (Name != null) {
154 		    						buf.append(" {Name " + Name + "}");
155 		    					}
156 		    				
157             		return buf.toString();
158             }
159              
160              }
161 
162