Ejemplo n.º 1
0
        public int ResetStats(int statID, int strength, int stamina, int dexterity, int intelligence)
        {
            int results = 0;

            try
            {
                results = StatAccessor.ResetStats(statID, strength, stamina, dexterity, intelligence);
            }
            catch (Exception ex)
            {
                throw new ApplicationException("There was a problem connecting to the server.", ex);
            }

            return(results);
        }
Ejemplo n.º 2
0
        public Stat RetrieveStats(int statID)
        {
            Stat stats = null;

            try
            {
                stats = StatAccessor.RetrieveStatsByStatID(statID);
            }
            catch (Exception)
            {
                throw;
            }

            return(stats);
        }
Ejemplo n.º 3
0
        public int UpdateStats(int statID, int oldStrength, int strength, int oldStamina, int stamina, int oldDexterity,
                               int dexterity, int oldIntelligence, int intelligence, int pointsRemaining)
        {
            int results = 0;

            try
            {
                results = StatAccessor.UpdateStats(statID, oldStrength, strength, oldStamina, stamina, oldDexterity,
                                                   dexterity, oldIntelligence, intelligence, pointsRemaining);
            }
            catch (Exception ex)
            {
                throw new ApplicationException("There was a problem connecting to the server.", ex);
            }

            return(results);
        }