예제 #1
0
파일: Rank.cs 프로젝트: smtheard/PokerMuck
 /* 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;
 }
예제 #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);
     }
 }
예제 #3
0
파일: Rank.cs 프로젝트: smtheard/PokerMuck
        /* 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;
        }
예제 #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;
        }