summaryrefslogtreecommitdiff
path: root/NET/worlds/console/BBChatCommand.java
blob: 2d6e7fe1b84b300a4eda7a0e138e9dd79cc921d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*    */ package NET.worlds.console;
/*    */ 
/*    */ import java.io.DataInputStream;
/*    */ import java.io.DataOutputStream;
/*    */ import java.io.IOException;
/*    */ 
/*    */ public class BBChatCommand extends BlackBoxCommand
/*    */ {
/*    */   private String chatLine;
/*    */   
/*    */   public BBChatCommand(String line)
/*    */   {
/* 13 */     this();
/* 14 */     this.chatLine = new String(line);
/*    */   }
/*    */   
/*    */   public BBChatCommand() {
/* 18 */     this.commandType = 0;
/*    */   }
/*    */   
/*    */   public boolean execute()
/*    */   {
/* 23 */     Console.println(this.chatLine);
/* 24 */     doCallback(true);
/* 25 */     return true;
/*    */   }
/*    */   
/*    */   public void save(DataOutputStream dos) throws IOException
/*    */   {
/* 30 */     super.save(dos);
/* 31 */     dos.writeUTF(this.chatLine);
/*    */   }
/*    */   
/*    */   public void load(DataInputStream dis) throws IOException
/*    */   {
/* 36 */     super.load(dis);
/* 37 */     this.chatLine = new String(dis.readUTF());
/*    */   }
/*    */ }


/* Location:              C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\console\BBChatCommand.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */