Ejemplo n.º 1
0
        private BoutResult.BoutMiniResult FightString(string value, string firstValue, string secondValue)
        {
            //TODO - CHANGE?
            var result = new BoutResult.BoutMiniResult()
            {
                Message = value
            };
            if (!string.IsNullOrEmpty(firstValue))
                result.Fighter1Hits = 1;
            if (!string.IsNullOrEmpty(secondValue))
                result.Fighter2Hits = 1;
            return result;

            //if (!string.IsNullOrEmpty(firstValue) && string.IsNullOrEmpty(secondValue))
            //    return new BoutResult.BoutMiniResult() { Message = value, Fighter1Hits = 1, Fighter2Hits = 0 };
            //else if (string.IsNullOrEmpty(firstValue) && !string.IsNullOrEmpty(secondValue))
            //    return new BoutResult.BoutMiniResult() { Message = value, Fighter1Hits = 0, Fighter2Hits = 1 };
            //else
            //    return new BoutResult.BoutMiniResult() { Message = value, Fighter1Hits = 0, Fighter2Hits = 0 };
        }