public SRSBauCuaPlayerBetWin GetBetWin(int moneyType, BauCuaGate gate) { if (moneyType == MoneyType.GOLD) { if (gold != null && gold.ContainsKey(gate)) { return(gold[gate]); } else { return(null); } } else { if (coin != null && coin.ContainsKey(gate)) { return(coin[gate]); } else { return(null); } } }
public double GetPlayerBetByGate(BauCuaGate gate) { if (playerBets == null) { return(0); } SRSBauCuaPlayerBetGate gateBet = playerBets.Find(a => a.Gate == gate); if (gateBet != null) { return(gateBet.Amount); } return(0); }
public string GetGateName(BauCuaGate gate) { switch (gate) { case BauCuaGate.DEER: return("Nai"); case BauCuaGate.GOURD: return("Bầu"); case BauCuaGate.CHICKEND: return("Gà"); case BauCuaGate.FISH: return("Cá"); case BauCuaGate.CRAB: return("Cua"); case BauCuaGate.SHRIMP: return("Tôm"); } return(""); }
public int GetBetCountByGate(BauCuaGate gate) { return(BetCount[gate]); }
public double GetBetInfoByGate(BauCuaGate gate) { return(BetInfo[gate]); }
public bool IsWin(BauCuaGate gate) { int iGate = (int)gate; return(iGate == Dice1 || iGate == Dice2 || iGate == Dice3); }