Esempio n. 1
0
 public Poker(Poker poker)
 {
     index  = poker.index;
     size   = poker.size;
     color  = poker.color;
     status = poker.status;
 }
Esempio n. 2
0
 public void SetPoker(Poker poker)
 {
     this.index  = poker.index;
     this.color  = poker.color;
     this.size   = poker.size;
     this.status = poker.status;
 }
Esempio n. 3
0
 public Poker(int index, int size, int color, NN_ENUM_POKER_STATUS status)
 {
     this.index  = index;
     this.size   = size;
     this.color  = color;
     this.status = status;
 }
Esempio n. 4
0
        public void build(byte[] data)
        {
            ByteBuffer buf = ByteBuffer.wrap(data);

            for (int i = 0; i < this.__flag.Length; i++)
            {
                this.__flag[i] = buf.get();
            }

            if (this.hasIndex())
            {
                this.index = buf.getInt();
            }

            if (this.hasColor())
            {
                this.color = buf.getInt();
            }

            if (this.hasSize())
            {
                this.size = buf.getInt();
            }

            if (this.hasPokerStatus())
            {
                this.pokerStatus = (NN_ENUM_POKER_STATUS)buf.get();
            }
        }
Esempio n. 5
0
 public void SetPoker(NN_POKER poker)
 {
     if (poker.hasIndex())
     {
         this.index = poker.index;
     }
     if (poker.hasColor())
     {
         this.color = poker.color;
     }
     if (poker.hasSize())
     {
         this.size = poker.size;
     }
     if (poker.hasPokerStatus())
     {
         this.status = poker.pokerStatus;
     }
 }