summaryrefslogtreecommitdiff
path: root/NET/worlds/network/netCmds.java
blob: ef3cdbb474ba6b988fe768d03bf009f8dccb0a69 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package NET.worlds.network;

import java.util.Hashtable;
import java.util.Vector;

class netCmds {
   private Vector<String> _recvNetPacket = new Vector<String>();
   private static Hashtable<Integer, String> _propList = new Hashtable<Integer, String>();

   static {
      _propList.put(new Integer(1), "VAR_APPNAME");
      _propList.put(new Integer(2), "VAR_USERNAME");
      _propList.put(new Integer(3), "VAR_PROTOCOL");
      _propList.put(new Integer(4), "VAR_ERROR");
      _propList.put(new Integer(5), "VAR_CHANNEL");
      _propList.put(new Integer(6), "VAR_PASSWORD");
      _propList.put(new Integer(7), "VAR_AVATARS");
      _propList.put(new Integer(8), "VAR_UPDATETIME");
      _propList.put(new Integer(9), "VAR_CLIENT");
      _propList.put(new Integer(10), "VAR_SERIAL");
      _propList.put(new Integer(11), "VAR_EMAIL");
      _propList.put(new Integer(12), "VAR_LOGONOFF");
      _propList.put(new Integer(13), "VAR_DURATION");
      _propList.put(new Integer(14), "VAR_GUEST");
      _propList.put(new Integer(15), "VAR_SERVERTYPE");
      _propList.put(new Integer(16), "VAR_BIZCARD");
      _propList.put(new Integer(22), "VAR_PRIV");
      _propList.put(new Integer(20), "VAR_NEW_PASSWD");
      _propList.put(new Integer(23), "VAR_ASLEEP");
      _propList.put(new Integer(24), "VAR_EXTERNAL_HTTP_SERVER");
      _propList.put(new Integer(25), "VAR_SCRIPT_SERVER");
      _propList.put(new Integer(26), "VAR_SMTP_SERVER");
      _propList.put(new Integer(27), "VAR_MAIL_DOMAIN");
      _propList.put(new Integer(28), "VAR_NEW_USERNAME");
      _propList.put(new Integer(29), "VAR_INTERNAL_HTTP_SERVER");
   }

   public netCmds() {
      this._recvNetPacket.addElement("appInitCmd");
      this._recvNetPacket.addElement("appearActorCmd");
      this._recvNetPacket.addElement("disappearActorCmd");
      this._recvNetPacket.addElement("longLocCmd");
      this._recvNetPacket.addElement("propCmd");
      this._recvNetPacket.addElement("regObjIDCmd");
      this._recvNetPacket.addElement("roomChangeCmd");
      this._recvNetPacket.addElement("sessionExitCmd");
      this._recvNetPacket.addElement("sessionInitCmd");
      this._recvNetPacket.addElement("shortLocCmd");
      this._recvNetPacket.addElement("teleportCmd");
      this._recvNetPacket.addElement("textCmd");
      this._recvNetPacket.addElement("whisperCmd");
      this._recvNetPacket.addElement("roomIDCmd");
      this._recvNetPacket.addElement("PropertySetCmd");
      this._recvNetPacket.addElement("PropertyUpdateCmd");
      this._recvNetPacket.addElement("FingerReplyCmd");
      this._recvNetPacket.addElement("RedirectCmd");
      this._recvNetPacket.addElement("RedirectIDCmd");
      this._recvNetPacket.addElement("BuddyListNotifyCmd");
   }

   Vector<String> recvCmdList() {
      return this._recvNetPacket;
   }

   static String getPropName(int id) {
      return _propList.get(new Integer(id));
   }
}