Ejemplo n.º 1
0
        public static NetworkData NoonEnd(int src)
        {
            NetworkData dat = new NetworkData();

            dat.src = src;
            dat.cmd = NET_COMMAND.NOON_END;
            return(dat);
        }
Ejemplo n.º 2
0
        public static NetworkData NightNo(int src)
        {
            NetworkData dat = new NetworkData();

            dat.src  = src;
            dat.fyes = false;
            dat.cmd  = NET_COMMAND.NIGHT_ACK;
            return(dat);
        }
Ejemplo n.º 3
0
        public static NetworkData NightVote(int src, int dest)
        {
            NetworkData dat = new NetworkData();

            dat.src  = src;
            dat.dest = dest;
            dat.cmd  = NET_COMMAND.NIGHT_VOTE;
            return(dat);
        }
Ejemplo n.º 4
0
        public static NetworkData MidnightSelect(int src, int dest, int item)
        {
            NetworkData dat = new NetworkData();

            dat.src  = src;
            dat.dest = dest;
            dat.item = item;
            dat.cmd  = NET_COMMAND.MIDNIGHT_SELECT;
            return(dat);
        }
Ejemplo n.º 5
0
        public static NetworkData NoonItem(int src, int item)
        {
            NetworkData dat = new NetworkData();

            dat.src  = src;
            dat.dest = GameFactory.getGame().shareData.players.getPlayer(dat.src).net_opp;
            dat.item = item;
            dat.cmd  = NET_COMMAND.NOON_ITEM;
            return(dat);
        }
Ejemplo n.º 6
0
        public static NetworkData NoonRequest(int src, int dest)
        {
            NetworkData dat = new NetworkData();

            dat.src  = src;
            dat.dest = dest;
            dat.cmd  = NET_COMMAND.NOON_REQUEST;

            return(dat);
        }
Ejemplo n.º 7
0
        public static NetworkData NoonNo(int src)
        {
            NetworkData dat = new NetworkData();

            dat.src  = src;
            dat.dest = GameFactory.getGame().shareData.players.getPlayer(dat.src).net_opp;
            dat.fyes = false;
            dat.cmd  = NET_COMMAND.NOON_ACK;

            return(dat);
        }
Ejemplo n.º 8
0
 public void sync(NetworkData o)
 {
     cmd  = o.cmd;
     src  = o.src;
     dest = o.dest;
     item = o.item;
     fyes = o.fyes;
     for (int i = 0; i < srcItem.Length; i++)
     {
         srcItem[i]  = o.srcItem[i];
         destItem[i] = o.destItem[i];
     }
 }
Ejemplo n.º 9
0
        public static NetworkData MidnightSelectItem(int src, int dest, ITEM[] srcitem, ITEM[] destItem)
        {
            NetworkData dat = new NetworkData();

            dat.src  = src;
            dat.dest = dest;
            for (int i = 0; i < srcitem.Length; i++)
            {
                dat.srcItem[i]  = srcitem[i];
                dat.destItem[i] = destItem[i];
            }
            dat.cmd = NET_COMMAND.MIDNIGHT_SELECT_ITEM;
            return(dat);
        }