示例#1
0
 public Cut(CutLocation location, Severity severity, Action <Fighter> consequence)
 {
     Location    = location;
     Extent      = severity;
     Consequence = consequence;
     Description = $"A {Extent.ToString().ToLower()} cut {getLocationDescription(Location)}.";
 }
示例#2
0
        public static string getLocationDescription(CutLocation location)
        {
            StringBuilder sb = new StringBuilder();

            foreach (Char ch in location.ToString())
            {
                if (Char.IsUpper(ch))
                {
                    sb.Append(' ');
                    sb.Append(ch);
                }
                else
                {
                    sb.Append(ch);
                }
            }
            return(sb.ToString().ToLower().Trim());
        }