Beispiel #1
0
 /* Returns the rank score
  * 1.0 is the strongest, 0 the weakest, -1.0 is N/A */
 public float GetRank(PokerGameCategory category)
 {
     if (ranks.ContainsKey(category))
     {
         return (float)ranks[category];
     }
     else return -1.0f;
 }
Beispiel #2
0
 /* Returns the rank score
  * 1.0 is the strongest, 0 the weakest, -1.0 is N/A */
 public float GetRank(PokerGameCategory category)
 {
     if (ranks.ContainsKey(category))
     {
         return((float)ranks[category]);
     }
     else
     {
         return(-1.0f);
     }
 }
Beispiel #3
0
        /* The rank is a value between 0 and 1, with the exception of -1, which indicates that no rank is available */
        public void SetRank(float rank, PokerGameCategory category)
        {
            Trace.Assert((rank >= 0.0f || rank == -1.0f) && rank <= 1.0f, "rank is greather than or less than the allowed range.");

            ranks[category] = rank;
        }
Beispiel #4
0
        /* The rank is a value between 0 and 1, with the exception of -1, which indicates that no rank is available */
        public void SetRank(float rank, PokerGameCategory category)
        {
            Trace.Assert((rank >= 0.0f || rank == -1.0f) && rank <= 1.0f, "rank is greather than or less than the allowed range.");

            ranks[category] = rank;
        }