Esempio n. 1
0
        public static string GetRankCss(MilitaryRankEnum rank)
        {
            switch (rank)
            {
            case MilitaryRankEnum.Private:
                return("rank-03-e2");

            case MilitaryRankEnum.PrivateFirstClass:
                return("rank-03-e3");

            case MilitaryRankEnum.Corporal:
                return("rank-03-e4-1");

            case MilitaryRankEnum.Sergeant:
                return("rank-03-e5");

            case MilitaryRankEnum.StaffSergeant:
                return("rank-01-e6");

            case MilitaryRankEnum.FirstSergeant:
                return("rank-01-e8-2");

            case MilitaryRankEnum.MasterSergeant:
                return("rank-01-e9-1");

            case MilitaryRankEnum.SergeantMajor:
                return("rank-03-e9-3");

            case MilitaryRankEnum.CommandSergeantMajor:
                return("rank-03-e9-2");

            case MilitaryRankEnum.SergeantMajorOfTheArmy:
                return("rank-03-e9-1");

            case MilitaryRankEnum.SecondLieutenant:
                return("rank-01-o1");

            case MilitaryRankEnum.FirstLieutenant:
                return("rank-01-o2");

            case MilitaryRankEnum.Captain:
                return("rank-01-o3");

            case MilitaryRankEnum.Major:
                return("rank-01-o4");

            case MilitaryRankEnum.LieutenantColonel:
                return("rank-01-o5");

            case MilitaryRankEnum.Colonel:
                return("rank-01-o6");

            case MilitaryRankEnum.BrigadierGeneral:
                return("rank-01-o7");

            case MilitaryRankEnum.MajorGeneral:
                return("rank-01-o8");

            case MilitaryRankEnum.LieutenantGeneral:
                return("rank-01-o9");

            case MilitaryRankEnum.General:
            case MilitaryRankEnum.GeneralOfTheArmy:
                return("rank-01-o10");


            default:
                return("");
            }
        }
Esempio n. 2
0
        public double CalculateMilitaryRankModifier(double militaryRank)
        {
            MilitaryRankEnum rank = MilitaryRankEnumExtensions.GetRankForMilitaryRank(militaryRank);

            return(1.0 + (double)rank * 0.02);
        }
Esempio n. 3
0
 public static string ToHumanReadable(this MilitaryRankEnum rank)
 {
     return(rank.ToString().PascalCaseToWord());
 }