Example #1
0
 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);
         }
     }
 }
Example #2
0
    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);
    }
Example #3
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("");
    }
Example #4
0
 public int GetBetCountByGate(BauCuaGate gate)
 {
     return(BetCount[gate]);
 }
Example #5
0
 public double GetBetInfoByGate(BauCuaGate gate)
 {
     return(BetInfo[gate]);
 }
Example #6
0
    public bool IsWin(BauCuaGate gate)
    {
        int iGate = (int)gate;

        return(iGate == Dice1 || iGate == Dice2 || iGate == Dice3);
    }