Example #1
0
 private void DecrementStatistic(StatisticIndex index)
 {
     if (m_PlayerStatistics[index] > 1)
     {
         m_PointsRemaining         += 1;
         m_PlayerStatistics[index] -= 1;
     }
 }
Example #2
0
 private void IncrementStatistic(StatisticIndex index)
 {
     if (m_PlayerStatistics[index] < 10 && m_PointsRemaining > 0)
     {
         m_PointsRemaining         -= 1;
         m_PlayerStatistics[index] += 1;
     }
 }
Example #3
0
 public int GetStatistic(string statistic)
 {
     try
     {
         StatisticIndex statisticIndex = (StatisticIndex)Enum.Parse(typeof(StatisticIndex), statistic, true);
         return(m_AssociatedEntity.Statistics[statisticIndex].Value);
     }
     catch (Exception e)
     {
         return(-1);
     }
 }