예제 #1
0
        public void Bet(StackBase stackData)
        {
            if (stackData.GetPrice() > this._amountOfMoney)
            {
                Console.WriteLine("代币不足 >_<!");
                return;
            }

            this._amountOfMoney -= stackData.GetPrice();
            StackTable.GetInstance().CreateBill(this._id, stackData);
        }
예제 #2
0
 public StackBill(uint playerid, StackBase stackData)
 {
     _playerId  = playerid;
     _stackData = stackData;
 }
예제 #3
0
        public void CreateBill(uint playerid, StackBase stackData)
        {
            var bill = new StackBill(playerid, stackData);

            _billBuffer.Add(bill);
        }